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

:root {
  --color-primary: #2D5A27;
  --color-primary-dark: #1E3D1A;
  --color-primary-light: #4A8B3F;
  --color-accent: #D4A853;
  --color-accent-dark: #B8923E;
  --color-bg: #FAFAF7;
  --color-card: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-border: #E8E4DC;
  --color-border-light: #F0EDE5;
  --color-dinner: #2D5A27;
  --color-breakfast: #D4A853;
  --color-lunch: #C17817;
  --color-snack: #7C5CBF;
  --color-side: #5B8C5A;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --max-width-content: 780px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

/* ============ NAVIGATION ============ */
.nav {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  background:
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: white;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='800' height='400' viewBox='0 0 800 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.v%7Bfill:none;stroke-linecap:round%7D%3C/style%3E%3C/defs%3E%3C!-- central midrib --%3E%3Cpath d='M-20 200 Q200 190 400 200 Q600 210 820 200' stroke='rgba(255,255,255,0.18)' stroke-width='5' fill='none'/%3E%3C!-- upper veins --%3E%3Cpath d='M80 200 Q110 140 200 80' class='v' stroke='rgba(255,255,255,0.12)' stroke-width='2.5'/%3E%3Cpath d='M180 196 Q220 120 320 50' class='v' stroke='rgba(255,255,255,0.12)' stroke-width='2.5'/%3E%3Cpath d='M280 194 Q330 105 430 20' class='v' stroke='rgba(255,255,255,0.13)' stroke-width='2.5'/%3E%3Cpath d='M380 196 Q430 100 540 10' class='v' stroke='rgba(255,255,255,0.13)' stroke-width='2.5'/%3E%3Cpath d='M480 198 Q530 95 650 5' class='v' stroke='rgba(255,255,255,0.12)' stroke-width='2.5'/%3E%3Cpath d='M580 200 Q620 110 740 30' class='v' stroke='rgba(255,255,255,0.10)' stroke-width='2.5'/%3E%3Cpath d='M680 202 Q710 130 800 70' class='v' stroke='rgba(255,255,255,0.09)' stroke-width='2.5'/%3E%3C!-- lower veins --%3E%3Cpath d='M80 200 Q110 260 200 320' class='v' stroke='rgba(255,255,255,0.12)' stroke-width='2.5'/%3E%3Cpath d='M180 204 Q220 280 320 350' class='v' stroke='rgba(255,255,255,0.12)' stroke-width='2.5'/%3E%3Cpath d='M280 206 Q330 295 430 380' class='v' stroke='rgba(255,255,255,0.13)' stroke-width='2.5'/%3E%3Cpath d='M380 204 Q430 300 540 390' class='v' stroke='rgba(255,255,255,0.13)' stroke-width='2.5'/%3E%3Cpath d='M480 202 Q530 305 650 395' class='v' stroke='rgba(255,255,255,0.12)' stroke-width='2.5'/%3E%3Cpath d='M580 200 Q620 290 740 370' class='v' stroke='rgba(255,255,255,0.10)' stroke-width='2.5'/%3E%3Cpath d='M680 198 Q710 270 800 330' class='v' stroke='rgba(255,255,255,0.09)' stroke-width='2.5'/%3E%3C!-- secondary upper veins --%3E%3Cpath d='M130 198 Q155 155 220 115' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M230 195 Q260 140 340 90' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M330 194 Q365 130 450 70' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M430 196 Q465 125 560 60' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M530 198 Q560 130 660 55' class='v' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/%3E%3Cpath d='M630 200 Q660 140 750 80' class='v' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/%3E%3C!-- secondary lower veins --%3E%3Cpath d='M130 202 Q155 245 220 285' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M230 205 Q260 260 340 310' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M330 206 Q365 270 450 330' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M430 204 Q465 275 560 340' class='v' stroke='rgba(255,255,255,0.06)' stroke-width='1.5'/%3E%3Cpath d='M530 202 Q560 270 660 345' class='v' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/%3E%3Cpath d='M630 200 Q660 260 750 320' class='v' stroke='rgba(255,255,255,0.05)' stroke-width='1.5'/%3E%3C!-- leaf edge outline --%3E%3Cpath d='M-20 200 Q100 30 400 10 Q700 30 820 200' stroke='rgba(255,255,255,0.10)' stroke-width='2' fill='none'/%3E%3Cpath d='M-20 200 Q100 370 400 390 Q700 370 820 200' stroke='rgba(255,255,255,0.10)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero h1 {
  font-size: 48px;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
}

.hero .tagline {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 300;
  position: relative;
}

.hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
  position: relative;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  display: block;
}

.hero-stat-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* ============ SECTION LAYOUT ============ */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ CATEGORY FILTERS ============ */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  background: var(--color-card);
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.2s;
  text-transform: capitalize;
}

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

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

/* ============ CUISINE FILTERS ============ */
.cuisine-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cuisine-filters .cuisine-btn:hover {
  border-color: #d97706;
  color: #d97706;
}

.cuisine-filters .cuisine-btn.active {
  background: #d97706;
  border-color: #d97706;
  color: white;
}

/* ============ PROTEIN FILTERS ============ */
.protein-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.protein-filters .protein-btn:hover {
  border-color: #8B6914;
  color: #8B6914;
}

.protein-filters .protein-btn.active {
  background: #8B6914;
  border-color: #8B6914;
  color: white;
}

/* No results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-light);
  font-size: 16px;
}

/* ============ RECIPE GRID ============ */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recipe-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.recipe-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.recipe-card-image .card-icon {
  font-size: 64px;
  opacity: 0.3;
}

.recipe-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.recipe-card-protein {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.recipe-card-body {
  padding: 20px 24px 24px;
}

.recipe-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.recipe-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-lighter);
}

.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Difficulty Badges */
.difficulty-badge {
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.difficulty-easy {
  background: #e8f5e9;
  color: #2e7d32;
}

.difficulty-medium {
  background: #fff3e0;
  color: #e65100;
}

.difficulty-hard {
  background: #fce4ec;
  color: #c62828;
}

/* Card background colors by category */
.card-bg-dinner { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.card-bg-breakfast { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.card-bg-lunch { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.card-bg-snack { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.card-bg-side { background: linear-gradient(135deg, #e8f5e9, #dcedc8); }

/* Category badge colors */
.cat-dinner { background: var(--color-dinner); }
.cat-breakfast { background: var(--color-breakfast); }
.cat-lunch { background: var(--color-lunch); }
.cat-snack { background: var(--color-snack); }
.cat-side { background: var(--color-side); }

/* ============ RECIPE PAGE ============ */
.recipe-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Recipe Hero Image */
.recipe-hero-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.recipe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.recipe-breadcrumb {
  font-size: 14px;
  color: var(--color-text-lighter);
  margin-bottom: 24px;
}

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

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

.recipe-title {
  font-size: 42px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.recipe-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.recipe-meta-item {
  text-align: center;
}

.recipe-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-lighter);
  display: block;
  margin-bottom: 4px;
}

.recipe-meta-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.recipe-meta-value.protein-highlight {
  color: var(--color-primary);
}

/* Nutrition Bar */
.recipe-nutrition-bar {
  display: flex;
  justify-content: space-around;
  padding: 20px 24px;
  background: #f8f8f6;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.nutrition-item {
  text-align: center;
}

.nutrition-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  display: block;
  color: var(--color-text);
}

.nutrition-value.protein-highlight {
  color: var(--color-primary);
}

.nutrition-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}

.jump-to-recipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 40px;
  transition: background 0.2s;
}

.jump-to-recipe:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* Story section */
.recipe-story {
  margin-bottom: 48px;
}

.recipe-story p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--color-text);
}

/* Protein Modification Section */
.protein-modification {
  background: linear-gradient(135deg, #f0f7ee, #e8f5e9);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.protein-modification h3 {
  font-size: 20px;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.protein-modification p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

/* Recipe Card (the actual recipe) */
.recipe-card-full {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  margin-bottom: 40px;
}

.recipe-card-full h2 {
  font-size: 32px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-primary);
}

/* Serving Scaler */
.serving-scaler {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--color-border-light);
  border-radius: var(--radius);
}

.serving-scaler label {
  font-weight: 600;
  font-size: 15px;
}

.serving-scaler select {
  padding: 8px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  background: white;
  cursor: pointer;
  color: var(--color-primary);
}

.serving-scaler select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.serving-scaler .protein-per-serving {
  margin-left: auto;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 15px;
}

/* Ingredients */
.ingredients-section {
  margin-bottom: 40px;
}

.ingredients-section h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.ingredients-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ingredients-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ingredients-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.ingredient-amount {
  font-weight: 600;
  color: var(--color-primary);
}

.ingredient-note {
  color: var(--color-text-lighter);
  font-size: 13px;
}

/* Instructions */
.instructions-section {
  margin-bottom: 40px;
}

.instructions-section h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

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

.instructions-list li {
  counter-increment: step;
  padding: 16px 0;
  padding-left: 48px;
  position: relative;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 16px;
  line-height: 1.7;
}

.instructions-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.instructions-list li:last-child {
  border-bottom: none;
}

/* Protein Tips */
.protein-tips {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.protein-tips h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.protein-tips ul {
  list-style: none;
}

.protein-tips li {
  padding: 6px 0;
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.protein-tips li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
}

/* Substitution Tips */
.substitution-tips {
  background: linear-gradient(135deg, #fdf8ed, #fff8e1);
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.substitution-tips h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #92400e;
}

.substitution-tips ul {
  list-style: none;
}

.substitution-tips li {
  padding: 6px 0;
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.substitution-tips li::before {
  content: '~';
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: 700;
  font-size: 18px;
}

/* Pairings */
.recipe-pairings {
  margin-bottom: 40px;
}

.recipe-pairings h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.pairings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pairing-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

a.pairing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pairing-card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pairing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

a.pairing-card:hover .pairing-card-image img {
  transform: scale(1.05);
}

.pairing-card-image .card-icon {
  font-size: 40px;
  opacity: 0.3;
}

.pairing-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pairing-item {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.pairing-protein {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

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

/* Tags */
.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.recipe-tag {
  padding: 4px 14px;
  background: var(--color-border-light);
  border-radius: 50px;
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Print Button */
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid var(--color-border);
  background: white;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.2s;
  margin-bottom: 24px;
}

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

/* ============ ABOUT PAGE ============ */
.about-page {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.about-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
}

.about-content {
  font-size: 17px;
  line-height: 1.9;
}

.about-content p {
  margin-bottom: 20px;
}

.about-content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.about-value {
  padding: 24px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-value h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.about-value p {
  font-size: 15px;
  margin-bottom: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-text);
  color: white;
  padding: 48px 24px;
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .tagline {
    font-size: 17px;
  }

  .hero .hero-stats {
    gap: 32px;
  }

  .recipe-title {
    font-size: 32px;
  }

  .ingredients-list {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-card);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 48px 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 28px;
  }

  .section {
    padding: 40px 16px;
  }

  .recipe-card-full {
    padding: 24px;
  }

  .recipe-meta-bar {
    gap: 16px;
  }

  .recipe-title {
    font-size: 28px;
  }

  .serving-scaler {
    flex-wrap: wrap;
  }

  .serving-scaler .protein-per-serving {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }

  .category-filters {
    gap: 8px;
  }

  .cuisine-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .cuisine-filters .cuisine-btn {
    flex-shrink: 0;
  }

  .protein-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .protein-filters .protein-btn {
    flex-shrink: 0;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .recipe-nutrition-bar {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 16px;
  }

  .nutrition-value {
    font-size: 18px;
  }

  .modal-content {
    padding: 28px 20px;
  }

  .modal-title {
    font-size: 22px;
  }

  .ingredient-protein {
    display: block;
    margin-left: 0;
    margin-top: 2px;
    width: fit-content;
  }
}

/* ============ NUTRITION PERSONALIZATION ============ */
.nutrition-personalize-row {
  text-align: center;
  margin-bottom: 32px;
  margin-top: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.personalize-btn {
  padding: 10px 24px;
  border: 2px solid var(--color-primary);
  background: transparent;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.2s;
}

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

.personalize-reset {
  font-size: 13px;
  color: var(--color-text-lighter);
  text-decoration: underline;
  cursor: pointer;
}

.personalize-reset:hover {
  color: var(--color-text-light);
}

.nutrition-pct {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(45, 90, 39, 0.08);
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
  white-space: nowrap;
}

/* ============ NUTRITION MODAL ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

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

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

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text-lighter);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
  padding-right: 32px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

.modal-field-group {
  margin-bottom: 20px;
}

.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.modal-unit-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.unit-btn,
.sex-btn {
  padding: 6px 16px;
  border: 2px solid var(--color-border);
  background: white;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.2s;
}

.unit-btn:hover,
.sex-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.unit-btn.active,
.sex-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s;
}

.modal-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal-input-sm {
  width: calc(50% - 4px);
}

.modal-height-inputs {
  display: flex;
  gap: 8px;
}

.modal-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.modal-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.modal-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

.modal-submit:hover {
  background: var(--color-primary-dark);
}

/* ============ INGREDIENT PROTEIN BADGES ============ */
.ingredient-protein {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(45, 90, 39, 0.08);
  padding: 1px 8px;
  border-radius: 50px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ============ 404 PAGE ============ */
.four-oh-four {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.four-oh-four h1 {
  font-size: 120px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
  text-align: center;
  width: 100%;
}

.four-oh-four-subtitle {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  text-align: center;
}

.four-oh-four-text {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.7;
  text-align: center;
}

.four-oh-four-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.four-oh-four-search {
  font-size: 14px;
  color: var(--color-text-lighter);
}

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

/* ============ SEARCH PAGE ============ */
.search-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.search-input-wrap {
  max-width: 600px;
  margin: 0 auto 32px;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 18px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

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

.search-meta {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.search-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--color-text-lighter);
  font-size: 16px;
}

/* ============ PRINT STYLES ============ */
@media print {
  .nav, .footer, .jump-to-recipe, .recipe-story,
  .print-btn, .protein-tips, .substitution-tips, .recipe-pairings, .recipe-tags,
  .serving-scaler, .recipe-breadcrumb, .nutrition-personalize-row, .modal-overlay,
  .protein-filters, .search-page .search-input-wrap {
    display: none !important;
  }

  body {
    background: white;
    font-size: 12pt;
  }

  .recipe-card-full {
    box-shadow: none;
    padding: 0;
  }

  .recipe-title {
    font-size: 24pt;
  }

  .ingredients-list {
    grid-template-columns: 1fr 1fr;
  }

  .instructions-list li {
    page-break-inside: avoid;
  }

  .ad-container {
    display: none;
  }
}

/* ============ AD CONTAINERS ============ */

.ad-container {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
  text-align: center;
}
