/* FAQ Section - Perguntas Frequentes */

.faq-section {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: var(--space-3xl, 6rem) 0;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

/* Fundo animado sutil */
.faq-section::before {
 content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(249, 75, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.04) 0%, transparent 50%);
  background-size: 100% 100%;
  animation: backgroundPulse 10s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg, 2rem);
  position: relative;
  z-index: 2;
}

/* Header da seção */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl, 6rem);
}

.faq-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-accent) 0%, #d65609 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--glow-cyan);
  margin-bottom: var(--space-lg, 2rem);
  line-height: 1.2;
}

/* Divider elegante */
.divider {
  width: 100px;
  height: 2px;
  background: linear-gradient(135deg, var(--text-accent) 0%, #d65609 100%);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
  box-shadow: var(--glow-cyan);
}

.divider::before {
  content: ";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: var(--glow-cyan);
}

/* Lista de perguntas */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg, 2rem);
}

/* Item individual do FAQ */
.faq-item {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--text-accent);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  transition: all 0.4s ease-out;
  position: relative;
  box-shadow: 0 0 20px rgba(249, 75, 0, 0.3);
}

.faq-item::before {
  content: ";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(249, 75, 0, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: all 0.4s ease-out;
  pointer-events: none;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
  border-color: var(--text-primary);
}

.faq-item:hover::before {
  opacity: 1;
}

/* Botão da pergunta */
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-xl, 3rem) var(--space-lg, 2rem);
  text-align: left;
  cursor: pointer;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md, 1.5rem);
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 1;
}

.faq-question:hover {
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.faq-question.active {
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Ícone de mais/menos */
.faq-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--text-accent) 0%, #d65609 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.3s ease-out;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(249, 75, 0, 0.4);
}

.faq-question:hover .faq-icon {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

/* Resposta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: rgba(0, 0, 0, 0.6);
  position: relative;
}

.faq-answer::before {
  content: ";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
  opacity: 0.6;
}

.faq-answer p {
  padding: var(--space-xl, 3rem) var(--space-lg, 2rem);
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
}

.faq-answer p::before {
  content: '"';
  position: absolute;
  top: var(--space-lg, 2rem);
  left: var(--space-md, 1.5rem);
  font-size: 3rem;
  color: var(--text-accent);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

/* Efeito de brilho na resposta ativa */
.faq-item:has(.faq-question.active) .faq-answer {
  background: rgba(0, 0, 0, 0.9);
}

.faq-item:has(.faq-question.active) .faq-answer p {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 1024px) {
  .faq-container {
    padding: 0 var(--space-md, 1.5rem);
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: var(--space-2xl, 4rem) 0;
  }
  
  .faq-question {
    padding: var(--space-lg, 2rem) var(--space-md, 1.5rem);
    font-size: 1.1rem;
  }
  
  .faq-answer p {
    padding: var(--space-lg, 2rem) var(--space-md, 1.5rem);
  }
  
  .faq-icon {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .faq-container {
    padding: 0 var(--space-sm, 1rem);
  }
  
  .faq-question {
    padding: var(--space-md, 1.5rem);
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm, 1rem);
  }
  
  .faq-answer p {
    padding: var(--space-md, 1.5rem);
    font-size: 0.95rem;
  }
  
  .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    align-self: flex-end;
  }
  
  .faq-answer p::before {
    font-size: 2rem;
    top: var(--space-md, 1.5rem);
    left: var(--space-sm, 1rem);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .faq-section::before {
    animation: none;
  }
  
  .faq-item,
  .faq-question,
  .faq-icon,
  .faq-answer {
    transition: none;
  }
  
  .faq-answer p {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .faq-section {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
  }
  
  .faq-item {
    border-color: #ffffff;
    background: #000000;
  }
  
  .faq-answer {
    background: #000000;
  }
}

/* Focus states para acessibilidade */
.faq-question:focus {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}

.faq-question:focus-visible {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}
