/* Landing Page FAQ Section - Global Include */

@font-face {
  font-family: "Audiowide";
  src: url("../fonts/Audiowide/Audiowide-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.landing-faq-section {
  text-align: center;
  margin-bottom: 4rem;
}

.landing-faq-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.landing-faq-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.landing-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.landing-faq-item {
  background: linear-gradient(180deg,
    rgba(242, 182, 50, 0.12),
    rgba(8, 8, 10, 0.9));
  border-radius: 0.8rem;
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: none;
  text-align: left;
  position: relative;
  isolation: isolate;
}

.landing-faq-item::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background-image:
    linear-gradient(
      90deg,
      #fdf7dc,
      #f1d78a,
      #ddb45a,
      #c89338,
      #b97c28,
      #c89338,
      #ddb45a,
      #f1d78a,
      #fdf7dc
    ),
    linear-gradient(
      120deg,
      transparent 0%,
      transparent 45%,
      rgba(255, 255, 255, 0.65) 50%,
      transparent 55%,
      transparent 100%
    );
  background-size: 300% 300%, 200% 200%;
  background-position: 0% 50%, -50% 50%;
  animation: borderTravel 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.landing-faq-item.active {
  border-color: rgba(242, 182, 50, 0.4);
  box-shadow: none;
}

.landing-faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.landing-faq-question > span:first-child {
  background: var(--gold-gradient);
  background-size: 200% auto;
  background-position: 50% 0%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auroraFlowGlobal 8s linear infinite;
}

.landing-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55)),
    var(--gold-gradient);
  background-size: 200% 200%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s ease-in-out;
}

.landing-faq-item.active .landing-faq-icon {
  transform: rotate(45deg);
  background: var(--gold-gradient);
  background-size: 400% 400%;
  background-position: 0% 50%;
  animation: auroraFlowTrulySeamless 20s linear infinite;
  box-shadow: 0 0 20px rgba(107, 82, 32, 0.4), 0 0 35px rgba(107, 82, 32, 0.2);
  color: #0b0b0d;
}

.landing-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.landing-faq-item.active .landing-faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.landing-faq-answer p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.landing-faq-answer p:last-child {
  margin-bottom: 0;
}

.landing-faq-answer a {
  color: var(--highlight);
  text-decoration: underline;
}

/* Animations */
@keyframes auroraFlowGlobal {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

@keyframes auroraFlowTrulySeamless {
  0% { background-position: 0% 50%; }
  100% { background-position: -400% 50%; }
}

@keyframes borderTravel {
  0% {
    background-position: 0% 50%, -50% 50%;
  }
  100% {
    background-position: -300% 50%, 250% 50%;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .landing-faq-section h2 {
    font-size: 1.8rem;
  }

  .landing-faq-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .landing-faq-question {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }

  .landing-faq-answer p {
    font-size: 0.9rem;
  }
}
