/*
Theme Name: GLPone Recipes
Theme URI: https://glponerecipes.com
Author: GLPone
Description: A clean, modern recipe website theme
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: glpone
*/

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

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --red:        #c0392b;
  --red-dark:   #a93226;
  --red-light:  #e74c3c;
  --orange:     #e67e22;
  --gray-50:    #f8f8f8;
  --gray-100:   #f0f0f0;
  --gray-200:   #e0e0e0;
  --gray-400:   #9e9e9e;
  --gray-600:   #616161;
  --gray-800:   #212121;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --text-muted: #757575;
  --border:     #e5e5e5;
  --font:       'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow:     0 2px 12px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.13);
  --radius:     8px;
  --transition: 0.18s ease;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--md {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════════ */

.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: 8px;
}
.site-logo .logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-logo .logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
}
.header-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color var(--transition);
  background: var(--white);
}
.header-search form:focus-within {
  border-color: var(--red);
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search button {
  background: var(--red);
  color: white;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition);
  border-radius: 0 100px 100px 0;
}
.header-search button:hover { background: var(--red-dark); }
.header-search button svg { width: 16px; height: 16px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-save {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-save:hover { background: var(--red); color: white; }

/* ── Category Nav Bar ──────────────────────────────────────────────────────── */
.cat-nav {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-inner a {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}
.cat-nav-inner a:hover,
.cat-nav-inner a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: 8px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

/* ════════════════════════════════════════════════════════════════════════════
   HERO SEARCH BANNER
   ════════════════════════════════════════════════════════════════════════════ */

.hero-banner {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 40%, #e53935 100%);
  padding: 52px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-banner h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  position: relative;
}
.hero-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  position: relative;
}
.hero-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  position: relative;
}
.hero-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 22px;
  font-size: 15px;
  color: var(--text);
}
.hero-search-form button {
  background: var(--orange);
  color: white;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition);
}
.hero-search-form button:hover { background: #d35400; }

/* ════════════════════════════════════════════════════════════════════════════
   CATEGORY PILLS (Homepage quick-links)
   ════════════════════════════════════════════════════════════════════════════ */

.quick-cats {
  padding: 32px 0 8px;
  background: var(--white);
}
.quick-cats-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.quick-cats-grid::-webkit-scrollbar { display: none; }
.quick-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  flex-shrink: 0;
  padding: 14px 10px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}
.quick-cat:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.quick-cat .cat-emoji { font-size: 26px; line-height: 1; }
.quick-cat span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  line-height: 1.2;
}
.quick-cat:hover span { color: white; }

/* ════════════════════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ════════════════════════════════════════════════════════════════════════════ */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}
.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
  letter-spacing: -0.3px;
}
.section-head h2 span { color: var(--red); }
.view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.view-all:hover { gap: 8px; }

/* ════════════════════════════════════════════════════════════════════════════
   RECIPE CARDS  (AllRecipes style)
   ════════════════════════════════════════════════════════════════════════════ */

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

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.recipe-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}
.recipe-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.recipe-card:hover .recipe-card-img img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.card-badge--orange { background: var(--orange); }
.card-badge--green  { background: #2e7d32; }

.save-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: all var(--transition);
}
.save-btn:hover { color: var(--red); background: white; }

.recipe-card-body {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.recipe-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-800);
  transition: color var(--transition);
}
.recipe-card:hover .recipe-card-body h3 { color: var(--red); }

/* Star rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}
.stars {
  display: flex;
  gap: 1px;
  color: var(--orange);
  font-size: 13px;
}
.star-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  margin-top: auto;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.card-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gray-200);
}

/* No image placeholder */
.no-img-placeholder {
  width: 100%; height: 100%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}

/* ════════════════════════════════════════════════════════════════════════════
   HORIZONTAL SCROLL ROW
   ════════════════════════════════════════════════════════════════════════════ */

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .recipe-card {
  min-width: 230px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   FEATURED / HERO CARD  (big card + list)
   ════════════════════════════════════════════════════════════════════════════ */

.featured-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}

.featured-big-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  display: block;
}
.featured-big-card:hover { box-shadow: var(--shadow-md); }
.featured-big-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}
.featured-big-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.featured-big-card:hover .featured-big-card-img img { transform: scale(1.04); }
.featured-big-card-body { padding: 18px; }
.featured-big-card-body .card-category { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.featured-big-card-body h2 { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--gray-800); margin-bottom: 8px; }
.featured-big-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }

/* List sidebar */
.featured-list { display: flex; flex-direction: column; gap: 0; }
.featured-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.featured-list-item:last-child { border-bottom: none; }
.featured-list-item:hover .fli-title { color: var(--red); }
.fli-img {
  width: 80px; height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}
.fli-img img { width: 100%; height: 100%; object-fit: cover; }
.fli-body { flex: 1; min-width: 0; }
.fli-cat { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.fli-title { font-size: 14px; font-weight: 700; color: var(--gray-800); line-height: 1.3; margin-bottom: 4px; transition: color var(--transition); }
.fli-meta { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════════════════════════════════════════ */

.home-section { padding: 36px 0 0; }
.home-section:last-of-type { padding-bottom: 48px; }

/* ════════════════════════════════════════════════════════════════════════════
   SINGLE RECIPE PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.recipe-page { padding: 28px 0 60px; }

.recipe-breadcrumbs {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.recipe-breadcrumbs a { color: var(--red); }
.recipe-breadcrumbs a:hover { text-decoration: underline; }
.recipe-breadcrumbs span { color: var(--gray-400); }

.recipe-title-area { margin-bottom: 20px; }
.recipe-title-area h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--gray-800); line-height: 1.2; margin-bottom: 10px; }
.recipe-author { font-size: 13px; color: var(--text-muted); }
.recipe-author a { color: var(--red); font-weight: 600; }

.recipe-rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.recipe-rating-large .stars { font-size: 18px; }
.recipe-rating-large .star-count { font-size: 14px; }

.recipe-hero-img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
  background: var(--gray-100);
  overflow: hidden;
}
.recipe-hero-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.recipe-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* Info bar */
.recipe-info-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--gray-50);
}
.info-bar-item {
  flex: 1;
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.info-bar-item:last-child { border-right: none; }
.info-bar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.info-bar-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-800);
}

/* Ingredients */
.recipe-section { margin-bottom: 36px; }
.recipe-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-100);
}

.ingredient-list { display: flex; flex-direction: column; gap: 0; }
.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-check {
  width: 18px; height: 18px;
  border: 2px solid var(--gray-200);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.ingredient-check.checked { background: var(--red); border-color: var(--red); color: white; }
.ingredient-item.checked-item { opacity: 0.5; text-decoration: line-through; }
.ingredient-amount { font-weight: 700; color: var(--gray-800); min-width: 80px; }
.ingredient-name { color: var(--gray-600); }

/* Instructions */
.instruction-list { display: flex; flex-direction: column; gap: 24px; }
.instruction-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.step-text { font-size: 15px; line-height: 1.75; color: var(--gray-600); padding-top: 6px; }

/* Sidebar */
.recipe-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-box-head {
  background: var(--red);
  color: white;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-box-body { padding: 16px; }

/* Nutrition */
.nutrition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nut-item { background: var(--gray-50); border-radius: 6px; padding: 10px; text-align: center; }
.nut-value { font-size: 20px; font-weight: 800; color: var(--gray-800); line-height: 1; }
.nut-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 2px; }

/* Tags sidebar */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.tag-pill:hover { background: var(--red); color: white; border-color: var(--red); }

/* Print btn */
.btn-print {
  width: 100%;
  padding: 11px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--transition);
}
.btn-print:hover { background: var(--gray-100); }

/* ════════════════════════════════════════════════════════════════════════════
   ARCHIVE PAGE
   ════════════════════════════════════════════════════════════════════════════ */

.archive-page { padding: 28px 0 60px; }
.archive-header-box { margin-bottom: 28px; }
.archive-header-box h1 { font-size: 30px; font-weight: 800; color: var(--gray-800); margin-bottom: 6px; }
.archive-header-box p { font-size: 15px; color: var(--text-muted); }

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-pill {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  transition: all var(--transition);
}
.filter-pill:hover { border-color: var(--red); color: var(--red); }
.filter-pill.active { background: var(--red); border-color: var(--red); color: white; }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sort-bar p { font-size: 13px; color: var(--text-muted); }
.sort-bar select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: white;
  outline: none;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 0 0;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--gray-600);
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.current { background: var(--red); border-color: var(--red); color: white; }
.page-btn--wide { width: auto; padding: 0 14px; }

/* ════════════════════════════════════════════════════════════════════════════
   EMPTY STATES
   ════════════════════════════════════════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .es-icon { font-size: 56px; margin-bottom: 20px; }
.empty-state h3 { font-size: 22px; font-weight: 800; color: var(--gray-800); margin-bottom: 10px; }
.empty-state p { font-size: 15px; margin-bottom: 20px; }
.btn-red {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red);
  color: white;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
}
.btn-red:hover { background: var(--red-dark); }

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--gray-800);
  color: #ccc;
  padding: 48px 0 28px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}
.footer-brand .f-logo { font-size: 24px; font-weight: 800; color: var(--red-light); margin-bottom: 4px; }
.footer-brand .f-tagline { font-size: 11px; color: #888; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 260px; }
.footer-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: white; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: #aaa; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; flex-wrap: wrap; gap: 8px; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-sidebar { position: static; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .featured-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .recipe-info-bar { flex-wrap: wrap; }
  .info-bar-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .info-bar-item:nth-child(even) { border-right: none; }
}

@media (max-width: 520px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 36px 0 32px; }
}

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cat-nav.mobile-open .cat-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cat-nav.mobile-open .cat-nav-inner a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
}

/* ── Print ───────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .recipe-sidebar, .home-section { display: none !important; }
  .recipe-layout { grid-template-columns: 1fr !important; }
  body { background: white !important; }
}

/* ── WordPress Helpers ────────────────────────────────────────────────────── */
.aligncenter { text-align: center; margin: 0 auto; }
.alignleft  { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.wp-caption-text { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

/* Checked ingredient state */
.ingredient-item.done { opacity: 0.45; }
.ingredient-item.done .ingredient-amount,
.ingredient-item.done .ingredient-name { text-decoration: line-through; }
