/* ===== GLOBAL ANIMATIONS ===== */
@keyframes skyDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(120px); }
}

@keyframes starPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes rotateIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

/* ===== CSS VARIABLES ===== */
:root {
  --astro-bg: #0a0a1a;
  --astro-purple: #a78bfa;
  --astro-gold: #e8c96a;
  --astro-card: rgba(255, 255, 255, 0.03);
  --astro-card-border: rgba(255, 255, 255, 0.07);
  --astro-accent: #a78bfa;
  --astro-accent-dark: #7c3aed;
  --astro-accent-glow: rgba(124, 58, 237, 0.3);
  --astro-text: #fff;
  --astro-text-mid: rgba(255, 255, 255, 0.6);
  --astro-text-dim: rgba(255, 255, 255, 0.35);
  --astro-nav-bg: rgba(10, 10, 26, 0.8);
  --astro-btn-grad: linear-gradient(135deg, #7c3aed, #a78bfa);
  --astro-title-grad: linear-gradient(135deg, #a78bfa, #e8c96a);
  --astro-section-alt: rgba(255, 255, 255, 0.01);
}

/* ===== BODY & GENERAL ===== */
.astro-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--astro-bg);
  color: var(--astro-text);
  transition: background 0.5s, color 0.5s;
  min-height: 100vh;
}

/* ===== GRADIENT TEXT ===== */
.astro-grad-text {
  background: var(--astro-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== FAQ HERO SECTION ===== */
.astro-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 48px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(100, 80, 200, 0.12) 0%, transparent 60%), #0a0a1a;
  transition: all 0.5s;
}

.astro-hero__stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.astro-hero__svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  animation: skyDrift 50s linear infinite;
}

.astro-hero__content {
  position: relative;
  z-index: 1;
}

.astro-hero__label {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--astro-accent-dark);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.astro-hero__title {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--astro-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.astro-hero__subtitle {
  font-size: 16px;
  color: var(--astro-text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CATEGORY FILTER SECTION ===== */
.astro-filter {
  padding: 36px 48px;
  text-align: center;
  background: var(--astro-section-alt);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.astro-filter__container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.astro-filter__button {
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--astro-accent);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.astro-filter__button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.astro-filter__button--active {
  background: var(--astro-btn-grad);
  border-color: transparent;
  color: #fff;
}

/* ===== FAQ SECTION ===== */
.astro-faq {
  padding: 60px 48px 80px;
  max-width: 760px;
  margin: 0 auto;
  transition: all 0.5s;
}

.astro-faq-category {
  margin-bottom: 56px;
  animation: fadeUp 0.6s ease-out both;
}

.astro-faq-category__title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(167, 139, 250, 0.2);
  background: var(--astro-title-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.astro-faq-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== FAQ ITEM ===== */
.astro-faq-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--astro-card);
  border: 1px solid var(--astro-card-border);
  cursor: pointer;
  transition: all 0.3s;
  animation: fadeUp 0.5s ease-out both;
}

.astro-faq-item__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: all 0.3s;
}

.astro-faq-item--expanded .astro-faq-item__header {
  background: rgba(124, 58, 237, 0.1);
}

.astro-faq-item__question {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--astro-text);
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

.astro-faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  margin-left: 16px;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--astro-accent);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.astro-faq-item--expanded .astro-faq-item__toggle {
  transform: rotate(180deg);
}

.astro-faq-item__answer {
  display: none;
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--astro-card-border);
  background: rgba(255, 255, 255, 0.01);
}

.astro-faq-item--expanded .astro-faq-item__answer {
  display: block;
}

.astro-faq-item__answer p {
  font-size: 14px;
  color: var(--astro-text-mid);
  line-height: 1.8;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.astro-cta {
  padding: 60px 48px;
  max-width: 760px;
  margin: 0 auto;
}

.astro-cta__card {
  padding: 44px 36px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(232, 201, 106, 0.04) 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  position: relative;
  overflow: hidden;
}

.astro-cta__card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
}

.astro-cta__label {
  font-size: 10px;
  color: var(--astro-accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}

.astro-cta__title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: var(--astro-text);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.35;
  position: relative;
}

.astro-cta__text {
  font-size: 14px;
  color: var(--astro-text-mid);
  margin: 0 auto 28px;
  line-height: 1.7;
  max-width: 500px;
  position: relative;
}

.astro-cta__button {
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: var(--astro-btn-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 30px var(--astro-accent-glow);
  font-family: 'Inter', sans-serif;
  position: relative;
  transition: all 0.3s;
}

.astro-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--astro-accent-glow);
}

/* ===== RESPONSIVE: MOBILE (< 768px) ===== */
@media (max-width: 768px) {
  .astro-hero {
    padding: 50px 20px 40px;
  }

  .astro-hero__label {
    font-size: 8px;
  }

  .astro-hero__title {
    font-size: 32px;
  }

  .astro-hero__subtitle {
    font-size: 14px;
  }

  .astro-filter {
    padding: 24px 20px;
  }

  .astro-filter__container {
    gap: 8px;
  }

  .astro-filter__button {
    padding: 8px 16px;
    font-size: 12px;
  }

  .astro-faq {
    padding: 40px 20px 60px;
  }

  .astro-faq-category {
    margin-bottom: 40px;
  }

  .astro-faq-category__title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .astro-faq-item__header {
    padding: 16px 18px;
  }

  .astro-faq-item__question {
    font-size: 14px;
  }

  .astro-faq-item__toggle {
    width: 28px;
    height: 28px;
    margin-left: 12px;
    font-size: 16px;
  }

  .astro-faq-item__answer {
    padding: 0 18px 16px 18px;
  }

  .astro-faq-item__answer p {
    font-size: 13px;
  }

  .astro-cta {
    padding: 40px 20px;
  }

  .astro-cta__card {
    padding: 32px 24px;
  }

  .astro-cta__title {
    font-size: 20px;
  }

  .astro-cta__text {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .astro-cta__button {
    padding: 12px 32px;
    font-size: 13px;
  }
}

/* ===== LIGHT MODE (Alternative Theme) ===== */
.astro-body.light-mode {
  --astro-bg: #faf8f4;
  --astro-card: #ffffff;
  --astro-card-border: rgba(201, 168, 76, 0.15);
  --astro-accent: #a07c2a;
  --astro-accent-dark: #8b6914;
  --astro-accent-glow: rgba(201, 168, 76, 0.2);
  --astro-text: #2a2018;
  --astro-text-mid: #6b5d4f;
  --astro-text-dim: #9a8e7f;
  --astro-nav-bg: rgba(250, 248, 244, 0.9);
  --astro-btn-grad: linear-gradient(135deg, #a07c2a, #c9a84c, #a07c2a);
  --astro-title-grad: linear-gradient(135deg, #a07c2a, #c9a84c);
  --astro-section-alt: rgba(201, 168, 76, 0.03);
}

.astro-body.light-mode .astro-hero {
  background: linear-gradient(170deg, #ffffff, #faf8f4, #f0e6d0);
}

.astro-body.light-mode .astro-filter {
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.astro-body.light-mode .astro-filter__button {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.15);
}

.astro-body.light-mode .astro-filter__button:hover {
  background: rgba(201, 168, 76, 0.12);
}

.astro-body.light-mode .astro-faq-category__title {
  border-bottom-color: rgba(201, 168, 76, 0.15);
}

.astro-body.light-mode .astro-faq-item {
  background: #ffffff;
}

.astro-body.light-mode .astro-faq-item--expanded .astro-faq-item__header {
  background: rgba(201, 168, 76, 0.06);
}

.astro-body.light-mode .astro-faq-item__answer {
  background: rgba(201, 168, 76, 0.01);
  border-top-color: rgba(201, 168, 76, 0.15);
}

.astro-body.light-mode .astro-faq-item__toggle {
  background: rgba(201, 168, 76, 0.1);
}

.astro-body.light-mode .astro-cta__card {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(201, 168, 76, 0.02) 100%);
  border-color: rgba(201, 168, 76, 0.1);
}

.astro-body.light-mode .astro-cta__card::before {
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .astro-hero__svg,
  .astro-faq-item,
  .astro-faq-item__toggle,
  .astro-filter__button,
  .astro-cta__button {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== FOCUS STATES ===== */
.astro-filter__button:focus,
.astro-cta__button:focus {
  outline: 2px solid var(--astro-accent);
  outline-offset: 2px;
}

.astro-faq-item__header:focus {
  outline: none;
}

.astro-faq-item:focus-within {
  box-shadow: 0 0 0 2px var(--astro-accent-dark);
}
