/* ============================================================================
   RETRO SOUL ENHANCEMENTS - 2025
   Professional 1970s cookbook aesthetic with modern web performance

   This file contains the "soul" upgrades for RealCajunRecipes.com
   Add this after main.css or integrate into main.css
   ============================================================================ */

/* ============================================================================
   ENHANCED TYPOGRAPHY - Retro Cookbook Feel
   ============================================================================ */

/* Load display font for headlines (Cooper Black style) */
/* TODO: Add actual Cooper Black or similar web font */
@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;700;900&display=swap');

:root {
  /* Enhanced Font Stack */
  --font-display: 'Libre Bodoni', Georgia, serif; /* Retro cookbook headlines */
  --font-serif: 'Crimson Pro', Georgia, serif; /* Keep existing */
  --font-sans: 'Inter', system-ui, sans-serif; /* Keep existing */
  --font-slab: 'Courier New', 'Courier', monospace; /* Recipe numbers */
  --font-handwritten: 'Caveat', cursive; /* Rare accents only */

  /* Larger, More Readable Sizes */
  --text-base: 1.125rem; /* 18px (was 16px) */
  --text-lg: 1.25rem; /* 20px */
  --text-xl: 1.375rem; /* 22px */
  --text-2xl: 1.625rem; /* 26px */
  --text-3xl: 2rem; /* 32px */
  --text-4xl: 2.5rem; /* 40px */
  --text-5xl: 3.25rem; /* 52px */
  --text-6xl: 4rem; /* 64px */
  --text-7xl: 5rem; /* 80px */

  /* Generous Line Heights */
  --leading-body: 1.7; /* More breathing room */
  --leading-relaxed: 1.75;
  --leading-loose: 1.85;
}

/* Display headlines with retro cookbook style */
h1.display,
.cookbook-hero__title,
.recipe-title,
.category-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}

/* Recipe step numbers with slab serif */
.recipe-step-number,
.instruction-number {
  font-family: var(--font-slab);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2em;
}

/* Body text: larger and more readable */
body {
  font-size: var(--text-base); /* 18px default */
  line-height: var(--leading-body); /* 1.7 */
}

/* ============================================================================
   HEADER & NAVIGATION - Retro Professional
   ============================================================================ */

/* Better header styling */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
}

.site-logo-img {
  display: block;
  height: 50px;
  width: auto;
}

.site-logo .alphonse-mascot {
  height: 52px !important;
  width: auto !important;
}

.site-tagline {
  margin-top: var(--space-1);
}

.site-tagline img {
  display: block;
  height: auto;
  max-height: 24px;
  width: auto;
  opacity: 0.8;
}

/* Navigation styling */
.main-navigation {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu .menu-item {
  margin: 0;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  display: block;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-primary);
  background: rgba(183, 65, 14, 0.08);
}

/* French language navigation adjustments */
html[lang^="fr"] .nav-menu {
  gap: var(--space-3);
}

html[lang^="fr"] .nav-menu a {
  font-size: 0.95rem;
  padding: var(--space-2) var(--space-2);
}

/* Dropdown menu styles */
.menu-item.has-dropdown {
  position: relative;
}

.menu-item.has-dropdown > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Style dropdown toggle button to match nav links */
.dropdown-toggle {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast);
}

.dropdown-toggle:hover {
  color: var(--color-primary);
  background: rgba(183, 65, 14, 0.08);
}

html[lang^="fr"] .dropdown-toggle {
  font-size: 0.95rem;
  padding: var(--space-2) var(--space-2);
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.menu-item.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--color-card-bg, #ffffff);
  border: 1px solid var(--color-card-border, rgba(0, 0, 0, 0.1));
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: var(--space-2, 8px) 0;
  margin-top: var(--space-1, 4px);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.menu-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  margin: 0;
}

.dropdown-item a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.dropdown-item a:hover {
  color: var(--color-primary);
  background: rgba(183, 65, 14, 0.08);
}

/* Mobile dropdown styles */
.mobile-dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: var(--space-4);
}

.mobile-dropdown-item a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
}

.mobile-dropdown-item a:hover {
  color: var(--color-primary);
}

/* Desktop controls wrapper */
.desktop-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Mobile menu toggle - Clean, minimal design */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  opacity: 0.7;
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.menu-icon {
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background: currentColor;
  left: 0;
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -9px;
}

.menu-icon::after {
  top: 9px;
}

/* Animate to X when active */
.mobile-menu-toggle.active .menu-icon {
  background: transparent;
}

.mobile-menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu Dropdown */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--color-border);
  box-shadow: 0 8px 16px rgba(45, 36, 22, 0.15);
  z-index: 99;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px); /* Use dynamic viewport height for mobile browsers */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overscroll-behavior: contain; /* Prevent scroll chaining */
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.mobile-menu.hidden {
  display: none;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-item {
  margin: 0;
}

.mobile-menu-item a {
  display: block;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 4px solid transparent;
}

.mobile-menu-item a:hover {
  background: var(--cream-dark);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

.mobile-menu-item.current-menu-item a {
  background: rgba(183, 65, 14, 0.08);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

/* Mobile Controls Section */
.mobile-controls {
  padding: var(--space-6);
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
  /* Remove excessive z-index - not needed inside scrollable container */
}

.mobile-control-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

/* Mobile Search Button */
.mobile-search-section {
  display: flex;
  justify-content: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-1);
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-search-btn:hover,
.mobile-search-btn:focus {
  background: var(--color-primary-dark);
  transform: scale(1.02);
}

.mobile-search-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-control-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Ensure mobile controls are always clickable */
.mobile-control-section .language-switcher,
.mobile-control-section .text-size-control,
.mobile-control-section .language-switcher-toggle,
.mobile-control-section .text-size-toggle,
.mobile-control-section button {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
}

/* Language switcher in mobile menu - static dropdown that expands in place */
.mobile-menu .language-switcher {
  width: 100%;
}

.mobile-menu .language-switcher-toggle {
  width: 100%;
  justify-content: space-between;
  background: white;
}

.mobile-menu .language-switcher-dropdown {
  position: static !important;
  transform: none !important;
  margin-top: var(--space-2);
  box-shadow: none;
  border-radius: var(--radius-md);
}

.mobile-menu .language-switcher-dropdown[hidden] {
  display: none;
}

.mobile-menu .current-language {
  display: inline !important;
}

/* Mobile Inline Text Size Buttons */
.mobile-text-size-inline {
  display: flex;
  gap: var(--space-2);
}

.mobile-text-size-inline button {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.mobile-text-size-inline button[data-size="standard"] {
  font-size: 14px;
}

.mobile-text-size-inline button[data-size="large"] {
  font-size: 18px;
}

.mobile-text-size-inline button[data-size="xlarge"] {
  font-size: 22px;
}

.mobile-text-size-inline button:hover {
  border-color: var(--color-primary);
  background: rgba(183, 65, 14, 0.05);
}

.mobile-text-size-inline button.active {
  border-color: var(--color-primary);
  background: rgba(183, 65, 14, 0.1);
  color: var(--color-primary);
}

/* Mobile Search Button */
.mobile-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-search-trigger:hover {
  background: var(--color-primary-dark, #8B3D0E);
  border-color: var(--color-primary-dark, #8B3D0E);
  color: white;
}

.mobile-search-trigger svg {
  width: 20px;
  height: 20px;
}

/* Mobile Search Section - Make it prominent */
.mobile-search-section {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
}

/* Mobile Language Links - Flat layout, no dropdown */
.mobile-language-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.mobile-lang-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--transition-fast);
}

.mobile-lang-link:hover {
  border-color: var(--color-primary);
  background: rgba(183, 65, 14, 0.05);
}

.mobile-lang-link.active {
  border-color: var(--color-primary);
  background: rgba(183, 65, 14, 0.1);
  font-weight: var(--weight-semibold);
}

.mobile-lang-link.cajun-link {
  color: var(--text-secondary);
}

.mobile-lang-flag {
  width: 24px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Header search */
.header-search {
  flex: 0 1 300px;
  max-width: 300px;
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    position: relative;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide desktop navigation and controls */
  .desktop-nav {
    display: none;
  }

  .desktop-controls {
    display: none;
  }

  /* Mobile menu positioning */
  .mobile-menu {
    margin-top: var(--space-2);
  }

  /* Adjust language switcher in mobile */
  .mobile-control-section .language-switcher {
    width: 100%;
  }

  .mobile-control-section .language-switcher__toggle {
    width: 100%;
    justify-content: space-between;
  }

  /* Adjust text size control in mobile */
  .mobile-control-section .text-size-control {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

  .mobile-control-section .text-size-control button {
    flex: 1;
  }
}

/* ============================================================================
   WARM RETRO COLOR PALETTE - No Stark Whites or Blacks
   ============================================================================ */

:root {
  /* Warm Backgrounds - Never pure white! */
  --cream: #FAF8F3;
  --cream-dark: #F1EDE7;
  --linen: #F5F1EB;
  --parchment: #F8F5EE;

  /* Warm Text - Never pure black! */
  --text-primary: #2D2416; /* Dark brown */
  --text-secondary: #5C4E3B; /* Medium brown */
  --text-tertiary: #8A7968; /* Light brown */

  /* Heritage Retro Accents (1970s palette) */
  --burnt-orange: #C85A3D;
  --mustard: #D4A574;
  --avocado: #6B7D4F;
  --harvest-gold: #DAA520;
  --rust: #B7410E;

  /* Cookbook Colors - Warmer, richer tones */
  --cookbook-original: #B7410E; /* Rust, not bright red */
  --cookbook-thanksgiving: #CC5500; /* Burnt orange */
  --cookbook-christmas: #2C5F2D; /* Forest green */
  --cookbook-lent: #6B2C91; /* Royal purple */
  --cookbook-icecream: #B5E7A0; /* Soft mint */

  /* Semantic Color Overrides */
  --color-background: var(--cream);
  --color-background-subtle: var(--cream-dark);
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-tertiary: var(--text-tertiary);

  /* Warm borders */
  --color-border: rgba(45, 36, 22, 0.15);
  --color-border-subtle: rgba(45, 36, 22, 0.08);
}

/* Apply warm background everywhere */
body {
  background-color: var(--cream);
  color: var(--text-primary);
}

/* ============================================================================
   TEXTURE & DEPTH - Tactile Feeling
   ============================================================================ */

/* Subtle paper texture on body */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.03"/></svg>');
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* Warm, soft shadows (not harsh gray) */
:root {
  --shadow-sm: 0 1px 2px 0 rgba(45, 36, 22, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(45, 36, 22, 0.1), 0 2px 4px -1px rgba(45, 36, 22, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(45, 36, 22, 0.12), 0 4px 6px -2px rgba(45, 36, 22, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(45, 36, 22, 0.15), 0 10px 10px -5px rgba(45, 36, 22, 0.08);
  --shadow-2xl: 0 25px 50px -12px rgba(45, 36, 22, 0.25);
}

/* Cards with subtle texture and depth */
.recipe-card,
.category-card,
.content-card {
  background: white;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.recipe-card:hover,
.category-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: rgba(45, 36, 22, 0.2);
}

/* ============================================================================
   COOKBOOK HERO - Enhanced Retro Feel
   ============================================================================ */

.cookbook-hero {
  min-height: 85vh;
  background: var(--cream);
  background-image:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--text-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
}

/* Add subtle texture overlay */
.cookbook-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><filter id="linen"><feTurbulence type="fractalNoise" baseFrequency="0.5" /></filter><rect width="400" height="400" filter="url(%23linen)" opacity="0.02"/></svg>');
  pointer-events: none;
  opacity: 0.5;
}

.cookbook-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.cookbook-hero__badge {
  margin-bottom: var(--space-6);
}

.season-label {
  font-family: var(--font-handwritten);
  font-size: var(--text-xl);
  color: var(--text-secondary);
  display: inline-block;
  padding: var(--space-2) var(--space-6);
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.cookbook-hero__cover {
  margin: var(--space-8) 0 var(--space-10);
  perspective: 1000px;
}

.cookbook-hero__cover img {
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow:
    0 20px 40px rgba(45, 36, 22, 0.2),
    0 4px 8px rgba(45, 36, 22, 0.1);
  transform: rotate(-1deg); /* Slight tilt for character */
  transition: transform var(--transition-slow);
  border: 1px solid rgba(45, 36, 22, 0.1);
}

.cookbook-hero__cover img:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 25px 50px rgba(45, 36, 22, 0.3),
    0 6px 12px rgba(45, 36, 22, 0.15);
}

.cookbook-hero__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}

.cookbook-hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  font-style: italic;
  line-height: var(--leading-relaxed);
}

.cookbook-hero__cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: white;
  background: var(--color-button-bg, var(--color-primary));
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-button-hover, var(--color-primary-dark));
}

.cookbook-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: var(--color-button-hover, var(--color-primary-hover));
  border-color: var(--color-button-hover, var(--color-primary-hover));
  color: white;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-align: center;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ============================================================================
   RECIPE CARDS - Enhanced Visual Hierarchy
   ============================================================================ */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-12); /* 48px - generous spacing! */
  margin-top: var(--space-12);
}

.recipe-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(45, 36, 22, 0.2);
}

.recipe-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
}

.recipe-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.recipe-card:hover .recipe-card__image img {
  transform: scale(1.05);
}

.recipe-card__content {
  padding: var(--space-6);
}

.recipe-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl); /* 26px - prominent! */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.recipe-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.recipe-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--harvest-gold); /* Gold stars! */
  font-weight: 600;
}

.recipe-rating svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.recipe-time {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.recipe-card__excerpt {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background: var(--cream-dark);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-weight: var(--weight-medium);
}

/* Quick Meta Icons - Font Awesome Styling */
.quick-meta__item i,
.quick-meta__item i.fa-solid,
.quick-meta__item i.fa-regular {
  font-style: normal !important;
  font-size: 1em;
  color: var(--color-primary);
  opacity: 1;
  display: inline-block;
  margin-right: 4px;
}

/* ============================================================================
   CATEGORY PAGES - Improved Aesthetics
   ============================================================================ */

.category-header {
  text-align: center;
  margin-bottom: var(--space-16);
  padding: var(--space-12) var(--space-6);
  background: var(--cream-dark);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="texture"><feTurbulence type="fractalNoise" baseFrequency="0.6" /></filter><rect width="300" height="300" filter="url(%23texture)" opacity="0.02"/></svg>');
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.category-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.category-count {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-style: italic;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-8);
}

.filter-select {
  appearance: none;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%235C4E3B" d="M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(183, 65, 14, 0.1);
}

/* ============================================================================
   GENEROUS SPACING SYSTEM
   ============================================================================ */

/* Sections have ample breathing room */
section + section {
  margin-top: var(--space-20); /* 80px between major sections */
}

/* Content spacing */
.content-section {
  margin-bottom: var(--space-16);
}

.content-section h2 {
  margin-bottom: var(--space-6);
}

.content-section p + p {
  margin-top: var(--space-5);
}

/* ============================================================================
   FOOTER - Retro Dark Professional
   ============================================================================ */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-24);
  border-top: 4px solid var(--color-footer-border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
}

.footer-column h4 {
  color: #F5E6D3;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
}

/* Left: Branding */
.footer-about .footer-logo img {
  display: block;
  height: 60px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 2.4375rem; /* 39px - 25% smaller than original 52px */
  font-weight: 900;
  color: #F5E6D3;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.footer-description {
  color: #C6BDB0;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}

.footer-cookbook-promo {
  margin-top: var(--space-4);
  margin-left: 25%;
  margin-right: 0;
  display: inline-flex;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 3px solid rgba(245, 230, 211, 0.35);
  background: radial-gradient(circle at top left,
      rgba(246, 214, 152, 0.22),
      rgba(37, 26, 20, 0.95));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.footer-cookbook-promo::before {
  content: 'The Cookbook';
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #F6D698, #E9A754);
  color: #3B2416;
  border-bottom-right-radius: var(--radius-md);
  font-weight: 700;
}

.footer-cookbook-link {
  display: inline-block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform-origin: center;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6);
}

.footer-cookbook-promo:hover .footer-cookbook-link,
.footer-cookbook-promo:focus-within .footer-cookbook-link {
  transform: translateY(-2px) rotate(-1deg) scale(1.02);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.75);
}

.footer-cookbook-image {
  display: block;
  max-width: 170px;
  height: auto;
  border-radius: var(--radius-sm);
}

.footer-social-links {
  display: flex;
  list-style: none;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(212, 197, 176, 0.1);
  border-radius: var(--radius-md);
  color: #D4C5B0;
  transition: all var(--transition-fast);
}

.footer-social-links a:hover {
  background: var(--rust);
  color: white;
  transform: translateY(-2px);
}

/* Middle: Links - Enhanced with Visual Hierarchy */
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-2);
}

.footer-link-group {
  position: relative;
  padding-left: var(--space-4);
  border-left: 3px solid rgba(212, 197, 176, 0.2);
  transition: border-color 0.3s ease;
}

.footer-link-group:hover {
  border-left-color: var(--harvest-gold);
}

.footer-link-category {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--harvest-gold);
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-menu li {
  position: relative;
  transition: transform 0.2s ease;
}

.footer-menu li::before {
  content: '→';
  position: absolute;
  left: -18px;
  color: var(--harvest-gold);
  opacity: 0;
  transition: opacity 0.2s ease, left 0.2s ease;
}

.footer-menu li:hover::before {
  opacity: 1;
  left: -16px;
}

.footer-menu li:hover {
  transform: translateX(4px);
}

.footer-menu a {
  color: #C6BDB0;
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  display: inline-block;
  position: relative;
}

.footer-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--harvest-gold);
  transition: width 0.3s ease;
}

.footer-menu a:hover {
  color: #F5E6D3;
}

.footer-menu a:hover::after {
  width: 100%;
}

/* French footer adjustments for longer words */
html[lang^="fr"] .footer-links-grid {
  grid-template-columns: auto auto;
  gap: var(--space-4);
}

html[lang^="fr"] .footer-menu a {
  white-space: nowrap;
}

/* Right: Alphonse */
.footer-alphonse {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-alphonse img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Claude Comeaux credit - French only */
.footer-claude-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
  color: #C4B5A0;
  font-size: var(--text-sm);
  font-family: var(--font-serif);
  font-style: italic;
}

.footer-claude {
  margin: 0;
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-8);
  margin-top: var(--space-8);
  border-top: 2px solid rgba(212, 197, 176, 0.15);
  box-shadow: 0 -1px 0 rgba(212, 197, 176, 0.05);
  font-size: var(--text-sm);
  color: #C4B5A0;
}

/* Primary Row - Copyright and Cajun Pride */
.footer-bottom-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-cert-badge {
  height: 70px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-cert-badge:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-bottom-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.copyright {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #D4C5B0;
  font-family: var(--font-serif);
}

.footer-since {
  margin: 0;
  font-size: var(--text-sm);
  color: #A89885;
  font-family: var(--font-sans);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
}

.footer-acadiana {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(212, 197, 176, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 197, 176, 0.15);
}

.footer-cajun-text {
  font-size: var(--text-sm);
  color: #C4B5A0;
  font-family: var(--font-serif);
  font-style: italic;
}

.acadiana-flag {
  height: 24px;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Secondary Row - Tech Stack and Utility Links */
.footer-bottom-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(212, 197, 176, 0.1);
  font-size: var(--text-xs);
}

.footer-tech-stack {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: #A89885;
  font-family: var(--font-sans);
}

.footer-label {
  color: #8B7E6F;
  font-weight: var(--weight-medium);
}

.footer-tech-stack a {
  color: var(--harvest-gold);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: color 0.2s ease;
}

.footer-tech-stack a:hover {
  color: #E5C678;
  text-decoration: underline;
}

.footer-right-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-utility-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-utility-links a {
  color: var(--harvest-gold);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  transition: color 0.2s ease;
}

.footer-utility-links a:hover {
  color: #E5C678;
  text-decoration: underline;
}

.footer-separator {
  color: #8B7E6F;
  opacity: 0.5;
  font-size: var(--text-xs);
}

/* Text Size Control in Footer */
.site-footer .text-size-control {
  position: static;
  display: inline-flex;
  gap: var(--space-1);
  background: rgba(212, 197, 176, 0.12);
  border: 1px solid rgba(212, 197, 176, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-2);
  align-items: center;
}

.site-footer .text-size-control::before {
  content: 'Text:';
  font-size: var(--text-xs);
  color: #8B7E6F;
  font-weight: var(--weight-medium);
  margin-right: var(--space-1);
  font-family: var(--font-sans);
}

.text-size-control button {
  background: rgba(212, 197, 176, 0.15);
  border: 1px solid rgba(212, 197, 176, 0.25);
  color: #C4B5A0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-width: 32px;
  text-align: center;
  line-height: 1;
}

.text-size-control button[data-size="standard"] {
  font-size: 13px;
}

.text-size-control button[data-size="large"] {
  font-size: 15px;
}

.text-size-control button[data-size="xlarge"] {
  font-size: 17px;
}

.text-size-control button:hover {
  background: rgba(212, 197, 176, 0.3);
  color: #E5C678;
  border-color: rgba(212, 197, 176, 0.4);
  transform: translateY(-1px);
}

.text-size-control button.active {
  background: var(--harvest-gold);
  color: var(--earth-dark);
  border-color: var(--harvest-gold);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-alphonse {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }

  .footer-alphonse {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(212, 197, 176, 0.15);
  }

  .footer-bottom {
    gap: var(--space-6);
  }

  .footer-bottom-primary {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .footer-bottom-left {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .footer-cert-badge {
    height: 60px;
  }

  .footer-bottom-right {
    width: 100%;
  }

  .footer-acadiana {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3);
  }

  .footer-cajun-text {
    font-size: var(--text-xs);
  }

  .footer-bottom-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding-top: var(--space-6);
  }

  .footer-tech-stack {
    flex-wrap: wrap;
  }

  .footer-right-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-utility-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-footer .text-size-control {
    width: auto;
  }
}

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

@media (max-width: 768px) {
  :root {
    --text-base: 1rem; /* 16px on mobile */
    --leading-body: 1.65;
  }

  .recipe-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .cookbook-hero {
    min-height: 70vh;
    padding: var(--space-8) var(--space-4);
  }

  .cookbook-hero__cover img {
    max-width: 320px;
  }

  .category-header {
    padding: var(--space-8) var(--space-4);
  }

  .category-title {
    font-size: var(--text-4xl);
  }
}

/* ============================================================================
   PRINT STYLES - Cookbook Quality
   ============================================================================ */

@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  body::before {
    display: none;
  }

  .cookbook-hero,
  .text-size-control,
  .scroll-indicator,
  nav,
  footer {
    display: none;
  }

  .recipe-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .recipe-card__image {
    max-height: 200px;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
