/* ============================================
   SPYDEY OFFICIAL — FAQ Section
   faq.css | Accordion Component
   ============================================ */

/* === FAQ SECTION === */
.faq {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient bg accent */
.faq::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-red-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* === FAQ CONTAINER === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* === FAQ ITEM === */
.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  border-left: 4px solid transparent;
  transition: border-color var(--transition-smooth);
}

.faq-item.active {
  border-left-color: var(--accent-red);
}

.faq-item.active .glass-card,
.faq-item.active {
  border-color: rgba(230, 57, 70, 0.2);
}

/* === QUESTION ROW === */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.5;
  transition: color var(--transition-fast);
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent-red);
}

.faq-item.active .faq-question {
  color: var(--accent-red);
}

/* Question Number */
.faq-question-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-red);
  opacity: 0.6;
  margin-right: 16px;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.faq-question-text {
  flex: 1;
}

/* === ARROW ICON === */
.faq-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-smooth);
}

.faq-arrow svg,
.faq-arrow i {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform var(--transition-smooth),
              color var(--transition-fast);
}

.faq-item.active .faq-arrow {
  background: var(--accent-red-subtle);
  border-color: rgba(230, 57, 70, 0.3);
}

.faq-item.active .faq-arrow svg,
.faq-item.active .faq-arrow i {
  transform: rotate(180deg);
  color: var(--accent-red);
}

/* === ANSWER === */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 32px;
}

.faq-answer-content {
  padding-bottom: 0;
  transition: padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-answer-content {
  padding-bottom: 24px;
  opacity: 1;
}

.faq-answer p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--accent-red);
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--accent-red-hover);
  text-decoration-color: var(--accent-red);
}

/* === DIVIDER LINE === */
.faq-item:not(:last-child) .faq-answer {
  border-bottom: none;
}

/* === CTA BELOW FAQ === */
.faq-cta {
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.faq-cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.faq-cta-text span {
  color: var(--accent-red);
  font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .faq-list {
    max-width: 100%;
  }

  .faq-question {
    padding: 20px 24px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 24px;
  }

  .faq-arrow {
    width: 28px;
    height: 28px;
  }

  .faq-question-number {
    margin-right: 12px;
    font-size: 0.8rem;
  }

  .faq::before {
    width: 300px;
    height: 300px;
  }

  .faq-cta {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .faq-item {
    margin-bottom: 8px;
    border-left-width: 3px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.9rem;
    gap: 12px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-answer p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .faq-arrow {
    width: 26px;
    height: 26px;
  }

  .faq-question-number {
    display: none;
  }
}
