/* Custom CSS for distill - save as styles.css in your distill site */

.fancy-policy-container {
    max-width: 100%;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.fancy-policy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #78A1C4, #CE7D41, #738C69, #98999C);
    background-size: 300% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.policy-header {
    background: linear-gradient(135deg, #78A1C4 0%, #738C69 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.policy-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #738C69;
}

.policy-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.policy-content {
    padding: 3rem 2.5rem 2.5rem;
    color: #333;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(120, 161, 196, 0.05);
    border-radius: 15px;
    border-left: 5px solid #78A1C4;
    transition: all 0.3s ease;
    position: relative;
}

.policy-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 161, 196, 0.15);
    background: rgba(120, 161, 196, 0.08);
}

.policy-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #78A1C4;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section-title::before {
    content: '◆';
    font-size: 1rem;
    color: #CE7D41;
}

.policy-bullet-point {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
}

.policy-bullet-point::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #78A1C4;
    font-weight: bold;
}

.policy-highlight {
    background: linear-gradient(120deg, rgba(206, 125, 65, 0.25) 0%, rgba(115, 140, 105, 0.25) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.policy-decorative-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #78A1C4, #CE7D41, #738C69, transparent);
    margin: 2rem 0;
    border-radius: 1px;
}

/* Responsive adjustments for distill */
@media (max-width: 768px) {
    .policy-content {
        padding: 2rem 1.5rem;
    }
    
    .policy-header {
        padding: 1.5rem;
    }
    
    .policy-main-title {
        font-size: 1.5rem;
    }
    
    .policy-section {
        padding: 1.2rem 1rem;
    }
}

/* Ensure it works well with distill's existing styles */
.distill-site-content .fancy-policy-container {
    margin: 2rem auto;
}

d-article .fancy-policy-container {
    margin: 2rem 0;
}


/* NotebookLM-style Chat Interface Styles */
.chat-container {
  max-width: 800px;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #f9f9f9;
  font-family: inherit;
}

.chat-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.chat-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.chat-button {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.chat-button:hover {
  background: #0056b3;
}

.chat-button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.chat-response {
  background: white;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
  border-left: 4px solid #007bff;
  min-height: 50px;
  line-height: 1.6;
}

.chat-history {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 20px;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 10px;
  background: white;
}

.chat-history:empty::after {
  content: "No questions asked yet.";
  color: #666;
  font-style: italic;
  display: block;
  text-align: center;
  padding: 20px;
}

.chat-entry {
  background: #f8f9fa;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 5px;
  border-left: 3px solid #28a745;
  transition: background-color 0.2s ease;
}

.chat-entry:hover {
  background: #e9ecef;
}

.chat-entry:last-child {
  margin-bottom: 0;
}

.question {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.answer {
  color: #666;
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 5px;
}

.setup-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.setup-info h4 {
  margin-top: 0;
  color: #856404;
}

.setup-info p, .setup-info ol {
  margin-bottom: 10px;
  color: #856404;
}

.setup-info ol {
  padding-left: 20px;
}

.setup-info a {
  color: #007bff;
  text-decoration: none;
}

.setup-info a:hover {
  text-decoration: underline;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 5px;
  border-left: 4px solid #dc3545;
  margin: 10px 0;
}

.loading {
  color: #666;
  font-style: italic;
  padding: 20px;
  text-align: center;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .chat-container {
    margin: 10px;
    padding: 15px;
  }
  
  .chat-button {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
  
  .chat-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Dark mode support (if your site has dark mode) */
@media (prefers-color-scheme: dark) {
  .chat-container {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .chat-response {
    background: #1a202c;
    color: #e2e8f0;
  }
  
  .chat-history {
    background: #1a202c;
    border-color: #4a5568;
  }
  
  .chat-entry {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .chat-entry:hover {
    background: #4a5568;
  }
  
  .question {
    color: #f7fafc;
  }
  
  .answer {
    color: #cbd5e0;
  }
  
  .chat-input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .chat-input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.25);
  }
}


.highlight-box {
  background-color: #f0f8ff;
  border-left: 4px solid #007acc;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}

.warning-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
}


.accordion {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.accordion-header {
  background-color: #e9ecef;
  padding: 1rem;
  cursor: pointer;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
  user-select: none;
  position: relative;
}

.accordion-header:hover {
  background-color: #dee2e6;
}

.accordion-header::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.accordion-header.collapsed::after {
  transform: translateY(-50%) rotate(-90deg);
}

.accordion-content {
  padding: 1rem;
  display: none;
}

.accordion-content.show {
  display: block;
}

.highlight-box {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-left: 4px solid #17a2b8;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
}

.warning-box {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
}

.feedback-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: 4px solid #6c757d;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
  text-align: center;
}

.feedback-box p {
  margin: 0;
  font-size: 1.1rem;
}


.accordion {
  background-color: #f0f7ff;
  color: #333;
  cursor: pointer;
  padding: 1em;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.1em;
  transition: 0.4s;
  border-radius: 6px;
  margin-top: 1em;
  font-weight: bold;
}

.accordion:hover {
  background-color: #e0efff;
}

.panel {
  padding: 0 1em;
  display: none;
  background-color: #ffffff;
  overflow: hidden;
  border-left: 4px solid #0c7cd5;
  margin-bottom: 1em;
  border-radius: 6px;
}

.highlight-box {
  background-color: #fffbe6;
  border-left: 4px solid #ffcc00;
  padding: 1em;
  margin: 1em 0;
  border-radius: 6px;
}

.warning-box {
  background-color: #ffe6e6;
  border-left: 4px solid #ff4d4d;
  padding: 1em;
  margin: 1em 0;
  border-radius: 6px;
}