/* ═══════════════════════════════════════════════════════════
   TORAH STUDY PLATFORM — MAIN STYLES
   Sacred, Cinematic, Intelligent Design System
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   CSS VARIABLES — Modern Light Palette (Unified)
   ───────────────────────────────────────────── */
:root {
  /* Primary Colors - Light Theme */
  --primary-bg: #FFFFFF;
  --surface-light: #F8FAFC;
  --surface-gray: #F1F5F9;
  --warm-gold: #d4af37;
  --soft-gold: #e8d7a7;
  --pale-gold: #f5ead6;

  /* Accent Colors */
  --accent-blue: #1366D6;  /* Darkened for WCAG AA (was #158EFF) */
  --accent-purple: #8B5CF6;
  --divine-blue: #2b4c7e;
  --wisdom-purple: #5b4b8a;
  --torah-red: #8b2635;

  /* Text Colors - WCAG AA Compliant (4.5:1 minimum contrast) */
  --text-primary: #0F172A;
  --text-secondary: #475569;  /* Darkened for WCAG AA (was #64748B) */
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;
  --text-gold: var(--warm-gold);
  --text-white: #FFFFFF;

  /* Background Layers */
  --bg-primary: #FFFFFF;
  --bg-elevated: #F8FAFC;
  --bg-card: rgba(248, 250, 252, 0.8);
  --bg-overlay: rgba(255, 255, 255, 0.95);

  /* Borders & Dividers */
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-light: #E2E8F0;
  --border-gray: #CBD5E1;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-emphasis: rgba(212, 175, 55, 0.6);

  /* Effects & Shadows - Enhanced 2x for better depth (FPI Tier 1) */
  --glow-gold: rgba(212, 175, 55, 0.6);  /* Boosted from 0.4 */
  --glow-blue: rgba(21, 142, 255, 0.5);  /* Boosted from 0.3 */
  --shadow-sm: 0 2px 4px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 8px 12px -2px rgb(0 0 0 / 0.15), 0 4px 8px -4px rgb(0 0 0 / 0.15);
  --shadow-lg: 0 20px 30px -6px rgb(0 0 0 / 0.15), 0 8px 12px -8px rgb(0 0 0 / 0.15);
  --shadow-xl: 0 40px 50px -10px rgb(0 0 0 / 0.15), 0 16px 20px -12px rgb(0 0 0 / 0.15);
  --shadow-2xl: 0 50px 100px -24px rgb(0 0 0 / 0.35);

  /* Typography - FIXED: Correct font classification */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-content: 'Crimson Pro', Georgia, serif;
  --font-hebrew: 'Frank Ruhl Libre', 'Times New Roman', serif;

  /* Legacy aliases for compatibility */
  --font-serif: var(--font-content);
  --font-sans: var(--font-ui);

  /* Spacing Scale - 4px base unit (FIXED) */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background:
    radial-gradient(ellipse 100% 100% at 50% 0%,
      rgba(21, 142, 255, 0.08) 0%,  /* Boosted vibrancy (FPI Tier 1) */
      transparent 50%),
    linear-gradient(180deg,
      #FFFFFF 0%,
      #F8FAFC 40%,
      #F1F5F9 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────
   AMBIENT EFFECTS - Light Theme
   ───────────────────────────────────────────── */
.ambient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(21, 142, 255, 0.12) 0%, transparent 50%),  /* Boosted vibrancy */
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 50%);  /* Boosted vibrancy */
  pointer-events: none;
  z-index: 1;
  animation: ambientPulse 20s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.parchment-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(15, 23, 42, 0.015) 2px,
      rgba(15, 23, 42, 0.015) 4px
    );
  pointer-events: none;
  opacity: 0.2;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 1.25rem 3rem;  /* 48px bezel spacing */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-gold);
  text-decoration: none;
}

.hebrew-letter {
  font-family: var(--font-hebrew);
  font-size: 2rem;
  font-weight: 700;
  color: var(--warm-gold);
  text-shadow: 0 0 20px var(--glow-gold);
}

.platform-name {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--warm-gold);
  transition: width var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hebrew-date {
  font-family: var(--font-hebrew);
  font-size: 1.05rem;
  color: var(--text-muted);
  direction: rtl;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

/* ─────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.sacred-marker {
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease;
}

.crown-icon {
  font-size: 3rem;
  color: var(--warm-gold);
  text-shadow: 0 0 30px var(--glow-gold);
  animation: crownGlow 3s ease-in-out infinite;
}

@keyframes crownGlow {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 20px var(--glow-gold);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 40px var(--glow-gold), 0 0 60px var(--glow-gold);
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.title-line {
  display: block;
}

.gold-text {
  background: linear-gradient(135deg,
    hsl(43, 74%, 49%) 0%,    /* Boosted saturation warm gold */
    hsl(43, 84%, 70%) 100%); /* Boosted saturation soft gold */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.4s both;
}

.current-parsha-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px var(--shadow-deep);
  animation: fadeInUp 1s ease 0.6s both;
}

.badge-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-parsha {
  font-family: var(--font-hebrew);
  font-size: 1.75rem;
  color: var(--text-gold);
  font-weight: 700;
  direction: rtl;
}

.hero-background-gradient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 60%
  );
  animation: gradientPulse 8s ease-in-out infinite;
  z-index: 1;
}

@keyframes gradientPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* ─────────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────────── */
section {
  position: relative;
  z-index: 10;
  padding: 5rem 2rem;
}

.container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 3rem;  /* 48px bezel spacing */
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-weight: 300;
}

/* ─────────────────────────────────────────────
   LEARNING MODES
   ───────────────────────────────────────────── */
.learning-modes {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, 0.02) 100%);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mode-card {
  position: relative;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-gold), var(--soft-gold));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.mode-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow:
    0 20px 60px var(--shadow-deep),
    0 0 40px var(--glow-gold);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card.featured {
  border-color: var(--border-emphasis);
  background: linear-gradient(135deg, rgba(21, 142, 255, 0.12), var(--bg-card));  /* Vibrant blue gradient */
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 1rem;
  background: var(--warm-gold);
  color: var(--sacred-black);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
}

.mode-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.5rem;
  color: var(--warm-gold);
  opacity: 0.9;
}

.mode-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.mode-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.mode-features {
  list-style: none;
  margin-bottom: 2rem;
}

.mode-features li {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.mode-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--warm-gold);
  font-size: 0.75rem;
}

.mode-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--warm-gold), var(--soft-gold));
  color: var(--sacred-black);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
}

.mode-button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* ─────────────────────────────────────────────
   QUICK ACCESS
   ───────────────────────────────────────────── */
.quick-access {
  background: rgba(212, 175, 55, 0.02);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.access-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-smooth);
}

.access-card:hover {
  transform: translateY(-8px);  /* Enhanced hover lift (FPI Tier 1) */
  border-color: var(--border-gold);
  box-shadow: var(--shadow-xl);
}

.access-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.access-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.access-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.access-link {
  display: inline-block;
  color: var(--text-gold);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  min-width: 44px;
}

.access-link:hover {
  transform: translateX(5px);
  text-shadow: 0 0 20px var(--glow-gold);
}

/* ─────────────────────────────────────────────
   INTELLIGENCE PREVIEW
   ───────────────────────────────────────────── */
.intelligence-preview {
  background: linear-gradient(180deg, transparent 0%, rgba(43, 76, 126, 0.05) 100%);
}

.intelligence-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.stat-item:hover {
  border-color: var(--border-gold);
  transform: scale(1.05);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--warm-gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--glow-gold);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.intelligence-description {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
}

.intelligence-description p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.main-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1536px;
  margin: 0 auto 3rem;
  padding: 0 3rem;  /* 48px bezel spacing */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  font-family: var(--font-serif);
  color: var(--text-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--text-gold);
}

.footer-bottom {
  max-width: 1536px;
  margin: 0 auto;
  padding: 2rem 3rem 0;  /* 48px bezel spacing */
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─────────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────────── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    min-height: 80vh;
    padding: 6rem 1.5rem 3rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .modes-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────
   SCROLL PROGRESS BAR
   ───────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-gold), var(--soft-gold));
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

/* ─────────────────────────────────────────────
   SEARCH RESULTS
   ───────────────────────────────────────────── */
.search-results-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: none;
}

.search-results-container.active {
  display: block;
}

.search-loading {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
}

.search-loading .loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--warm-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

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

.search-loading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.search-results-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-gold);
}

.search-results-header h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--warm-gold);
  margin: 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.search-result-card:hover {
  transform: translateY(-8px);  /* Enhanced hover lift (FPI Tier 1) */
  box-shadow: var(--shadow-xl);
  border-color: var(--warm-gold);
}

.result-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.result-meta {
  flex: 1;
}

.result-ref {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--warm-gold);
  margin: 0 0 0.5rem 0;
}

.result-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--soft-gold);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--border-gold);
  padding-left: 1.5rem;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
}

.result-link {
  color: var(--warm-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.result-link:hover {
  color: var(--soft-gold);
}

.search-results-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
}

.search-results-footer p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.search-no-results,
.search-error {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
}

.no-results-icon,
.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.search-no-results h3,
.search-error h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--warm-gold);
  margin-bottom: 1rem;
}

.search-no-results p,
.search-error p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.suggestion-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--warm-gold);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);  /* Subtle lift for buttons */
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--warm-gold);
  border: 2px solid var(--warm-gold);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--warm-gold);
  color: var(--sacred-black);
}

/* ─────────────────────────────────────────────
   UNIFIED LESSON SYSTEM
   ───────────────────────────────────────────── */
.unified-lesson-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.unified-lesson {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
}

.lesson-header {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  padding: 3rem 3rem 2rem;
  border-bottom: 2px solid var(--border-gold);
  text-align: center;
}

.lesson-reference {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--warm-gold);
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.lesson-source-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--soft-gold);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lesson-section {
  padding: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.verse-section {
  background: rgba(212, 175, 55, 0.05);
}

.section-icon-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--warm-gold);
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-icon {
  font-size: 2.5rem;
}

.verse-display {
  margin-top: 1.5rem;
}

.verse-hebrew {
  font-family: var(--font-hebrew);
  font-size: 2rem;
  line-height: 1.8;
  color: var(--warm-gold);
  text-align: right;
  direction: rtl;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border-right: 4px solid var(--warm-gold);
}

.verse-english {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-primary);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--warm-gold);
}

.teaching-text {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-secondary);
}

.teaching-text p {
  margin-bottom: 1.5rem;
}

.teaching-text p:last-child {
  margin-bottom: 0;
}

.main-teaching-section .teaching-text {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.discussion-questions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.discussion-questions li {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--warm-gold);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.discussion-questions li:last-child {
  margin-bottom: 0;
}

.lesson-sources {
  padding: 2rem 3rem;
  background: rgba(212, 175, 55, 0.05);
  border-top: 2px solid var(--border-gold);
}

.lesson-sources h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--warm-gold);
  margin: 0 0 1.5rem 0;
}

.sources-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.source-category {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.source-category strong {
  color: var(--soft-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.source-category a {
  color: var(--warm-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.source-category a:hover {
  color: var(--soft-gold);
  text-decoration: underline;
}

.unified-lesson-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.loading-sources {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-style: italic;
}

.lesson-error {
  text-align: center;
  padding: 4rem 2rem;
}

.lesson-error .error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.lesson-error h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--warm-gold);
  margin-bottom: 1rem;
}

.lesson-error p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  padding: 1rem 2rem;
  background: var(--warm-gold);
  color: var(--sacred-black);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--soft-gold);
  transform: translateY(-4px);  /* Subtle lift for buttons */
  box-shadow: var(--shadow-lg);
}

/* ─────────────────────────────────────────────
   HOLIDAYS PAGE
   ───────────────────────────────────────────── */
.holidays-upcoming {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.upcoming-holiday-item {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  min-width: 200px;
}

.upcoming-date {
  font-size: 1.2rem;
  color: var(--warm-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.upcoming-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.upcoming-hebrew {
  font-family: var(--font-hebrew);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.holidays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.holiday-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.holiday-card:hover {
  transform: translateY(-8px);  /* Enhanced hover lift (FPI Tier 1) */
  box-shadow: var(--shadow-xl);
  border-color: var(--warm-gold);
}

.holiday-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.holiday-card h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--warm-gold);
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.holiday-hebrew {
  font-family: var(--font-hebrew);
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1rem;
}

.holiday-desc {
  text-align: center;
  color: var(--soft-gold);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.holiday-details {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.holiday-details p {
  margin-bottom: 1rem;
}

.holiday-details p:last-child {
  margin-bottom: 0;
}

.holiday-details strong {
  color: var(--warm-gold);
}

/* ─────────────────────────────────────────────
   ARCHIVE PAGE
   ───────────────────────────────────────────── */
.archive-book {
  margin-bottom: 4rem;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--warm-gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-gold);
}

.book-icon {
  font-size: 3rem;
}

.parshiyot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.parsha-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.parsha-card:hover {
  transform: translateY(-8px);  /* Enhanced hover lift (FPI Tier 1) */
  box-shadow: var(--shadow-xl);
  border-color: var(--warm-gold);
}

.parsha-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--warm-gold);
  margin: 0 0 0.5rem 0;
}

.parsha-card .hebrew {
  font-family: var(--font-hebrew);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: right;
  direction: rtl;
}

.parsha-card .verse-range {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}
