/**
 * Psychic Reading Today – Astrology-first design system
 * Cosmic palette, serif + sans hierarchy, calm & trustworthy (ICP: women 21–60, spiritual curiosity)
 */

/* ========== DESIGN TOKENS ========== */
:root {
  --primary: #2563eb;
  --cosmic-obsidian: #0B0D17;
  --cosmic-midnight: #1e1b4b;
  --cosmic-violet: #5b21b6;
  --cosmic-lavender: #c4b5fd;
  --cosmic-mist: #e9d5ff;
  --cosmic-cream: #faf5ff;
  --cosmic-gold: #d4af37;
  --cosmic-starglow: #fef3c7;
  --success: #10b981;
  --neutral-500: #6b7280;
  --neutral-700: #374151;
  --neutral-900: #111827;
}

/* ========== TYPOGRAPHY ========== */
.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-display {
  font-family: 'Outfit', system-ui, sans-serif;
}

.font-body {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

h1, .text-hero {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ========== COSMIC CTA (astrology gradient) ========== */
.cta-astrology {
  background: linear-gradient(135deg, var(--cosmic-violet) 0%, #7c3aed 50%, var(--primary) 100%);
  background-size: 200% 200%;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-astrology:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.35);
}

.cta-primary {
  background-color: var(--primary);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-primary:hover {
  opacity: 0.9;
}

/* ========== HERO: DEEP COSMIC BACKGROUND ========== */
.intent-hero {
  background: linear-gradient(160deg, var(--cosmic-obsidian) 0%, var(--cosmic-midnight) 45%, #312e81 100%);
}

.hero-video-bg {
  background-image:
    radial-gradient(ellipse 120% 70% at 30% 20%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 85% 75%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(37, 99, 235, 0.08) 0%, transparent 45%);
  animation: nebula-drift 30s ease-in-out infinite;
}

@keyframes nebula-drift {
  0%, 100% { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
  50% { opacity: 0.98; transform: scale(1.03) translate(1%, 1%) rotate(0.5deg); }
}

/* Stars layer – container for JS-injected stars */
.stars-layer {
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.star--gold {
  background: var(--cosmic-gold);
  animation-duration: 4s;
  animation-delay: 0.5s;
}

.star--lavender {
  background: var(--cosmic-lavender);
  opacity: 0.7;
  animation-duration: 3.5s;
  animation-delay: 1s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ========== GLASS CARD (intent selector) ========== */
.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(30, 27, 75, 0.5);
  border: 1px solid rgba(196, 181, 253, 0.15);
  border-radius: 1rem;
  padding: 1.5rem;
}

.intent-selector-card {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.intent-btn.is-active {
  background: rgba(196, 181, 253, 0.2);
  border-color: rgba(196, 181, 253, 0.4);
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.15);
}

/* ========== SECTIONS: ALTERNATING COSMIC FEEL ========== */
.section-alt {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.6) 0%, rgba(233, 213, 255, 0.15) 100%);
}

/* ========== ADVISOR CARDS ========== */
.advisor-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.advisor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.12);
}

/* ========== DETAILED SERVICE REVIEW CARDS (At-a-Glance) ========== */
.service-review-card {
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.1);
}

.service-review-card-inner {
  position: relative;
}

.review-why {
  border-left: 3px solid var(--cosmic-violet);
}

.review-why p:last-child {
  margin-bottom: 0;
}

.review-pros-cons ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.review-pros-cons li {
  position: relative;
  padding-left: 0;
}

.review-screening {
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.6) 0%, rgba(255, 255, 255, 1) 100%);
}

.review-guarantee {
  border-left: 3px solid var(--success);
}

.btn-user-reviews {
  font-size: 0.875rem;
}

.btn-user-reviews:hover {
  box-shadow: 0 2px 12px rgba(91, 33, 182, 0.12);
}

/* ========== BADGES ========== */
.badge-live {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-busy {
  background: linear-gradient(135deg, var(--cosmic-gold) 0%, #b45309 100%);
  color: #111827;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========== GOLD (ratings) ========== */
.text-gold {
  color: var(--cosmic-gold);
}

/* ========== SCROLL-REVEAL ANIMATIONS ========== */
[data-animate],
[data-animate-block] .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible,
[data-animate-block].is-visible .reveal-item,
[data-animate-block].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-block] .reveal-item {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ========== ZODIAC / COSMIC ACCENTS ========== */
.zodiac-icon {
  display: inline-block;
  animation: star-rotate 8s linear infinite;
}

@keyframes star-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== TABS ========== */
.tab-btn.is-active {
  background: linear-gradient(135deg, var(--cosmic-violet) 0%, #7c3aed 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.25);
}

.tab-btn.is-active .encyclopedia-nav-icon {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ========== DIVINATION ENCYCLOPEDIA (sidebar + content) ========== */
.encyclopedia-layout {
  align-items: stretch;
}

.encyclopedia-nav {
  scrollbar-width: thin;
  scrollbar-color: var(--cosmic-mist) transparent;
}

@media (min-width: 768px) {
  .encyclopedia-nav {
    border-right: 1px solid rgba(233, 213, 255, 0.5);
    padding-right: 1.5rem;
  }
}

.tab-panel {
  transition: opacity 0.25s ease;
}

.tab-panel:not(.hidden) {
  animation: encyclopedia-fade 0.3s ease;
}

@keyframes encyclopedia-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== ACCORDION ========== */
.accordion-trigger::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cosmic-violet);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.accordion-item.is-open .accordion-trigger::after {
  content: '−';
}

.accordion-item.is-open.preparation-accordion-item {
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.08);
}

/* ========== PREPARATION SECTION ========== */
.preparation-section {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.6) 0%, rgba(255, 255, 255, 1) 100%);
}

/* ========== FAQ SECTION ========== */
.faq-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 245, 255, 0.4) 100%);
}

.faq-card {
  transition: transform 0.2s ease;
}

.faq-card:hover {
  transform: translateY(-2px);
}

/* ========== OUR PICK: Best Value (highlighted, aligned with stars) ========== */
.pick-best-value {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  min-width: 4.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cosmic-obsidian);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.7) 0%, rgba(250, 245, 255, 0.95) 100%);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.12);
}

.pick-best-value:hover {
  border-color: rgba(212, 175, 55, 0.7);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85) 0%, rgba(250, 245, 255, 1) 100%);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.18);
}

/* Ribbon (cards, comparison matrix) – same single-line treatment */
.ribbon-best-value {
  display: inline-block;
  white-space: nowrap;
  min-width: 4.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cosmic-obsidian);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(196, 181, 253, 0.5);
  background: rgba(250, 245, 255, 0.9);
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  text-align: center;
}

/* ========== VETTING & INTEGRITY VAULT ========== */
.vetting-section {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.5) 0%, rgba(255, 255, 255, 1) 50%);
}

.vet-vault-card {
  border-left: 3px solid transparent;
  transition: border-left-color 0.25s ease, transform 0.25s ease;
}

.vet-vault-card:hover {
  border-left-color: var(--cosmic-violet);
  transform: translateX(2px);
}

.vet-vault-num {
  background: linear-gradient(135deg, var(--cosmic-violet) 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.25);
}

.vetting-disclaimer {
  border-left: 3px solid rgba(196, 181, 253, 0.4);
}

/* ========== STORY SLIDER DOTS ========== */
.story-dot {
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.story-dot.is-active {
  background: var(--cosmic-violet) !important;
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.2);
}

/* ========== QUIZ MODAL ========== */
.quiz-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-modal [data-close="quiz"] {
  cursor: pointer;
}

.quiz-modal .bg-white {
  border: 1px solid var(--cosmic-mist);
  box-shadow: 0 24px 48px rgba(91, 33, 182, 0.15);
}

/* ========== BORDERS (cosmic mist) ========== */
.border-cosmic-mist {
  border-color: rgba(233, 213, 255, 0.6);
}

.border-neutral-300 {
  border-color: #e5e7eb;
}

/* ========== SAFETY BOX ========== */
.safety-box {
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.9) 0%, rgba(233, 213, 255, 0.3) 100%);
  border: 1px solid rgba(196, 181, 253, 0.3);
  box-shadow: 0 4px 24px rgba(91, 33, 182, 0.06);
}

/* ========== HOW TO SPOT A PSYCHIC SCAM ========== */
.scam-section {
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.5) 0%, rgba(254, 243, 199, 0.2) 50%, rgba(250, 245, 255, 0.3) 100%);
  position: relative;
}

.scam-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
  pointer-events: none;
}

.scam-flag-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.scam-flag-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
}

.scam-flag-icon {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.scam-flag-card:hover .scam-flag-icon {
  transform: scale(1.1);
}

/* ========== FOOTER ========== */
.fat-footer {
  background: linear-gradient(180deg, var(--cosmic-obsidian) 0%, var(--cosmic-midnight) 100%);
  border-top: 1px solid rgba(196, 181, 253, 0.1);
}

/* ========== PROSE LINKS ========== */
.prose-custom a,
a.text-primary {
  color: var(--cosmic-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-custom a:hover,
a.text-primary:hover {
  color: #7c3aed;
}

/* ========== MOBILE: THUMB-FRIENDLY ========== */
@media (max-width: 640px) {
  .cta-astrology,
  .cta-primary {
    min-height: 48px;
    padding: 14px 24px;
  }
}

/* ========== EVALUATION CALLOUT (Key Criteria + UX) ========== */
.evaluation-callout ul {
  list-style: none;
  padding-left: 0;
}

.evaluation-callout li {
  position: relative;
  padding-left: 1rem;
}

.evaluation-callout li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--cosmic-violet);
  font-weight: 700;
}

/* ========== SERVICES TABLE (platform comparison) ========== */
.services-table thead th {
  font-family: 'Outfit', system-ui, sans-serif;
}

.services-table tbody td:last-child {
  vertical-align: middle;
  line-height: 1.4;
}

.services-table tbody tr:hover {
  background: rgba(250, 245, 255, 0.8);
}

/* ========== CLARITY WIZARD SECTION ========== */
.clarity-wizard-section {
  background: linear-gradient(180deg, var(--cosmic-cream) 0%, rgba(250, 245, 255, 0.6) 50%, #fff 100%);
}

/* Progress bar: interactive states (completed / current / upcoming) */
.wizard-progress-step.is-completed .wizard-dot {
  border-color: var(--cosmic-violet);
  background: var(--cosmic-violet);
  color: white;
  box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.2);
  font-size: 0;
}

.wizard-progress-step.is-completed .wizard-dot::after {
  content: '✓';
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  font-family: system-ui, sans-serif;
}

.wizard-progress-step.is-completed span:last-child {
  color: var(--cosmic-obsidian);
}

.wizard-progress-step.is-current .wizard-dot {
  border-color: var(--cosmic-violet);
  background: white;
  color: var(--cosmic-violet);
  box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.25);
}

.wizard-progress-step.is-current span:last-child {
  color: var(--cosmic-obsidian);
  font-weight: 600;
}

.wizard-progress-step.is-upcoming .wizard-dot {
  border-color: var(--cosmic-mist);
  background: white;
  color: #9ca3af;
}

.wizard-progress-step.is-upcoming span:last-child {
  color: var(--neutral-500);
}

.wizard-progress-connector {
  transition: background 0.3s ease;
}

.wizard-progress-connector.is-filled {
  background: linear-gradient(90deg, rgba(91, 33, 182, 0.5) 0%, var(--cosmic-mist) 100%);
}

/* ========== WIZARD PROGRESS BAR ========== */
.wizard-progress-line {
  flex: 1 1 0;
  min-width: 0;
}

/* Single-step-at-a-time: only one panel visible */
.wizard-step-panel {
  display: none;
  animation: wizard-panel-in 0.25s ease-out;
}

.wizard-step-panel.is-active {
  display: block;
}

@keyframes wizard-panel-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.wizard-step-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wizard-step-card:hover {
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.08);
}

.wizard-learn-more {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}

.wizard-deep-dive {
  transition: opacity 0.2s ease;
}

.wizard-deep-dive:not(.hidden) {
  border-top: 1px solid rgba(233, 213, 255, 0.6);
  padding-top: 12px;
  margin-top: 4px;
  display: block;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .star,
  .hero-video-bg,
  .wizard-step-panel,
  [data-animate],
  [data-animate-block] .reveal-item {
    animation: none;
    transition: none;
  }

  [data-animate],
  [data-animate-block] .reveal-item {
    opacity: 1;
    transform: none;
  }
}
