/*
Theme Name: Hockey Life Hub
Theme URI: https://hockeylifehub.com
Description: Professional SaaS-inspired hockey development platform with recruiting guidance, training resources, and daily pro hockey analysis
Author: Hockey Life Hub Team
Version: 2.0
Text Domain: hockey-life-hub
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ===== BASE STYLES ===== */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #7dd3fc;
  --accent: #0ea5e9;
  --accent-dark: #ea580c;
  --accent-light: #fb923c;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-purple: #a78bfa;
  --accent-green: #84cc16;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-grey: #f1f5f9;
  --border-color: #e2e8f0;
  --ice-blue: #e0f2fe;
  --ice-blue-dark: #bae6fd;
  --light-grey: #cbd5e0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12), 0 30px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home {
  background: transparent;
}

/* Improved Typography Scale with Display Font */
h1, h2 {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.35rem; font-weight: 700; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.main-content p,
article p {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Scroll Fade-in Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Pulse Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
}

/* ===== HEADER ===== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.2rem;
}

.logo h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
}

.main-nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 2.4rem;
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.main-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  height: 2.4rem;
  min-width: auto;
  flex-shrink: 0;
}

.main-nav button:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.mobile-menu-toggle.active {
  background: var(--accent);
}

@media (max-width: 968px) {
  .header-inner { 
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem;
  }
  
  .logo h1 {
    font-size: 1.4rem;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
    padding: 0.6rem 0.8rem;
    font-size: 1.3rem;
  }
  
  /* Hide desktop nav on mobile */
  .desktop-nav {
    display: none !important;
  }
  
  .main-nav { 
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    left: auto;
    width: min(100%, 320px);
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav a,
  .main-nav button {
    font-size: 0.95rem;
    padding: 1rem;
    text-align: left;
    border-radius: 8px;
    display: block;
    width: 100%;
    margin: 0;
  }
  
  .main-nav a:first-child {
    margin-top: 0;
  }
  
  .main-nav a {
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .main-nav button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  }
  
  .main-nav a:hover,
  .main-nav button:hover {
    background: rgba(14, 165, 233, 0.15);
    transform: translateX(4px);
  }
  
  .main-nav button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateX(4px);
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }
  
  body.dark-mode .main-nav {
    background: #1e293b;
  }
  
  body.dark-mode .main-nav a {
    color: #e2e8f0;
    border-bottom-color: #334155;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  
  .logo h1 {
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  .logo h1 a span {
    font-size: 1.3rem;
  }
  
  .mobile-menu-toggle {
    padding: 0.5rem 0.7rem;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  
  .main-nav {
    width: 100% !important;
    padding: 0 1.25rem 1.5rem !important;
  }
  
  .main-nav a,
  .main-nav button {
    font-size: 0.9rem;
    padding: 0.85rem 0.9rem;
  }
}

/* ===== HOMEPAGE ===== */
.homepage-hero {
  text-align: center;
  padding: 8rem 2rem 6rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?w=1200&h=600&fit=crop'),
    linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.homepage-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff"></path></svg>');
  background-size: cover;
  z-index: 3;
}

.homepage-hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 1.5rem;
  color: #ffffff;
  letter-spacing: -2px;
  position: relative;
  line-height: 1.1;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.homepage-hero h1::after {
  content: '';
  display: block;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 1.5rem auto 0;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.5);
}

.homepage-hero p {
  font-size: 1.5rem;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  font-weight: 400;
  z-index: 2;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .homepage-hero h1 { font-size: 2rem; }
  .homepage-hero p { font-size: 1.1rem; }
}

/* ===== GRID LAYOUT ===== */
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 968px) {
  .page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Homepage Background Overlay */
.homepage-bg-overlay {
  position: relative;
  background: linear-gradient(135deg, #e8ecf1 0%, #dce5f0 50%, #e5ecf1 100%);
  min-height: 700px;
  width: 100%;
  padding: 2rem 0;
  overflow: visible;
}

.homepage-bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), transparent 25%, transparent 75%, rgba(255, 255, 255, 0.3));
  z-index: 1;
  pointer-events: none;
}

.homepage-bg-video-container {
  position: absolute;
  top: 75px;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: none;
  aspect-ratio: 16 / 9;
  z-index: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  min-height: 600px;
}

.homepage-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(12px) grayscale(92%);
}

/* Mobile: Video behind tiles */
@media (max-width: 768px) {
  .homepage-bg-overlay {
    min-height: auto;
    padding: 2rem 0;
    position: relative;
  }
  
  .homepage-bg-overlay::before {
    display: none !important;
  }
  
  .homepage-bg-video-container {
    position: absolute !important;
    top: 160px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 800px !important;
    z-index: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
  }
  
  .homepage-bg-video {
    filter: blur(12px) grayscale(92%) !important;
  }
  
  .page-grid { 
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem 0 !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .page-card {
    padding: 1.5rem !important;
    gap: 0.75rem !important;
    background: #e8e8e8 !important;
    border: 2px solid #c0c0c0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }
  
  .page-card h2 {
    font-size: 1.25rem !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    color: var(--text-primary, #1a1a1a) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
  }
  
  .page-card .tagline {
    font-size: 0.875rem !important;
    margin: -0.5rem 0 0 !important;
    color: var(--card-accent, var(--primary)) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  .page-card .description {
    font-size: 0.9375rem !important;
    line-height: 1.7 !important;
    color: var(--text-secondary, #666) !important;
  }
  
  .page-card .cta {
    font-size: 0.95rem !important;
    color: var(--card-accent, var(--primary)) !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
  }
  
  body.dark-mode .page-card {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
  }
  
  body.dark-mode .page-card h2 {
    color: #f8fafc !important;
  }
  
  body.dark-mode .page-card .description {
    color: #e2e8f0 !important;
  }
}

.homepage-bg-overlay .container {
  background: transparent;
  position: relative;
  z-index: 2;
}

.homepage-bg-overlay .container {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ===== CARDS ===== */
.page-card {
  background: #e8e8e8;
  border: 2px solid #c0c0c0;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-card:hover::before {
  transform: scaleX(1);
}

.page-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: var(--card-accent, var(--primary));
}

.page-card h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.page-card .tagline {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--card-accent, var(--primary));
  margin: -0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.page-card .tagline::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.page-card .description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex-grow: 1;
}

.page-card .cta {
  font-weight: 700;
  color: var(--card-accent, var(--primary));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.page-card .cta::after {
  content: '→';
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
}

.page-card:hover .cta::after {
  transform: translateX(6px);
  color: var(--card-accent, var(--primary));
}

/* Prevent underline on page cards */
.page-card:hover {
  text-decoration: none;
}

/* Per-page color schemes */
.page-card[data-page="girls-pathway-playbook"] {
  --card-accent: #ec4899;
}

.page-card[data-page="boys-pathway-playbook"] {
  --card-accent: #3b82f6;
}

.page-card[data-page="hockey-mindset-corner"] {
  --card-accent: #a78bfa;
}

.page-card[data-page="training-hub"] {
  --card-accent: #84cc16;
}

.page-card[data-page="the-daily-shift"] {
  --card-accent: #0ea5e9;
}

.page-card[data-page="hockey-essentials-hub"] {
  --card-accent: #06b6d4;
}

/* ===== PAGE HEADERS ===== */
.page-header {
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  margin: 0 0 1rem;
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  position: relative;
  line-height: 1.1;
}

.page-header .tagline {
  font-size: 1.375rem;
  font-weight: 600;
  opacity: 0.95;
  margin: 0;
  position: relative;
  line-height: 1.4;
}

/* Angled Section Divider */
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--bg-white);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* Per-page header colors */
body.page-girls-pathway-playbook .page-header {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-color: #f9a8d4;
}

body.page-girls-pathway-playbook .page-header h1 {
  color: #be185d;
}

body.page-boys-pathway-playbook .page-header {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #93c5fd;
}

body.page-boys-pathway-playbook .page-header h1 {
  color: #1e40af;
}

body.page-hockey-mindset-corner .page-header {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border-color: #d8b4fe;
}

body.page-hockey-mindset-corner .page-header h1 {
  color: #7c3aed;
}

body.page-training-hub .page-header {
  background: linear-gradient(135deg, #ecfccb 0%, #d9f99d 100%);
  border-color: #bef264;
}

body.page-training-hub .page-header h1 {
  color: #4d7c0f;
}

body.page-the-daily-shift .page-header {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
}

body.page-the-daily-shift .page-header h1 {
  color: #0369a1;
}

body.page-hockey-essentials-hub .page-header {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
  border-color: #67e8f9;
}

body.page-hockey-essentials-hub .page-header h1 {
  color: #0e7490;
}

/* ===== CONTENT AREAS ===== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  margin: 2rem 0;
}

.content-wrapper.full-width {
  grid-template-columns: 1fr;
}

@media (max-width: 968px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

.main-content {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  min-height: 400px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.timeline-sidebar {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  max-height: 80vh;
  overflow-y: auto;
}

.timeline-sidebar h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-sidebar ul,
.timeline-sidebar ol {
  list-style: none;
  padding-left: 0;
}

.timeline-sidebar ul li,
.timeline-sidebar ol li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-sidebar ul li:before,
.timeline-sidebar ol li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.takeaways-box {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.takeaways-box h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.takeaways-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.takeaways-box li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRODUCT GRID (Essentials Hub) ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.product-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.product-card .product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  min-height: 50px;
}

.product-card .product-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
}

.product-card .product-link:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

/* ===== SCORES TICKER WITH LOGOS - RIBBON STYLE ===== */
.scores-ticker-wrapper {
  background: linear-gradient(to right, #1e293b 0%, #0f172a 50%, #1e293b 100%);
  border-bottom: 2px solid #0ea5e9;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0;
}

.scores-ticker-wrapper::before,
.scores-ticker-wrapper::after {
  display: none;
}

.scores-ticker-header {
  display: none;
}

.scores-ticker-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  z-index: 5;
  width: 100%;
  overflow: hidden;
}

.scores-ticker {
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  z-index: 2;
  scroll-behavior: smooth;
  display: flex;
  align-items: center;
  flex: 1;
  border-radius: 0;
  border: none;
  width: 100%;
  padding: 1rem 0;
}

.scores-ticker::-webkit-scrollbar {
  display: none;
}

.scores-ticker::before,
.scores-ticker::after {
  display: none;
}

.ticker-content {
  display: flex;
  gap: 0;
  padding: 0 1rem;
  will-change: transform;
  min-width: fit-content;
  flex-shrink: 0;
}

.ticker-game {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  padding: 0 1.5rem;
  background: transparent;
  border-radius: 0;
  border: none;
  border-right: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: none;
  transition: all 0.2s ease;
  min-width: fit-content;
  backdrop-filter: none;
  flex-shrink: 0;
}

.ticker-game:last-child {
  border-right: none;
}

.ticker-game:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: none;
  transform: none;
}

.scores-ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.scores-ticker-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  z-index: 5;
  overflow: hidden;
}

.ticker-scroll-btn {
  position: relative;
  z-index: 20;
  background: #0ea5e9;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  min-width: 50px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  box-shadow: none;
  line-height: 1;
  flex-shrink: 0;
}

.ticker-scroll-btn:hover {
  background: #0284c7;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.ticker-scroll-left {
  order: 1;
}

.ticker-scroll-right {
  order: 3;
}

.ticker-content {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  will-change: transform;
  min-width: fit-content;
  flex-shrink: 0;
}

.ticker-game {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.6rem 0.9rem;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(14, 165, 233, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  min-width: fit-content;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.ticker-game:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

.ticker-league-badge {
  font-size: 0.65rem;
  font-weight: 900;
  color: #ffffff;
  background: #0ea5e9;
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.ticker-team-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-team-block .team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  padding: 2px;
  flex-shrink: 0;
}

.ticker-team-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: #f1f5f9;
  min-width: 50px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.ticker-score {
  font-size: 1rem;
  font-weight: 900;
  color: #f1f5f9;
  min-width: 28px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-left: 0.5rem;
}

.ticker-score.winner {
  color: #10b981;
  font-size: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ticker-vs {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
  margin: 0 0.5rem;
}

/* Pause animation on hover */
.scores-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* ===== MODALS ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 16px;
  max-width: 450px;
  max-height: 90vh;
  width: 94%;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
}

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

/* Donation Modal (Ice Blue Conversion-Optimized) */
.donation-modal {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border-top: 4px solid var(--primary);
}

.donation-modal h2 {
  margin: 0 0 0.4rem;
  color: var(--primary);
  font-size: 1.6rem;
  font-family: 'Crimson Text', serif;
}

.donation-modal .subtitle {
  color: #475569;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.crew-benefits {
  background: rgba(14, 165, 233, 0.08);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.benefit-item {
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.donation-modal .impact-note {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: #92400e;
  font-weight: 500;
}

.donation-type-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.donation-type-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.65rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  background: white;
  color: #64748b;
  font-size: 0.9rem;
}

.donation-type-toggle label:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.donation-type-toggle input[type="radio"] {
  display: none;
}

.donation-type-toggle input[type="radio"]:checked + span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.amount-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 0.85rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  color: #1e293b;
  position: relative;
}

.amount-btn:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.amount-btn.selected {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.amount-btn.popular::after {
  content: 'Most Popular';
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.custom-amount-section {
  margin-bottom: 1.25rem;
}

.custom-amount-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.custom-amount-section input {
  width: 100%;
  padding: 0.65rem;
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.btn-cancel {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.secure-note {
  text-align: center;
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.secure-note::before {
  content: '🔒';
  font-size: 1rem;
}

.social-proof {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
}

.social-proof strong {
  color: var(--primary);
  font-weight: 700;
}

/* ===== NEWSLETTER FLYOUT ===== */
.newsletter-flyout {
  position: fixed;
  bottom: -350px;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.4);
  max-width: 380px;
  z-index: 9000;
  transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
}

.newsletter-flyout.active {
  bottom: 2rem;
}

.newsletter-flyout .close-flyout {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.newsletter-flyout .close-flyout:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.newsletter-flyout h3 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Crimson Text', serif;
}

.newsletter-flyout p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: 1.5;
}

.newsletter-flyout form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-flyout input {
  padding: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}

.newsletter-flyout input::placeholder {
  color: #94a3b8;
}

.newsletter-flyout input:focus {
  outline: none;
  border-color: #ffffff;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.newsletter-flyout button {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: var(--primary);
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-flyout button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background: #f8fafc;
}

.newsletter-flyout button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .newsletter-flyout {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* ===== FLOATING TOC ===== */
.floating-toc {
  position: fixed;
  right: 2rem;
  top: 150px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 250px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 100;
}

.floating-toc h4 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.floating-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.floating-toc li {
  margin-bottom: 0.5rem;
}

.floating-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.floating-toc a:hover {
  color: var(--primary);
}

@media (max-width: 1400px) {
  .floating-toc { display: none; }
}

/* ===== DARK MODE ===== */
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .site-header {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .main-nav a {
  color: #cbd5e1;
}

body.dark-mode .main-nav a:hover {
  background: #334155;
  color: white;
}

body.dark-mode .page-card,
body.dark-mode .main-content,
body.dark-mode .product-card,
body.dark-mode .floating-toc {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(8px);
  border-color: #334155;
  color: #e2e8f0;
}

/* Product cards in dark mode */
body.dark-mode .product-card h2,
body.dark-mode .product-card h3,
body.dark-mode .product-card h4 {
  color: #f8fafc !important;
}

body.dark-mode .product-card p,
body.dark-mode .product-card .description,
body.dark-mode .product-card .product-description {
  color: #e2e8f0 !important;
}

/* Dark mode headings - high contrast for readability (exclude page headers) */
body.dark-mode .main-content h1,
body.dark-mode .main-content h2,
body.dark-mode .main-content h3,
body.dark-mode .main-content h4,
body.dark-mode .main-content h5,
body.dark-mode .main-content h6,
body.dark-mode article h1,
body.dark-mode article h2,
body.dark-mode article h3,
body.dark-mode article h4,
body.dark-mode article h5,
body.dark-mode article h6 {
  color: #f8fafc !important;
}

/* Exclude page headers - they have their own color rules */
body.dark-mode .page-header h1,
body.dark-mode .page-header .tagline,
body.dark-mode .homepage-hero h1,
body.dark-mode .homepage-hero p {
  color: inherit !important;
}

/* Dark mode paragraphs - bright and legible */
body.dark-mode p,
body.dark-mode .main-content p,
body.dark-mode article p,
body.dark-mode .description,
body.dark-mode .content {
  color: #e2e8f0 !important;
}

body.dark-mode .page-card h2,
body.dark-mode .page-card h3,
body.dark-mode .page-card .description {
  color: #f8fafc;
}

body.dark-mode .page-card .tagline {
  color: #cbd5e1;
}

body.dark-mode .page-card .cta {
  color: #60a5fa;
  background: transparent;
}

body.dark-mode .scores-ticker-wrapper {
  background: rgba(31, 41, 55, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom-color: rgba(14, 165, 233, 0.3) !important;
}

body.dark-mode .scores-ticker {
  background: transparent !important;
}

body.dark-mode .scores-ticker-header {
  background: transparent !important;
  border-bottom-color: rgba(71, 85, 105, 0.3) !important;
}

body.dark-mode .scores-ticker-header h3 {
  color: #38bdf8 !important;
}

body.dark-mode .scores-ticker-header span {
  color: #94a3b8 !important;
}

body.dark-mode .scores-ticker {
  background: #0f172a;
}

body.dark-mode .scores-ticker::before {
  background: linear-gradient(to right, #0f172a, transparent);
}

body.dark-mode .scores-ticker::after {
  background: linear-gradient(to left, #0f172a, transparent);
}

body.dark-mode .ticker-game {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

body.dark-mode .ticker-team-name {
  color: #e2e8f0 !important;
}

body.dark-mode .ticker-score {
  color: #cbd5e1 !important;
}

body.dark-mode .ticker-score.winner {
  color: #38bdf8 !important;
}

body.dark-mode .ticker-vs {
  color: #64748b !important;
}

/* Page headers maintain their light mode colors in dark mode */
body.dark-mode .page-header {
  background: inherit !important;
}

body.dark-mode .takeaways-box {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

/* Dark mode for Expert Recommendations box */
body.dark-mode div[style*="background: #cffafe"] {
  background: #1e3a4c !important;
  border-left-color: #38bdf8 !important;
}

body.dark-mode div[style*="background: #cffafe"] h3 {
  color: #38bdf8 !important;
}

body.dark-mode div[style*="background: #cffafe"] ul,
body.dark-mode div[style*="background: #cffafe"] li {
  color: #e2e8f0 !important;
}

body.dark-mode div[style*="background: #cffafe"] strong {
  color: #7dd3fc !important;
}

/* Dark mode for product card buttons and stars */
body.dark-mode .product-card .product-link {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
}

body.dark-mode .product-card .product-link:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%) !important;
}

/* Star ratings in dark mode */
body.dark-mode span[style*="color: #06b6d4"] {
  color: #38bdf8 !important;
}

body.dark-mode .site-footer {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark-mode .footer-disclaimer,
body.dark-mode .footer-nav a {
  color: #94a3b8;
}

body.dark-mode .footer-nav a:hover {
  color: #60a5fa;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .articles-feed {
  border-top-color: #334155;
}

body.dark-mode .articles-feed h2,
body.dark-mode .articles-feed h3,
body.dark-mode .articles-feed h4,
body.dark-mode .articles-feed h5 {
  color: #f8fafc !important;
}

body.dark-mode .articles-feed p,
body.dark-mode .articles-feed .description {
  color: #e2e8f0 !important;
}

body.dark-mode .timeline-container {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .timeline-item {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .timeline-item h4,
body.dark-mode .timeline-item h5,
body.dark-mode .timeline-item strong {
  color: #f8fafc !important;
}

body.dark-mode .timeline-item p,
body.dark-mode .timeline-item .description {
  color: #e2e8f0 !important;
}

body.dark-mode .newsletter-flyout {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .donate-modal {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode .donate-modal h2,
body.dark-mode .donate-modal h3 {
  color: #f1f5f9;
}

body.dark-mode .homepage-hero {
  color: #e2e8f0;
}

body.dark-mode .homepage-hero h1,
body.dark-mode .homepage-hero p {
  color: #f1f5f9;
}

/* Keep page header text dark on light gradient backgrounds in dark mode */
body.dark-mode.page-girls-pathway-playbook .page-header h1 {
  color: #be185d;
}

body.dark-mode.page-boys-pathway-playbook .page-header h1 {
  color: #1e40af;
}

body.dark-mode.page-hockey-mindset-corner .page-header h1 {
  color: #7c3aed;
}

body.dark-mode.page-training-hub .page-header h1 {
  color: #4d7c0f;
}

body.dark-mode.page-the-daily-shift .page-header h1 {
  color: #0369a1;
}

body.dark-mode.page-hockey-essentials-hub .page-header h1 {
  color: #0e7490;
}

body.dark-mode.page-girls-pathway-playbook .page-header .tagline,
body.dark-mode.page-boys-pathway-playbook .page-header .tagline,
body.dark-mode.page-hockey-mindset-corner .page-header .tagline,
body.dark-mode.page-training-hub .page-header .tagline,
body.dark-mode.page-the-daily-shift .page-header .tagline,
body.dark-mode.page-hockey-essentials-hub .page-header .tagline {
  color: rgba(0, 0, 0, 0.7);
}

body.dark-mode .timeline-sidebar,
body.dark-mode .takeaways-box {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .timeline-sidebar h3,
body.dark-mode .takeaways-box h3 {
  color: #f1f5f9 !important;
}

body.dark-mode .timeline-sidebar ul li,
body.dark-mode .takeaways-box ul li {
  color: #e2e8f0 !important;
}

body.dark-mode .timeline-sidebar ul li strong,
body.dark-mode .takeaways-box ul li strong {
  color: #ffffff !important;
}

body.dark-mode .timeline-sidebar p,
body.dark-mode .takeaways-box p {
  color: #e2e8f0 !important;
}

/* Timeline-specific dark mode styles */
body.dark-mode .hlh-timeline-container {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark-mode .hlh-timeline-container h4,
body.dark-mode .hlh-timeline-container h5,
body.dark-mode .hlh-timeline-container .age,
body.dark-mode .hlh-timeline-container .grade,
body.dark-mode .hlh-timeline-container .title {
  color: #f8fafc !important;
}

body.dark-mode .hlh-timeline-container .description,
body.dark-mode .hlh-timeline-container p {
  color: #e2e8f0;
}

body.dark-mode .hlh-timeline-container ul li {
  color: #cbd5e1;
}

body.dark-mode .hlh-timeline-container .stage,
body.dark-mode .hlh-timeline-container .timeline-stage {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

body.dark-mode .hlh-timeline-container button {
  background: #334155;
  color: #f1f5f9;
  border-color: #475569;
}

body.dark-mode .hlh-timeline-container button:hover {
  background: #475569;
}
  color: #cbd5e1;
}

body.dark-mode .footer-disclaimer,
body.dark-mode .footer-nav a {
  color: #94a3b8;
}

body.dark-mode .footer-nav a:hover {
  color: #60a5fa;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .articles-feed {
  border-top-color: #334155;
}

body.dark-mode .articles-feed h2 {
  color: #f1f5f9;
}

body.dark-mode .timeline-container {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .timeline-item {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .newsletter-flyout {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark-mode .donate-modal {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode .donate-modal h2,
body.dark-mode .donate-modal h3 {
  color: #f1f5f9;
}

.dark-mode-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 8000;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-disclaimer {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Footer Newsletter Signup */
.footer-newsletter {
  background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
  color: #0f172a;
  padding: 2rem 1.5rem;
  margin: 2rem 0 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #0ea5e9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.footer-newsletter h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.footer-newsletter p {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  padding: 0.65rem 1rem;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: white;
  color: #0f172a;
  transition: all 0.25s;
}

.footer-newsletter-form input::placeholder {
  color: #94a3b8;
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.footer-newsletter-form button {
  padding: 0.65rem 1.5rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}

.footer-newsletter-form button:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.footer-newsletter-form button:active {
  transform: translateY(0);
}

.footer-newsletter-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.footer-newsletter-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .footer-newsletter {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0 1rem;
  }
  
  .footer-newsletter h4 {
    font-size: 1rem;
  }
  
  .footer-newsletter p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .footer-newsletter-form {
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .footer-newsletter-form input,
  .footer-newsletter-form button {
    width: 100%;
    max-width: 100%;
  }
}

body.dark-mode .footer-newsletter {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #cbd5e1;
  border-left-color: #0ea5e9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .footer-newsletter h4 {
  color: #f1f5f9;
}

body.dark-mode .footer-newsletter p {
  color: #cbd5e1;
}

body.dark-mode .footer-newsletter input {
  background: #334155;
  border-color: #475569;
  color: #f1f5f9;
}

body.dark-mode .footer-newsletter input::placeholder {
  color: #64748b;
}

body.dark-mode .footer-newsletter input:focus {
  border-color: #0ea5e9;
  background: #1e293b;
}

body.dark-mode .site-footer {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .footer-nav a {
  color: #cbd5e1;
}

body.dark-mode .footer-nav a:hover {
  color: #60a5fa;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--text-muted);
}

body.dark-mode .breadcrumbs {
  color: #94a3b8;
}

body.dark-mode .breadcrumbs a {
  color: #60a5fa;
}

/* ===== LOADING STATES ===== */
.timeline-loading {
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pulse-loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: pulse-spin 1s linear infinite;
}

@keyframes pulse-spin {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.timeline-loading p {
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
}

body.dark-mode .pulse-loader {
  border-color: rgba(96, 165, 250, 0.2);
  border-top-color: #60a5fa;
}

body.dark-mode .timeline-loading p {
  color: #cbd5e1;
}

/* ===== SOCIAL SHARING BUTTONS ===== */
.social-share {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.social-share h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-share-btn.twitter {
  background: #1DA1F2;
}

.social-share-btn.facebook {
  background: #1877F2;
}

.social-share-btn.linkedin {
  background: #0A66C2;
}

.social-share-btn.email {
  background: #EA4335;
}

.social-share-btn.copy {
  background: #64748b;
}

.social-share-btn.copy.copied {
  background: #10b981;
}

body.dark-mode .social-share {
  background: #1e293b;
  border-color: #334155;
}

@media (max-width: 600px) {
  .social-share-buttons {
    flex-direction: column;
  }
  
  .social-share-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
