/* ==========================================================================
   Eggs Suck! - Modern Culinary Web Design System
   ========================================================================== */

:root {
  /* Dark Theme Palette (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-card: #182030;
  --bg-card-hover: #1f2a3f;
  --border-subtle: #27344e;
  --border-highlight: #3b4d70;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #f97316;       /* Energetic Breakfast Ember */
  --accent-hover: #ea580c;
  --accent-glow: rgba(249, 115, 22, 0.25);

  --accent-teal: #06b6d4;          /* Protein Accent */
  --accent-teal-glow: rgba(6, 182, 212, 0.2);

  --accent-green: #10b981;         /* Healthy Green */
  --accent-red: #ef4444;           /* No-Egg Cross */
  --accent-amber: #f59e0b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfdfd;
  --border-subtle: #e2e8f0;
  --border-highlight: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #ea580c;
  --accent-hover: #c2410c;
  --accent-glow: rgba(234, 88, 12, 0.15);

  --accent-teal: #0891b2;
  --accent-teal-glow: rgba(8, 145, 178, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #fb923c);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: var(--accent-red);
  color: #fff;
}

.btn-kdp {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  border: 1px solid rgba(254, 243, 199, 0.2);
}
.btn-kdp:hover {
  background: linear-gradient(135deg, #fbbf24, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.link-btn {
  background: none;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 4px;
}
.link-btn:hover {
  color: var(--accent-hover);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: scale(1.05);
}

.badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
  transition: all var(--transition-fast);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.85);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.egg-icon {
  display: inline-block;
  transform: translateY(-1px);
}

.cross-line {
  position: absolute;
  width: 32px;
  height: 3px;
  background-color: var(--accent-red);
  transform: rotate(-45deg);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0f172a 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Hero Showcase Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.35);
  transform: scale(1.04);
}

[data-theme="light"] .hero-backdrop {
  filter: blur(2px) brightness(0.65);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.4) 0%, var(--bg-primary) 100%);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, var(--bg-primary) 100%);
}

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

.guarantee-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

[data-theme="light"] .guarantee-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

.hero-headline {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #ffffff;
}

[data-theme="light"] .hero-headline {
  color: #0f172a;
}

.hero-subtext {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px;
}

[data-theme="light"] .hero-subtext {
  color: #334155;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto 36px;
  flex-wrap: wrap;
}

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(24, 32, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.8);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Main Content & Filter Center
   ========================================================================== */
.main-content {
  max-width: 1300px;
  margin: -20px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.control-center {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.search-and-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 12px 42px 12px 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.clear-btn:hover {
  color: var(--text-primary);
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}
.chip-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}
.chip-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}
.cat-tab:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}
.cat-tab.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.sliders-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.slider-control {
  min-width: 170px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.slider-val {
  color: var(--accent-teal);
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Recipe Cards Grid
   ========================================================================== */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.card-pill-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.tag-badge {
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.time-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Macros Pill Bar */
.macros-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 16px;
}

.macro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.macro-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.macro-val.protein {
  color: var(--accent-teal);
}

.macro-val.cals {
  color: var(--accent-primary);
}

.macro-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  flex: 1;
}

/* Empty results notice */
.no-results {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 40px auto;
}

.no-results-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.no-results h3 {
  margin-bottom: 8px;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ==========================================================================
   Recipe Detail Modal & Cooking Mode
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

.modal-hero-img-wrap {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%);
}

.modal-inner {
  padding: 24px 32px 36px;
}

.modal-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Modal Macro Display */
.modal-macro-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 28px;
  text-align: center;
}

.modal-macro-box strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-macro-box.highlight strong {
  color: var(--accent-teal);
}

.modal-macro-box span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* Serving Scaler Row */
.serving-scaler-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.scaler-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.scaler-buttons {
  display: flex;
  gap: 8px;
}

.scale-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}
.scale-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Modal Sections */
.modal-recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  margin-bottom: 28px;
}

.recipe-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interactive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.interactive-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.interactive-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}
.interactive-item.checked {
  opacity: 0.55;
  text-decoration: line-through;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #fff;
}
.interactive-item.checked .custom-checkbox {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.step-num-badge {
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.chef-tip-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.chef-tip-box strong {
  color: var(--accent-amber);
}

.modal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Shopping List Slide-Over Drawer
   ========================================================================== */
.grocery-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.grocery-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
}

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.drawer-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: none;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.drawer-close-btn:hover {
  color: var(--text-primary);
}

.drawer-actions-bar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  background: var(--bg-secondary);
}

.grocery-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-cart-state {
  text-align: center;
  color: var(--text-muted);
  margin-top: 60px;
}
.empty-cart-state span {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

/* ==========================================================================
   Manifesto Modal
   ========================================================================== */
.manifesto-card {
  max-width: 720px;
  padding: 36px;
}

.manifesto-tag {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.manifesto-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.lead-quote {
  font-size: 1.05rem;
  color: var(--accent-primary);
  font-style: italic;
  margin-bottom: 24px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.compare-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.compare-card.bad-egg {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.compare-card.bad-egg h3 {
  color: #f87171;
  margin-bottom: 12px;
}

.compare-card.good-food {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.compare-card.good-food h3 {
  color: #34d399;
  margin-bottom: 12px;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Amazon KDP Book Showcase Modal
   ========================================================================== */
.book-modal-card {
  max-width: 820px;
  padding: 36px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.book-modal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.book-modal-cover {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(245, 158, 11, 0.4);
}

.book-cover-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.kdp-badge-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(251, 191, 36, 0.4);
  white-space: nowrap;
}

.kdp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

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

.book-modal-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.book-modal-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.book-modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.book-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.book-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.book-feature-item .feature-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.book-feature-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.book-feature-item p {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.book-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kdp-helper-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  margin: 4px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  background: var(--bg-secondary);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.footer-brand p, .footer-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .hero-headline {
    font-size: 2.1rem;
  }
  .stats-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-recipe-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .modal-macro-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .book-modal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .book-modal-cover {
    max-width: 260px;
    margin: 0 auto;
  }
  .book-cover-img {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .recipes-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 1.8rem;
  }
  .nav-actions .btn {
    display: none;
  }
  .nav-cart-btn {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   Print Styling
   ========================================================================== */
@media print {
  .navbar, .hero-section, .control-center, .site-footer, .modal-close-btn, .modal-actions-bar, .serving-scaler-row {
    display: none !important;
  }
  body, .modal-backdrop, .modal-card {
    background: #ffffff !important;
    color: #000000 !important;
    position: static !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .interactive-item {
    border: none !important;
    padding: 4px 0 !important;
  }
}
