/* main.css */
/* OUTCOME: master stylesheet importing all design system modules */
/* SPEC: Modular CSS architecture, one outcome per file */

/* ========================================
   WORLD-CLASS DESIGN SYSTEM
   Golden Ratio, Serif Typography, Gold Accents, WCAG AAA
   ======================================== */

/* 1. Design tokens and variables */
/* design-system.css */
/* OUTCOME: world-class design tokens defined */
/* SPEC: Golden ratio typography, WCAG AAA colors, gold accents */

/* ========================================
   TYPOGRAPHY - SERIF FOR SACRED TEXT
   ======================================== */

/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Font Families */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Golden Ratio Typography Scale (φ = 1.618) */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.618rem;    /* 26px - φ */
  --text-3xl: 2.618rem;    /* 42px - φ² */
  --text-4xl: 4.236rem;    /* 68px - φ³ */

  /* Line Heights (8pt baseline grid) */
  --leading-tight: 1.25;
  --leading-normal: 1.618;  /* φ ratio */
  --leading-relaxed: 2;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ========================================
     COLORS - WCAG AAA + GOLD ACCENTS
     ======================================== */

  /* Primary Blue (HSL for consistency) */
  --blue-50: hsl(217, 91%, 97%);
  --blue-100: hsl(217, 91%, 94%);
  --blue-200: hsl(217, 91%, 88%);
  --blue-300: hsl(217, 91%, 76%);
  --blue-500: hsl(217, 91%, 60%);
  --blue-600: hsl(217, 91%, 48%);
  --blue-700: hsl(217, 91%, 35%);
  --blue-900: hsl(217, 91%, 18%);

  /* WCAG AAA Grays - 7:1+ Contrast */
  --gray-50: hsl(218, 20%, 97%);
  --gray-100: hsl(218, 20%, 95%);
  --gray-200: hsl(218, 16%, 90%);
  --gray-300: hsl(218, 13%, 80%);
  --gray-400: hsl(218, 12%, 65%);
  --gray-500: hsl(218, 11%, 50%);   /* 7:1 contrast */
  --gray-600: hsl(218, 13%, 40%);   /* 10:1 contrast */
  --gray-700: hsl(218, 15%, 30%);   /* 12:1 contrast */
  --gray-800: hsl(218, 17%, 20%);   /* 14:1 contrast */
  --gray-900: hsl(218, 18%, 12%);   /* 15:1 contrast */

  /* Gold Accents - Spiritual Warmth */
  --gold-50: hsl(45, 90%, 95%);
  --gold-100: hsl(45, 90%, 88%);
  --gold-200: hsl(45, 90%, 75%);
  --gold-300: hsl(45, 90%, 65%);
  --gold-400: hsl(45, 90%, 55%);
  --gold-500: hsl(45, 90%, 50%);
  --gold-600: hsl(45, 90%, 45%);
  --gold-700: hsl(45, 85%, 35%);
  --gold-800: hsl(45, 80%, 25%);

  /* Semantic Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-tertiary: var(--gray-600);
  --text-accent: var(--gold-700);
  --text-scripture: var(--gray-900);

  /* ========================================
     SHADOWS - CINEMATIC LAYERED DEPTH
     ======================================== */

  /* Enhanced layered shadow system */
  --shadow-xs:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.02);

  --shadow-sm:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.02);

  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.04),
    0 16px 32px rgba(0, 0, 0, 0.02);

  --shadow-lg:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 8px 12px rgba(0, 0, 0, 0.08),
    0 16px 24px rgba(0, 0, 0, 0.06),
    0 32px 48px rgba(0, 0, 0, 0.04);

  --shadow-xl:
    0 8px 10px rgba(0, 0, 0, 0.12),
    0 16px 20px rgba(0, 0, 0, 0.1),
    0 32px 40px rgba(0, 0, 0, 0.08),
    0 64px 80px rgba(0, 0, 0, 0.06);

  /* Gold accent shadows for verse references */
  --shadow-gold:
    0 2px 4px rgba(180, 130, 0, 0.15),
    0 4px 8px rgba(180, 130, 0, 0.1),
    0 8px 16px rgba(180, 130, 0, 0.05);

  /* ========================================
     SPACING - GOLDEN RATIO + 8PT GRID
     ======================================== */

  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.618rem;  /* 26px - φ */
  --spacing-xl: 2.618rem;  /* 42px - φ² */
  --spacing-2xl: 4.236rem; /* 68px - φ³ */

  /* ========================================
     BORDERS - MINIMAL CORNERS
     ======================================== */

  /* Fibonacci sequence for border radii */
  --radius-none: 0;
  --radius-minimal: 2px;    /* Buttons, primary UI */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-xl: 13px;
  --radius-2xl: 21px;

  /* ========================================
     TRANSITIONS - MICRO-INTERACTIONS
     ======================================== */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   UTILITY CLASSES - APPLY DESIGN SYSTEM
   ======================================== */

/* Typography utilities */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* Sacred text styling */
.verse-text,
.scripture-text,
.bible-verse {
  font-family: var(--font-serif);
  color: var(--text-scripture);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
}

/* Verse references with gold accent */
.verse-reference,
.verse-reference-home,
.scripture-reference {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-700);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Shadow utilities */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-gold { box-shadow: var(--shadow-gold); }


/* 2. Typography system */
/* typography.css */
/* OUTCOME: golden ratio typography system applied */
/* SPEC: φ scale, serif for sacred text, sans for UI */

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADINGS - GOLDEN RATIO SCALE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-4xl);     /* 68px - φ³ */
  margin-bottom: var(--spacing-xl);
}

h2 {
  font-size: var(--text-3xl);     /* 42px - φ² */
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: var(--text-2xl);     /* 26px - φ */
  margin-bottom: var(--spacing-md);
}

h4 {
  font-size: var(--text-xl);      /* 20px */
}

h5 {
  font-size: var(--text-lg);      /* 18px */
}

h6 {
  font-size: var(--text-base);    /* 16px */
}

/* ========================================
   HERO SECTION TYPOGRAPHY
   ======================================== */

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--spacing-md);
  line-height: var(--leading-tight);
}

.hero-tagline {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  line-height: var(--leading-normal);
}

/* ========================================
   SECTION HEADINGS
   ======================================== */

.popular-heading,
.collection-heading,
.cta-heading {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.popular-subheading,
.collection-subheading,
.cta-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  line-height: var(--leading-normal);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Letter section headings */
.letter-heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
}

.letter-count {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-700);
  letter-spacing: var(--tracking-wide);
}

/* ========================================
   SCRIPTURE TEXT - SERIF FONTS
   ======================================== */

/* All verse text uses serif fonts for reverence */
.verse-text,
.scripture-text,
.bible-verse,
.random-verse-text {
  font-family: var(--font-serif);
  color: var(--text-scripture);
  line-height: var(--leading-relaxed);
  letter-spacing: var(--tracking-normal);
}

/* Italic for emphasized scripture */
.verse-text em,
.scripture-text em {
  font-style: italic;
  font-family: var(--font-serif);
}

/* ========================================
   VERSE REFERENCES - GOLD ACCENTS
   ======================================== */

.verse-reference,
.verse-reference-home,
.scripture-reference {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-700);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* ========================================
   PARAGRAPH TEXT
   ======================================== */

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Lead paragraphs */
.lead,
.intro-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ========================================
   TOPIC DESCRIPTIONS
   ======================================== */

.topic-intro,
.topic-description {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--gray-50);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
}

.topic-outro {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-lg);
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius-md);
}

/* ========================================
   SMALL TEXT & LABELS
   ======================================== */

.label,
.stat-label,
.verse-translation-home {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 600;
}

/* Stats display */
.stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-blue { color: var(--blue-600); }
.stat-green { color: hsl(142, 70%, 45%); }
.stat-purple { color: hsl(271, 70%, 55%); }
.stat-orange { color: hsl(24, 90%, 50%); }

/* ========================================
   LINKS
   ======================================== */

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-700);
}

/* Navigation links */
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--blue-600);
}

/* Footer links */
.footer a {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.footer a:hover {
  color: var(--blue-600);
}

/* ========================================
   JOURNEY PROMPT
   ======================================== */

.journey-heading {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.journey-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  text-align: center;
  line-height: var(--leading-normal);
  margin-bottom: var(--spacing-md);
}

.journey-cta-text {
  font-size: var(--text-base);
  color: var(--gold-700);
  text-align: center;
  font-weight: 600;
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */

.loading-text,
.error-text {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-align: center;
}

.error-text {
  color: hsl(0, 70%, 50%);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 1024px) {
  h1, .hero-title {
    font-size: var(--text-3xl);
  }

  h2, .popular-heading, .collection-heading {
    font-size: var(--text-2xl);
  }

  .stat-value {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  h1, .hero-title {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  .hero-tagline {
    font-size: var(--text-lg);
  }

  .popular-subheading,
  .collection-subheading {
    font-size: var(--text-base);
  }

  .stat-value {
    font-size: var(--text-2xl);
  }
}


/* 3. Layout and navigation */
/* layout.css */
/* OUTCOME: page layout with navigation and footer */
/* SPEC: Minimal design, layered shadows, golden ratio spacing */

/* ========================================
   GLOBAL LAYOUT
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-fast);
}

.nav:hover {
  box-shadow: var(--shadow-md);
}

.nav .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--blue-600);
}

/* Navigation links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--blue-600);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   SEARCH CONTAINER
   ======================================== */

.search-container {
  position: relative;
}

.search-input {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-minimal);
  background: white;
  color: var(--gray-900);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  width: 200px;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm), 0 0 0 3px var(--blue-100);
  width: 300px;
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */

.lang-selector {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--spacing-sm);
  z-index: 100;
}

.lang-dropdown[hidden] {
  display: none;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-minimal);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

.lang-dropdown a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main {
  flex: 1;
  width: 100%;
}

.homepage-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ========================================
   STATIC PAGE LAYOUT
   ======================================== */

.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-3xl);
  color: var(--gray-800);
  line-height: 1.7;
}

.static-article {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-2xl);
}

.static-header h1 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  margin-bottom: var(--spacing-xl);
  color: var(--gray-900);
}

.static-translation-notice {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  border-radius: var(--radius-minimal);
  font-size: var(--text-sm);
  color: var(--blue-800);
}

.static-body {
  display: grid;
  gap: var(--spacing-lg);
}

.static-section h2,
.static-body h2,
.static-body h3 {
  font-family: var(--font-serif);
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.static-body p,
.static-body ul,
.static-body li {
  font-size: var(--text-md);
}

.static-body ul {
  padding-left: var(--spacing-xl);
  list-style: disc;
}

.static-body li + li {
  margin-top: var(--spacing-sm);
}

.static-updated {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

/* ========================================
   HERO SECTION
   ======================================== */

.homepage-hero {
  padding: var(--spacing-2xl) 0;
}

/* ========================================
   SECTIONS WITH SPACING
   ======================================== */

.popular-section,
.collection-section,
.cta-section {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0;
}

.collection-section {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
}

/* ========================================
   GRIDS - GOLDEN RATIO SPACING
   ======================================== */

.popular-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.letter-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* ========================================
   STATS CARD
   ======================================== */

.stats-card {
  background: linear-gradient(135deg, var(--blue-50) 0%, white 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.stat-item {
  text-align: center;
}

/* ========================================
   LETTER SECTIONS
   ======================================== */

.letter-section {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--gray-200);
}

.letter-section:last-child {
  border-bottom: none;
}

/* ========================================
   BROWSE TOGGLE
   ======================================== */

.browse-toggle-section {
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.all-topics-container {
  margin-top: var(--spacing-xl);
  transition: all var(--transition-slow);
}

.all-topics-container.hidden {
  display: none;
}

.organized-topics {
  transition: opacity var(--transition-slow);
}

.organized-topics.hidden {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   JOURNEY PROMPT
   ======================================== */

.journey-prompt {
  background: linear-gradient(135deg, var(--gold-50) 0%, white 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  margin: var(--spacing-xl) 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gold-200);
}

.journey-prompt.hidden {
  display: none;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: var(--spacing-xl) 0;
  margin-top: auto;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.footer a {
  font-size: var(--text-sm);
  color: var(--gray-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--blue-600);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ========================================
   RESPONSIVE LAYOUT
   ======================================== */

@media (max-width: 1024px) {
  .popular-topics-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav .container {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
  }

  .search-input {
    width: 100%;
    max-width: 300px;
  }

  .search-input:focus {
    width: 100%;
  }

  .popular-topics-grid {
    grid-template-columns: 1fr;
  }

  .letter-topics-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .homepage-hero {
    padding: var(--spacing-xl) 0;
  }

  .homepage-main {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .collection-section {
    padding: var(--spacing-lg);
  }

  .footer .container {
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .nav .container {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .homepage-main {
    padding: var(--spacing-md);
  }

  .popular-section,
  .collection-section,
  .cta-section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
  }
}


/* 4. Buttons and interactive elements */
/* buttons.css */
/* OUTCOME: buttons styled with minimal 2px corners + micro-interactions */
/* SPEC: 2px border-radius, layered shadows, smooth transitions */

/* ========================================
   PRIMARY BUTTONS
   ======================================== */

.cta-btn,
.browse-toggle-btn,
button.primary,
.primary-button {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-minimal);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: var(--tracking-normal);
  box-shadow: var(--shadow-sm);
}

/* Primary CTA - Blue */
.cta-primary,
.primary-button {
  background: var(--blue-600);
  color: white;
}

.cta-primary:hover,
.primary-button:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cta-primary:active,
.primary-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Secondary CTA - Outlined */
.cta-secondary,
.secondary-button {
  background: white;
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}

.cta-secondary:hover,
.secondary-button:hover {
  background: var(--blue-50);
  border-color: var(--blue-700);
  color: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cta-secondary:active,
.secondary-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* ========================================
   BROWSE TOGGLE BUTTON
   ======================================== */

.browse-toggle-btn {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: white;
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--text-lg);
  width: 100%;
  max-width: 600px;
  margin: var(--spacing-xl) auto;
  display: block;
  position: relative;
  overflow: hidden;
}

.browse-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.browse-toggle-btn:hover::before {
  left: 100%;
}

.browse-toggle-btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ========================================
   TOPIC CARD LINKS (Button-like)
   ======================================== */

.popular-topic-card,
.letter-topic-link {
  display: block;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.popular-topic-card:hover,
.letter-topic-link:hover {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.popular-topic-card:active,
.letter-topic-link:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Popular topic title */
.popular-topic-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
  transition: color var(--transition-fast);
}

.popular-topic-card:hover .popular-topic-title {
  color: var(--blue-700);
}

/* Topic verse count - GOLD ACCENT */
.popular-topic-count,
.letter-topic-count {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gold-700);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
}

/* ========================================
   LANGUAGE SELECTOR BUTTON
   ======================================== */

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-minimal);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.lang-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}

.lang-btn:active {
  box-shadow: none;
  transform: scale(0.98);
}

/* ========================================
   SEARCH INPUT (button-like styling)
   ======================================== */

.search-input {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-minimal);
  background: white;
  color: var(--gray-900);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  width: 200px;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm), 0 0 0 3px var(--blue-100);
}

.search-input::placeholder {
  color: var(--gray-500);
}

/* ========================================
   CTA BUTTON CONTAINER
   ======================================== */

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  margin-top: var(--spacing-xl);
}

/* ========================================
   LOADING STATES
   ======================================== */

button:disabled,
.button-loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.button-loading::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: var(--spacing-sm);
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 600ms linear infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .browse-toggle-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--text-base);
  }
}


/* 5. Verse cards and scripture display */
/* verse-cards.css */
/* OUTCOME: verse cards styled with world-class beauty */
/* SPEC: Serif fonts, gold accents, layered shadows, minimal corners */

/* Random verse card on homepage */
.random-verse-card {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-2xl) auto;
  max-width: 800px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
}

.random-verse-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

/* Verse text - SERIF FONT for sacred text */
.random-verse-text {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  line-height: var(--leading-relaxed);
  color: var(--text-scripture);
  margin-bottom: var(--spacing-lg);
  letter-spacing: var(--tracking-normal);
  font-weight: 400;
}

/* Verse reference - GOLD ACCENT */
.verse-reference-home {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-700);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.verse-reference-home:hover {
  color: var(--gold-800);
}

/* Translation indicator */
.verse-translation-home {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--gray-600);
  margin-left: var(--spacing-sm);
  letter-spacing: var(--tracking-wide);
}

/* Footer with verse details */
.random-verse-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
}

.verse-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Refresh button - MINIMAL 2PX CORNERS */
.refresh-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: var(--radius-minimal);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.refresh-btn:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.refresh-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Refresh icon with rotation animation */
.refresh-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-slow);
}

.refresh-btn.refreshing .refresh-icon {
  animation: spin 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* ========================================
   TOPIC VERSE CARDS
   ======================================== */

.verse-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.verse-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-300);
  transform: translateY(-1px);
}

/* Verse text in topic pages - SERIF */
.verse-card .verse-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-scripture);
  margin-bottom: var(--spacing-md);
}

/* Verse reference in cards - GOLD */
.verse-card .verse-reference {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold-700);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Commentary text */
.verse-commentary {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-200);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .random-verse-text {
    font-size: var(--text-xl);
  }

  .random-verse-card {
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) var(--spacing-md);
  }

  .random-verse-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .refresh-btn {
    width: 100%;
    justify-content: center;
  }
}


/* 6. Start Here - Emotional Topics (Sprint 1-2) */
/* Start Here Section - Emotional Topics */
/* Sprint 1-2: 3-Second Time to Value MVP */

.start-here-section {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem 1rem;
}

/* Header */
.start-here-header {
  text-align: center;
  margin-bottom: 3rem;
}

.start-here-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.heart-icon {
  width: 16px;
  height: 16px;
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.1);
  }
  20% {
    transform: scale(1);
  }
}

.start-here-text {
  font-weight: 700;
}

.start-here-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.start-here-subheading {
  font-size: 1.125rem;
  color: #64748b;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Empathetic Intro */
.emotional-intro .intro-text.empathetic {
  font-size: 1.25rem;
  font-weight: 500;
  color: #475569;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 16px;
  border-left: 4px solid #3b82f6;
}

/* Start Here Verses */
.start-here-verses {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.start-here-verse-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.start-here-verse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

.start-here-verse-card:first-child {
  border: 2px solid #3b82f6;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Verse Number Badge */
.verse-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Verse Content */
.verse-content-start-here {
  position: relative;
  margin-bottom: 1.5rem;
}

.quote-mark-open-large,
.quote-mark-close-large {
  font-size: 3rem;
  color: #cbd5e1;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
}

.quote-mark-open-large {
  top: -10px;
  left: -10px;
}

.quote-mark-close-large {
  bottom: -30px;
  right: -10px;
}

.verse-text-large {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #1e293b;
  font-weight: 400;
  padding: 0 1rem;
  margin: 0;
}

.verse-text-kjv {
  font-family: Georgia, serif;
  font-style: italic;
}

/* Verse Footer */
.verse-footer-start-here {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.verse-meta-start-here {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.verse-reference-bold {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
}

/* Translation Toggle */
.translation-toggle {
  display: flex;
  gap: 0.25rem;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.25rem;
}

.translation-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.translation-btn:hover {
  color: #1e293b;
  background: #e2e8f0;
}

.translation-btn.active {
  color: white;
  background: #3b82f6;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Share Button */
.verse-share-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.verse-share-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.verse-share-btn-primary:active {
  transform: translateY(0);
}

.verse-share-btn-primary .share-icon {
  width: 18px;
  height: 18px;
}

/* Divider */
.more-verses-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.divider-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: #94a3b8;
  letter-spacing: 0.1em;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .start-here-section {
    padding: 1rem 0.5rem;
  }

  .start-here-heading {
    font-size: 1.5rem;
  }

  .start-here-subheading {
    font-size: 1rem;
  }

  .start-here-verse-card {
    padding: 1.5rem 1rem;
  }

  .verse-text-large {
    font-size: 1.125rem;
    padding: 0 0.5rem;
  }

  .verse-footer-start-here {
    flex-direction: column;
    align-items: flex-start;
  }

  .verse-share-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .quote-mark-open-large,
  .quote-mark-close-large {
    font-size: 2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .heart-icon {
    animation: none;
  }

  .start-here-verse-card {
    transition: none;
  }

  .start-here-verse-card:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .start-here-badge {
    background: #3b82f6;
    color: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .translation-toggle,
  .verse-share-btn-primary {
    display: none;
  }
}


/* ========================================
   OUTCOME: Complete design system loaded
   All modules follow AI-Native Code principles
   ======================================== */
