/* ==========================================================================
   CookSoups.com - Modern Recipe Blog Styles
   Inspired by: Nora Cooks, Love and Lemons, Bianca Zapatka
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Warm Soup Theme (inspired by Nora Cooks coral/navy) */
  --color-primary: #C45D3A;
  --color-primary-dark: #A34829;
  --color-primary-light: #E8B54A;
  --color-secondary: #5D8A4C;
  --color-accent: #FFF8E7;
  --color-background: #FFFBF7;
  --color-surface: #FFFFFF;
  --color-surface-alt: #FAF7F2;
  --color-text: #2D2926;
  --color-text-light: #6B635D;
  --color-text-muted: #9B9490;
  --color-border: #E8E4DF;
  --color-border-light: #F0EDE8;

  /* Typography - Serif + Sans pairing */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale (1.25 ratio) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Spacing - Generous like Love and Lemons */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout - Content-focused like references */
  --max-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 320px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-5xl); margin-bottom: var(--space-8); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-4); }

p {
  margin-bottom: var(--space-6);
  max-width: 65ch;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section {
  padding: var(--space-16) 0;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Bianca Zapatka style - uppercase, letter-spaced)
   -------------------------------------------------------------------------- */
.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-5) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-primary-dark);
}

.nav {
  display: flex;
  gap: var(--space-8);
}

.nav a {
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-2) 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-normal);
}

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

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: var(--space-12) 0 var(--space-16);
  text-align: center;
}

.hero__image {
  width: 100%;
  max-width: 900px;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-10);
  box-shadow: var(--shadow-lg);
}

.hero__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Post Header (Nora Cooks style - with meta info)
   -------------------------------------------------------------------------- */
.post-header {
  background: var(--color-surface-alt);
  padding: var(--space-10) 0;
  margin-bottom: var(--space-10);
  text-align: center;
}

.post-header__category {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.post-header__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.post-header__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.post-header__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.post-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Jump to Recipe Button (Love and Lemons style - prominent CTA)
   -------------------------------------------------------------------------- */
.jump-to-recipe {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-primary);
  color: white;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.jump-to-recipe:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.jump-to-recipe svg {
  width: 18px;
  height: 18px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-12);
}

/* --------------------------------------------------------------------------
   Recipe Card (Clear separation, modern styling)
   -------------------------------------------------------------------------- */
.recipe-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-10);
  margin: var(--space-12) auto;
  border: 1px solid var(--color-border-light);
  max-width: 800px;
}

.recipe-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.recipe-card__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.recipe-card__description {
  color: var(--color-text-light);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.recipe-card__meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 80px;
}

.meta-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-alt);
  border-radius: 50%;
  color: var(--color-primary);
}

.meta-item__icon svg {
  width: 20px;
  height: 20px;
}

.meta-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-item__value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Nutrition Facts (Clean grid)
   -------------------------------------------------------------------------- */
.nutrition {
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.nutrition__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nutrition__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

.nutrition__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.nutrition__item {
  text-align: center;
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.nutrition__value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.nutrition__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .nutrition__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Ingredients List (Love and Lemons style - square bullets, checkable)
   -------------------------------------------------------------------------- */
.ingredients {
  margin: var(--space-10) 0;
}

.ingredients__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ingredients__title svg {
  color: var(--color-primary);
}

.ingredients__list {
  list-style: none;
}

.ingredients__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}

.ingredients__item:hover {
  background: var(--color-surface-alt);
  margin: 0 calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.ingredients__checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.ingredients__text {
  flex: 1;
  font-size: var(--text-base);
  line-height: 1.6;
}

.ingredients__item.checked .ingredients__text {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Instructions (Numbered steps with generous spacing)
   -------------------------------------------------------------------------- */
.instructions {
  margin: var(--space-10) 0;
}

.instructions__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.instructions__list {
  counter-reset: step;
  list-style: none;
}

.instructions__step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.instructions__step:last-child {
  border-bottom: none;
}

.instructions__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.instructions__content {
  flex: 1;
  padding-top: var(--space-2);
}

.instructions__content p {
  margin-bottom: var(--space-4);
}

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

.instructions__tip {
  background: var(--color-accent);
  border-left: 3px solid var(--color-primary-light);
  padding: var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Recipe Grid (Homepage/category - 3 column)
   -------------------------------------------------------------------------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin: var(--space-10) 0;
}

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

@media (max-width: 640px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

.recipe-preview {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.recipe-preview:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.recipe-preview__image-wrap {
  position: relative;
  overflow: hidden;
}

.recipe-preview__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform var(--transition-slow);
}

.recipe-preview:hover .recipe-preview__image {
  transform: scale(1.05);
}

.recipe-preview__category {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}

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

.recipe-preview__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.recipe-preview__title a {
  color: var(--color-text);
}

.recipe-preview__title a:hover {
  color: var(--color-primary);
}

.recipe-preview__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.recipe-preview__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.recipe-preview__meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn--print {
  background: var(--color-secondary);
  color: white;
}

.btn--print:hover {
  background: #4A7340;
  color: white;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-section {
  background: var(--color-surface-alt);
  padding: var(--space-16) 0;
  text-align: center;
}

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

.about-section p {
  max-width: 700px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: var(--space-16) 0 var(--space-10);
  margin-top: var(--space-20);
}

.footer a {
  color: rgba(255,255,255,0.8);
}

.footer a:hover {
  color: white;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
}

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

.footer__brand {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: white;
  margin-bottom: var(--space-4);
}

.footer__title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-light);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

/* --------------------------------------------------------------------------
   Recipe Notes Box
   -------------------------------------------------------------------------- */
.recipe-notes {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}

.recipe-notes h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.recipe-notes ul {
  list-style: none;
}

.recipe-notes li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.recipe-notes li:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   Decorative Elements (Love and Lemons style)
   -------------------------------------------------------------------------- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-12) 0;
  color: var(--color-border);
}

.section-divider::before,
.section-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--color-border);
}

.section-divider svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.375rem;
  }

  .hero {
    padding: var(--space-8) 0 var(--space-12);
  }

  .hero__image {
    height: 280px;
    border-radius: var(--radius-lg);
  }

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

  .recipe-card__header {
    flex-direction: column;
    gap: var(--space-4);
  }

  .recipe-card__meta {
    width: 100%;
    justify-content: space-between;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .footer__grid {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Recipe Card Meta Items (alternative class names for recipe pages)
   -------------------------------------------------------------------------- */
.recipe-card__header {
  text-align: left;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.recipe-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.recipe-card__meta-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.recipe-card__section-title {
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.recipe-card__nutrition,
.recipe-card__ingredients,
.recipe-card__instructions,
.recipe-card__notes {
  margin-bottom: var(--space-8);
}

/* Nutrition Grid item styles */
.nutrition-item {
  text-align: center;
  padding: var(--space-3);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
}

.nutrition-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.nutrition-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ingredient List (alternative class names) */
.ingredient-list {
  list-style: none;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.ingredient-item:last-child {
  border-bottom: none;
}

.ingredient-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.ingredient-item label {
  flex: 1;
  cursor: pointer;
  line-height: 1.6;
}

.ingredient-item input[type="checkbox"]:checked + label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* Instruction List (alternative class names) */
.instruction-list {
  list-style: none;
  counter-reset: step;
}

.instruction-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border-light);
  counter-increment: step;
}

.instruction-item:last-child {
  border-bottom: none;
}

.instruction-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.instruction-content {
  flex: 1;
  line-height: 1.7;
}

.instruction-content strong {
  color: var(--color-text);
}

/* Post Header Enhancements */
.post-header__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.post-header__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-primary-light);
}

.post-header__rating svg {
  color: var(--color-primary-light);
}

/* Post Hero Image */
.post-hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-10);
  box-shadow: var(--shadow-lg);
}

/* Post Figure - Inline Images */
.post-figure {
  margin: var(--space-10) 0;
  text-align: center;
}

.post-inline-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.post-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Related Recipes Section */
.related-recipes {
  margin-top: var(--space-16);
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
  max-width: 1000px;
}

.related-recipes h2 {
  margin-bottom: var(--space-8);
}

.related-recipes .recipe-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .related-recipes .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-recipes .recipe-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Breadcrumb Navigation
   -------------------------------------------------------------------------- */
.breadcrumb {
  background: var(--color-surface);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  color: var(--color-border);
  margin-left: var(--space-1);
}

.breadcrumb__item a {
  color: var(--color-text-light);
}

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

.breadcrumb__item[aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Recipe Card Info (Course/Cuisine/Diet)
   -------------------------------------------------------------------------- */
.recipe-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.recipe-card__info-item {
  color: var(--color-text-light);
}

.recipe-card__info-item strong {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  margin: var(--space-12) auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  max-width: 800px;
}

.faq-section h2 {
  margin-bottom: var(--space-8);
  font-size: var(--text-2xl);
}

.faq-item {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.faq-item p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Post Header Updated Date
   -------------------------------------------------------------------------- */
.post-header__updated {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   6-Item Nutrition Grid
   -------------------------------------------------------------------------- */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .nutrition-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.pagination__numbers {
  display: flex;
  gap: 0.25rem;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pagination__link:hover:not(.pagination__link--disabled):not(.pagination__link--current) {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination__link--current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pagination__link--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__link--prev,
.pagination__link--next {
  min-width: auto;
}

@media (max-width: 600px) {
  .pagination {
    flex-wrap: wrap;
  }

  .pagination__numbers {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Category Grid
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.category-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.category-card__count {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}

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

@media (max-width: 500px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Section Title
   -------------------------------------------------------------------------- */
.section__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Hero Count (for category pages)
   -------------------------------------------------------------------------- */
.hero__count {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Search Overlay
   -------------------------------------------------------------------------- */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-toggle:hover {
  color: var(--color-primary);
}

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

.search-toggle__hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
}

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

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  transition: transform var(--transition-normal);
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.search-header svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--text-lg);
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-text);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

.search-close:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.search-results {
  max-height: calc(70vh - 60px);
  overflow-y: auto;
  padding: var(--space-2);
}

.search-hint,
.search-no-results {
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.search-result {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.search-result:hover {
  background: var(--color-surface-alt);
}

.search-result__image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-result__content {
  flex: 1;
  min-width: 0;
}

.search-result__category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.search-result__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: var(--space-1) 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Social Share Buttons
   -------------------------------------------------------------------------- */
.share-buttons {
  display: flex;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.share-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
  color: white;
}

.share-btn--pinterest { background: #E60023; }
.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #1DA1F2; }
.share-btn--email { background: var(--color-text-light); }

.share-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Servings Control ===== */
.servings-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
}

.servings-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.servings-btn:hover {
  background: var(--primary);
  color: white;
}

.servings-btn:active {
  transform: scale(0.95);
}

#servings-count {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 1.5rem;
  text-align: center;
}

/* ===== Unit Toggle ===== */
.unit-toggle {
  display: flex;
  gap: 0;
  margin: 0.75rem 0 1rem;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--primary);
  width: fit-content;
}

.unit-toggle__btn {
  padding: 0.4rem 1rem;
  border: none;
  background: white;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.unit-toggle__btn:first-child {
  border-right: 1px solid var(--primary);
}

.unit-toggle__btn--active,
.unit-toggle__btn:hover {
  background: var(--primary);
  color: white;
}

/* ===== Newsletter Section ===== */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, #c45c26 100%);
  padding: 3rem 0;
  color: white;
  text-align: center;
}

.newsletter__content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.newsletter__text {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.newsletter__form {
  display: flex;
  gap: 0.5rem;
  max-width: 450px;
  margin: 0 auto 0.75rem;
}

.newsletter__input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.newsletter__input:focus {
  outline: 2px solid white;
}

.newsletter__btn {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.newsletter__privacy {
  font-size: 0.8rem;
  opacity: 0.8;
}

.newsletter__success {
  padding: 1rem;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__btn {
    width: 100%;
  }
}

/* ===== Difficulty Badge ===== */
.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0.5rem 0;
}

.difficulty--easy {
  background: #d4edda;
  color: #155724;
}

.difficulty--medium {
  background: #fff3cd;
  color: #856404;
}

.difficulty--hard {
  background: #f8d7da;
  color: #721c24;
}

/* ===== Print Styles ===== */
@media print {
  .header, .footer, .no-print, .btn-group, .jump-to-recipe {
    display: none !important;
  }

  body {
    font-size: 11pt;
    background: white;
    color: black;
    line-height: 1.5;
  }

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

  .hero__image {
    height: auto;
    max-height: 250px;
    border-radius: 0;
  }

  .ingredients__item {
    break-inside: avoid;
  }

  .instructions__step {
    break-inside: avoid;
  }

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

  .nutrition__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Cook Mode - Fullscreen Step-by-Step
   -------------------------------------------------------------------------- */
.cook-mode-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-background);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cook-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cook-mode-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin: 0;
}

.cook-mode-close {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cook-mode-close:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-text-muted);
}

.cook-mode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  overflow-y: auto;
}

.cook-mode-step {
  max-width: 800px;
  text-align: center;
}

.cook-mode-step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.cook-mode-step-number span {
  font-weight: 700;
}

.cook-mode-step {
  font-size: var(--text-2xl);
  line-height: 1.6;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .cook-mode-step-number {
    font-size: var(--text-2xl);
  }

  .cook-mode-step {
    font-size: var(--text-3xl);
  }
}

.cook-mode-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cook-mode-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cook-mode-nav-btn:hover:not(:disabled) {
  background: var(--color-surface-alt);
  border-color: var(--color-text-muted);
}

.cook-mode-nav-btn--primary {
  background: var(--color-primary);
  color: white;
  border: none;
}

.cook-mode-nav-btn--primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.cook-mode-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cook-mode-progress {
  width: 200px;
  height: 8px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.cook-mode-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width var(--transition-normal);
}

/* Cook Mode Button in Recipe Card */
.cook-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  background: var(--color-secondary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cook-mode-btn:hover {
  background: #4a7340;
  transform: translateY(-1px);
}

.cook-mode-btn svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Shopping List
   -------------------------------------------------------------------------- */
.shopping-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.shopping-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.shopping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.shopping-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin: 0;
}

.shopping-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shopping-close:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.shopping-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
}

.shopping-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shopping-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.shopping-item:last-child {
  border-bottom: none;
}

.shopping-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.shopping-item label {
  flex: 1;
  font-size: var(--text-base);
  color: var(--color-text);
  cursor: pointer;
}

.shopping-item input:checked + label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.shopping-item-recipe {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.shopping-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.shopping-item:hover .shopping-item-remove {
  opacity: 1;
}

.shopping-item-remove:hover {
  background: #f8d7da;
  color: #721c24;
}

.shopping-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
}

.shopping-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.shopping-empty p {
  margin: 0;
}

/* Shopping Clear Button in Modal */
.shopping-clear {
  display: block;
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shopping-clear:hover {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Shopping List Buttons in Recipe */
.shopping-list-actions {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.shopping-list-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-primary);
  border: none;
  color: white;
}

.shopping-list-btn:hover {
  background: var(--color-primary-dark);
}

.shopping-list-btn--view {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.shopping-list-btn--view:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-text-muted);
}

.shopping-list-btn--success {
  background: var(--color-secondary);
}

.shopping-list-btn--success:hover {
  background: #4a7340;
}

/* Print Hide for Cook Mode and Shopping List */
@media print {
  .cook-mode-btn,
  .shopping-list-actions,
  .shopping-overlay,
  .cook-mode-overlay {
    display: none !important;
  }
}
