/* FAQ Page Styles - Modern & Sleek Design */

/* CSS Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --section-padding: 4rem 0;
  --container-padding: 0 2rem;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --max-width: 1000px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables (Default) */
:root {
  --bg-primary: var(--bg-color, #0a0a0a);
  --bg-card: rgba(26, 26, 26, 0.6);
  --bg-card-hover: rgba(38, 38, 38, 0.8);
  --text-primary: var(--text-color, #ffffff);
  --text-secondary: var(--secondary-text, #a1a1aa);
  --border-primary: var(--border-color, #262626);
  --border-hover: #404040;
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
  --gradient-orb-1: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  --gradient-orb-2: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
  --gradient-orb-3: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
}

/* Light Mode Variables */
html.light {
  --bg-primary: var(--bg-color, #ffffff);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(248, 250, 252, 0.9);
  --text-primary: var(--text-color, #0f172a);
  --text-secondary: var(--secondary-text, #475569);
  --border-primary: var(--border-color, #e2e8f0);
  --border-hover: #cbd5e1;
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.15);
  --gradient-orb-1: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
  --gradient-orb-2: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
  --gradient-orb-3: radial-gradient(circle, rgba(240, 147, 251, 0.05) 0%, transparent 70%);
}

/* Base Styles */
.faq-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

/* Background Orbs */
.faq-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.faq-orb {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.faq-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--gradient-orb-1);
  top: -10%;
  right: -10%;
}

.faq-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-orb-2);
  bottom: -10%;
  left: -10%;
  animation-delay: 2s;
}

.faq-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--gradient-orb-3);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Header Section */
.faq-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.faq-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.faq-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ Container */
.faq-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* FAQ Section */
.faq-section {
  animation: fadeInUp 0.8s ease-out both;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-left: 0.5rem;
}

/* FAQ Item */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.faq-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: #667eea;
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.5rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.question-text {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  flex: 1;
}

.faq-item.active .question-text {
  color: #667eea;
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 8px;
  transition: var(--transition);
}

.faq-icon svg {
  transition: var(--transition);
  color: #667eea;
}

.faq-item.active .faq-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.faq-item.active .faq-icon svg {
  transform: rotate(180deg);
}

.faq-item.active .faq-icon svg path {
  stroke: white;
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol,
.faq-answer ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.faq-answer li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.faq-answer a {
  color: #667eea;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-left: 3px solid #667eea;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.disclaimer svg {
  flex-shrink: 0;
  color: #667eea;
}

/* CTA Section */
.faq-cta {
  max-width: var(--max-width);
  margin: 4rem auto 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
}

.cta-content {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0.03;
}

.cta-content > * {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #667eea;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: #5a6fd8;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary.large, .btn-secondary.large {
  padding: 1.125rem 2rem;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .faq-header {
    padding: 5rem 2rem 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .faq-header {
    padding: 4rem 1.5rem 2rem 1.5rem;
  }
  
  .faq-title {
    font-size: 2.5rem;
  }
  
  .faq-subtitle {
    font-size: 1.125rem;
  }
  
  .faq-container {
    padding: 0 1.5rem;
    gap: 2.5rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .faq-question {
    padding: 1.25rem;
  }
  
  .question-text {
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 0 1.25rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  
  .cta-content {
    padding: 3rem 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-primary.large, .btn-secondary.large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .faq-header {
    padding: 3rem 1rem 2rem 1rem;
  }
  
  .faq-title {
    font-size: 2rem;
  }
  
  .faq-container {
    padding: 0 1rem;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .question-text {
    font-size: 0.9375rem;
  }
  
  .faq-icon {
    width: 28px;
    height: 28px;
  }
  
  .faq-answer {
    padding: 0 1rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }
  
  .cta-content {
    padding: 2.5rem 1.5rem;
  }
}

/* Animation Delays */
.faq-section:nth-child(1) { animation-delay: 0.1s; }
.faq-section:nth-child(2) { animation-delay: 0.2s; }
.faq-section:nth-child(3) { animation-delay: 0.3s; }
.faq-section:nth-child(4) { animation-delay: 0.4s; }
