/* =============================================
   Ich liebe Kochen – Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --red:        #D63031;
  --red-dark:   #B71C1C;
  --red-light:  #FFF0F0;
  --black:      #1A1A2E;
  --dark:       #2D3436;
  --medium:     #636E72;
  --light:      #B2BEC3;
  --border:     #E8E8E8;
  --bg:         #FAFAF8;
  --card-bg:    #FFFFFF;
  --warm:       #F5F3EF;
  --gold:       #FDCB6E;
  --green:      #00B894;
  --orange:     #E17055;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', system-ui, sans-serif;

  --sh-sm: 0 2px 8px rgba(0,0,0,.06);
  --sh-md: 0 6px 20px rgba(0,0,0,.09);
  --sh-lg: 0 12px 40px rgba(0,0,0,.13);

  --r-sm:   8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-full: 9999px;

  --t: .25s ease;
  --max: 1320px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--dark); line-height: 1.65; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
ul, ol { list-style: none; }
button { font-family: var(--font-b); cursor: pointer; }
input, textarea { font-family: var(--font-b); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--warm); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  transition: gap var(--t);
  flex-shrink: 0;
}
.see-all:hover { gap: 10px; }
.see-all i { font-size: 12px; }

/* Recipe grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.recipe-grid-3 { grid-template-columns: repeat(3, 1fr); }
.recipe-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--t);
  line-height: 1;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-outline { background: transparent; border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--red-light); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-red    { background: var(--red); color: #fff; }
.badge-green  { background: var(--green); color: #fff; }
.badge-gold   { background: var(--gold); color: var(--dark); }
.badge-orange { background: var(--orange); color: #fff; }
.badge-dark   { background: var(--dark); color: #fff; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--sh-sm);
}
.nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
}
.logo-name {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
}
.logo-name em { color: var(--red); font-style: normal; }
.logo-tagline { font-size: 10px; color: var(--light); letter-spacing: .8px; text-transform: uppercase; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--medium);
  transition: all var(--t);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--red); background: var(--red-light); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--warm);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--medium);
  font-size: 16px;
  transition: all var(--t);
}
.icon-btn:hover { background: var(--border); color: var(--dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 15px; padding: 12px 16px; border-radius: var(--r-md); }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  background: #fff;
  width: 100%;
  max-width: 680px;
  margin: 0 24px;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-lg);
  transform: translateY(-20px);
  transition: transform var(--t);
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm);
  border-radius: var(--r-full);
  padding: 14px 22px;
  margin-bottom: 20px;
}
.search-row i { color: var(--light); font-size: 18px; }
.search-row input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 16px; color: var(--dark);
}
.search-row input::placeholder { color: var(--light); }
.search-row button { background: none; border: none; color: var(--light); font-size: 18px; transition: color var(--t); }
.search-row button:hover { color: var(--dark); }
.search-hint { font-size: 13px; color: var(--light); margin-bottom: 12px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tag {
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--warm);
  font-size: 13px;
  font-weight: 500;
  color: var(--medium);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t);
}
.search-tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,26,46,.90) 40%, rgba(26,26,46,.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 64px 0;
}
.hero-badge { margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-h);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-desc { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 440px; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}
.hero-meta i { color: var(--gold); margin-right: 5px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== RECIPE CARD ===== */
.recipe-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  transition: transform .4s ease;
}
.recipe-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-wrap .badge {
  position: absolute;
  top: 12px; left: 12px;
}
.card-save {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 14px;
  transition: all var(--t);
  backdrop-filter: blur(4px);
}
.card-save:hover { background: #fff; transform: scale(1.15); }
.card-save.saved .fa-regular { display: none; }
.card-save.saved .fa-solid  { display: flex; }
.card-save .fa-solid        { display: none; color: var(--red); }

.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 7px;
  line-height: 1.3;
}
.card-title a:hover { color: var(--red); }
.card-desc {
  font-size: 13px;
  color: var(--medium);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 12px;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--medium);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-footer i { color: var(--red); margin-right: 3px; }
.card-diff-easy   { color: var(--green); }
.card-diff-medium { color: var(--gold); }
.card-diff-hard   { color: var(--red); }

/* Horizontal card (for featured sections) */
.recipe-card-h {
  display: flex;
  flex-direction: row;
  height: 160px;
}
.recipe-card-h .card-img-wrap {
  width: 160px;
  aspect-ratio: unset;
  flex-shrink: 0;
  border-radius: 0;
  border-top-left-radius: var(--r-md);
  border-bottom-left-radius: var(--r-md);
}
.recipe-card-h:hover { transform: translateY(-3px); }

/* ===== CATEGORY CARDS ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.cat-card img {
  width: 100%; height: 100%;
  transition: transform .4s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%);
}
.cat-card-label {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 0 8px;
}
.cat-card-count {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: .8;
  margin-top: 2px;
}

/* ===== COLLECTIONS GRID ===== */
.coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.coll-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.coll-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.coll-card img { width: 100%; height: 100%; transition: transform .5s ease; }
.coll-card:hover img { transform: scale(1.06); }
.coll-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,25,.85) 0%, rgba(10,10,25,.1) 70%);
}
.coll-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 1;
  color: #fff;
}
.coll-card-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.coll-card-title {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.coll-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  transition: color var(--t), gap var(--t);
}
.coll-card:hover .coll-card-link { color: #fff; gap: 10px; }

/* ===== STATS ROW ===== */
.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  min-width: 100px;
  flex: 1;
  gap: 4px;
  box-shadow: var(--sh-sm);
}
.stat-card i {
  font-size: 20px;
  color: var(--red);
  margin-bottom: 4px;
}
.stat-card .stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  font-family: var(--font-h);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 11px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
}

/* ===== RECIPE DETAIL PAGE ===== */
.recipe-hero {
  height: 460px;
  position: relative;
  overflow: hidden;
}
.recipe-hero img {
  width: 100%; height: 100%;
}
.recipe-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%);
}
.recipe-hero-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 1;
  color: #fff;
}
.recipe-hero-text .badge { margin-bottom: 10px; }
.recipe-hero-title {
  font-family: var(--font-h);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}
.recipe-hero-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}
.stars { color: var(--gold); font-size: 14px; }

.recipe-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 48px 0;
}
.recipe-sidebar { position: sticky; top: 90px; align-self: start; }

/* Ingredients card */
.ingr-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.ingr-card h3 {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--black);
}
.servings-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.servings-control span { font-size: 14px; color: var(--medium); }
.count-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  transition: all var(--t);
}
.count-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.count-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  min-width: 30px;
  text-align: center;
}
.ingr-list { display: flex; flex-direction: column; gap: 12px; }
.ingr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.ingr-check {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}
.ingr-check.checked {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-size: 11px;
}
.ingr-amount { font-weight: 700; color: var(--red); flex-shrink: 0; min-width: 60px; }
.ingr-name { color: var(--dark); }

/* Instructions */
.instructions-wrap { }
.instructions-wrap h3 {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; margin-bottom: 0; }
.step-num {
  width: 40px; height: 40px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  font-family: var(--font-h);
}
.step-text { padding-top: 8px; line-height: 1.7; color: var(--dark); }

/* Nutrition */
.nutrition-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.nutrition-card h3 {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}
.macro-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.macro {
  text-align: center;
}
.macro-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--color, var(--red)) var(--pct, 0%), var(--border) 0%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
  position: relative;
}
.macro-ring::before {
  content: '';
  width: 58px; height: 58px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}
.macro-val {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}
.macro-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--medium);
}
.nutrition-table {
  border-top: 2px solid var(--border);
  padding-top: 16px;
}
.nut-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.nut-row:last-child { border-bottom: none; }
.nut-row span:last-child { font-weight: 600; color: var(--dark); }

/* Tips */
.tips-section {
  background: var(--red-light);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 32px;
  border-left: 4px solid var(--red);
}
.tips-section h3 {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tips-section h3 i { color: var(--red); }
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.5;
}
.tip-item i { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--light);
  padding: 20px 0 0;
}
.breadcrumb a { color: var(--medium); transition: color var(--t); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: 10px; }

/* Recipe description */
.recipe-desc {
  font-size: 16px;
  color: var(--medium);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-top: 12px;
}

/* Recipe actions bar */
.recipe-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--warm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  transition: all var(--t);
}
.action-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.action-btn i { font-size: 14px; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--black) 0%, #2D3436 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.newsletter-icon {
  width: 64px; height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}
.newsletter-section h2 {
  font-family: var(--font-h);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter-section p {
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 16px;
}
.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--r-full);
  overflow: hidden;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 22px;
  color: #fff;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--t);
  flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255,255,255,.6);
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,.7);
  transition: all var(--t);
}
.social-link:hover { background: var(--red); color: #fff; }

.footer-col h4 {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--t);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: #fff; }
.footer-links a::before {
  content: '›';
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--t); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ===== CATEGORIES PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, #2D3436 100%);
  padding: 64px 0;
  color: #fff;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,.7); font-size: 16px; max-width: 520px; margin: 0 auto; }

.cat-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 64px 0;
}
.cat-page-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}
.cat-page-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.cat-page-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.cat-page-img img { width: 100%; height: 100%; transition: transform .4s ease; }
.cat-page-card:hover .cat-page-img img { transform: scale(1.07); }
.cat-page-body {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-page-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cat-page-name {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}
.cat-page-count { font-size: 12px; color: var(--light); }

/* ===== SEARCH PAGE ===== */
.search-page { padding: 48px 0; }
.search-page-bar {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  padding: 14px 24px;
  margin-bottom: 32px;
  align-items: center;
  transition: border-color var(--t);
  box-shadow: var(--sh-sm);
}
.search-page-bar:focus-within { border-color: var(--red); }
.search-page-bar i { color: var(--light); font-size: 18px; }
.search-page-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--dark);
}
.search-page-bar input::placeholder { color: var(--light); }

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--medium); white-space: nowrap; }
.filter-btn {
  padding: 7px 16px;
  border-radius: var(--r-full);
  background: var(--warm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--medium);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.search-results-info {
  font-size: 14px;
  color: var(--medium);
  margin-bottom: 24px;
}
.search-results-info strong { color: var(--dark); }

/* ===== COLLECTIONS PAGE ===== */
.coll-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 64px 0;
}
.coll-page-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t);
  aspect-ratio: 16/9;
}
.coll-page-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.coll-page-card img { width: 100%; height: 100%; transition: transform .5s ease; }
.coll-page-card:hover img { transform: scale(1.05); }
.coll-page-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.1) 65%);
}
.coll-page-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  z-index: 1;
  color: #fff;
}
.coll-page-count { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 6px; }
.coll-page-title {
  font-family: var(--font-h);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  margin-bottom: 8px;
}
.coll-page-desc { font-size: 14px; color: rgba(255,255,255,.75); max-width: 380px; }
.coll-page-card.large { grid-column: span 2; aspect-ratio: 21/8; }
.coll-page-card.large .coll-page-title { font-size: clamp(22px, 3vw, 36px); }

/* ===== BACK-TO-TOP ===== */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--sh-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t);
  z-index: 50;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== TAG CHIPS ===== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--warm);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--medium);
  cursor: pointer;
  transition: all var(--t);
}
.tag:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== COMMENTS ===== */
.comments-section { padding: 48px 0; }
.comments-section h3 {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 24px;
}
.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment:first-child { border-top: 1px solid var(--border); }
.comment-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.comment-name { font-weight: 600; color: var(--dark); font-size: 14px; }
.comment-date { font-size: 12px; color: var(--light); margin-left: 8px; }
.comment-text { font-size: 14px; color: var(--medium); margin-top: 6px; line-height: 1.6; }
.comment-stars { margin-top: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .recipe-layout { grid-template-columns: 290px 1fr; gap: 28px; }
}

@media (max-width: 992px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .coll-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-page-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-sidebar { position: static; }
  .macro-bars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 480px; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .coll-grid { grid-template-columns: 1fr; }
  .cat-page-grid { grid-template-columns: repeat(2, 1fr); }
  .coll-page-grid { grid-template-columns: 1fr; }
  .coll-page-card.large { grid-column: span 1; aspect-ratio: 16/9; }
  .stats-row { gap: 8px; }
  .stat-card { min-width: 80px; padding: 14px 12px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .recipe-hero { height: 340px; }
}

@media (max-width: 480px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-page-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { flex-wrap: wrap; gap: 12px; }
  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .newsletter-form { flex-direction: column; border-radius: var(--r-md); }
  .newsletter-form button { border-radius: 0 0 var(--r-md) var(--r-md); padding: 14px; }
  .recipe-hero-text { padding: 20px; }
}
