/*
Theme Name: AlexGranig
Theme URI: https://alexgranig.org
Author: Alex Granig
Author URI: https://alexgranig.org
Description: Tema pessoal de vida saudável — receitas fit, dia a dia, dicas e Mounjaro. Feed estilo Instagram com rolagem infinita.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alexgranig
Tags: health, food, lifestyle, blog, responsive, custom-menu, featured-images, infinite-scroll
*/

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

:root {
  --green:        #2D6A4F;
  --green-dark:   #1B4332;
  --green-mid:    #40916C;
  --green-light:  #52B788;
  --green-pale:   #D8F3DC;
  --green-ultra:  #F0FAF4;
  --cream:        #FEFAE0;
  --warm:         #FFF0EA;
  --orange:       #E07A5F;
  --orange-dark:  #C0604A;
  --text:         #1A1A1A;
  --text-muted:   #5A5A5A;
  --text-light:   #9A9A9A;
  --surface:      #FFFFFF;
  --bg:           #F6F9F5;
  --border:       rgba(45,106,79,0.10);
  --border-mid:   rgba(45,106,79,0.18);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-xs:    0 1px 4px rgba(0,0,0,0.05);
  --shadow-sm:    0 2px 10px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'DM Sans', -apple-system, sans-serif;
  --max-width:    1160px;
  --header-h:     68px;
  --nav-h:        52px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(28px,5vw,52px); font-weight: 700; }
h2 { font-size: clamp(22px,3.5vw,36px); font-weight: 700; }
h3 { font-size: clamp(17px,2.5vw,22px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { color: var(--text-muted); font-size: 15px; line-height: 1.75; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ─── UTILITIES ─── */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-pale); }

/* ─── SITE HEADER ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

#site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transform: rotate(-4deg);
  transition: transform .3s;
}
.site-logo:hover .logo-mark { transform: rotate(0deg); }

.logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.3px;
}
.logo-name span { color: var(--orange); }

/* header search */
.header-search { flex: 1; max-width: 380px; position: relative; }
.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border-mid);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s;
}
.header-search input:focus { border-color: var(--green-light); background: #fff; }
.header-search input::placeholder { color: var(--text-light); }
.search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 16px; height: 16px; pointer-events: none;
}

/* header right */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-btn { font-size: 14px; padding: 9px 20px; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.hamburger:hover { background: var(--green-ultra); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .25s;
}

/* mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0; top: var(--header-h);
  background: rgba(0,0,0,0.4);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-inner {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open .mobile-nav-inner { transform: translateX(0); }
.mobile-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--green); }

/* ─── NAV BAR ─── */
#site-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 190;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--green); }
.nav-link.active { color: var(--green); border-bottom-color: var(--green); }
.nav-link .nav-icon { font-size: 16px; }

/* ─── HERO BANNER ─── */
.hero {
  background: linear-gradient(130deg, var(--green-dark) 0%, var(--green) 55%, var(--green-mid) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  color: var(--green-pale);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 50px;
  margin-bottom: 22px;
}

.hero-title {
  color: #fff;
  margin-bottom: 18px;
}
.hero-title em { color: #95D5B2; font-style: normal; }

.hero-text {
  color: rgba(255,255,255,0.72);
  font-size: 16px; max-width: 440px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: flex; gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700; color: #fff;
}
.stat-l { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .5px; }

/* hero card stack */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.hero-stack { position: relative; width: 300px; height: 360px; }

.hcard {
  position: absolute;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
}
.hcard-a { width: 210px; bottom: 20px; left: -10px; transform: rotate(-7deg); }
.hcard-b { width: 200px; top: 20px; right: -10px; transform: rotate(5deg); }
.hcard-main { width: 250px; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; background:rgba(255,255,255,0.18); }
.hcard-emoji { font-size: 52px; display: block; margin-bottom: 10px; }
.hcard-name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.hcard-info { font-size: 12px; color: #95D5B2; margin-top: 6px; }

/* ─── CATEGORY PILLS ─── */
.category-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.pills-wrap {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid var(--border-mid);
  background: var(--surface);
  color: var(--text-muted);
}
.pill:hover { border-color: var(--green-light); color: var(--green); background: var(--green-ultra); }
.pill.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ─── AD SLOTS ─── */
.ad-slot { padding: 20px 0; }
.ad-inner {
  border: 1px dashed rgba(0,0,0,0.10);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--text-light);
  font-size: 11px; letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
}
.ad-label { position: absolute; top:6px; left:10px; font-size:10px; color:var(--text-light); }

/* ─── FEATURED POST ─── */
.featured-section { padding: 36px 0 0; }

.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.featured-thumb {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.featured-thumb img { width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.featured-card:hover .featured-thumb img { transform: scale(1.05); }
.featured-thumb-placeholder {
  width:100%; height:100%; min-height:300px;
  display:flex; align-items:center; justify-content:center;
  font-size:90px;
  background: linear-gradient(135deg, var(--green-pale), var(--green-mid));
}

.featured-badge {
  position: absolute; top:16px; left:16px;
  background: var(--orange); color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase;
  padding:5px 13px; border-radius:50px;
}

.featured-body { padding: 36px; display:flex; flex-direction:column; justify-content:center; }

.tag-row { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tag {
  font-size:12px; font-weight:500;
  color:var(--green); background:var(--green-pale);
  padding:4px 12px; border-radius:50px;
}

.featured-title { font-size:clamp(20px,3vw,28px); margin-bottom:12px; }

.recipe-meta { display:flex; gap:18px; flex-wrap:wrap; margin:16px 0; }
.meta-item { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--text-light); }

/* ─── FEED SECTION ─── */
.feed-section { padding: 36px 0 20px; }

.feed-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 22px;
}

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

.feed-sort {
  font-family: var(--font-sans); font-size:13px;
  color:var(--text-muted); border:1.5px solid var(--border-mid);
  border-radius:50px; padding:8px 16px;
  background:var(--surface); outline:none; cursor:pointer;
}

/* FEED GRID — Instagram style */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* ─── RECIPE CARD ─── */
.recipe-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction:column;
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.recipe-card:hover .card-thumb img { transform: scale(1.06); }
.card-thumb-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:68px;
}

.card-overlay { position:absolute; inset:0; background:linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.18)); }

.card-save-btn {
  position:absolute; top:12px; right:12px;
  width:34px; height:34px;
  background:rgba(255,255,255,0.92);
  border-radius:50%; border:none;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; cursor:pointer; z-index:2;
  transition:transform .15s, background .15s;
}
.card-save-btn:hover { transform:scale(1.15); background:#fff; }

.card-cat-badge {
  position:absolute; bottom:10px; left:10px;
  background:rgba(255,255,255,0.92); color:var(--green);
  font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px;
  padding:4px 10px; border-radius:50px; z-index:2;
}

.card-body { padding:16px; flex:1; display:flex; flex-direction:column; }

.card-title {
  font-size:16px; font-weight:600;
  margin-bottom:8px; line-height:1.3;
}

.card-excerpt {
  font-size:13px; color:var(--text-muted); line-height:1.65;
  margin-bottom:12px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  flex:1;
}

.card-footer {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; border-top:1px solid var(--border);
  margin-top:auto;
}

.card-metas { display:flex; gap:12px; }
.card-meta { display:flex; align-items:center; gap:4px; font-size:12px; color:var(--text-light); }

.card-kcal {
  font-size:12px; font-weight:600;
  color:var(--orange); background:var(--warm);
  padding:4px 10px; border-radius:50px;
}

/* ─── SKELETON LOADER ─── */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.sk { background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%); background-size:200% 100%; animation: shimmer 1.3s infinite; border-radius:4px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-img { height:210px; border-radius:0; }
.sk-body { padding:16px; }
.sk-line { height:14px; margin-bottom:10px; }
.sk-line.short { width:60%; }
.sk-line.medium { width:80%; }

/* ─── LOAD MORE / SPINNER ─── */
.load-trigger { height: 60px; display:flex; align-items:center; justify-content:center; padding:20px 0; }
.spinner {
  width:36px; height:36px;
  border:3px solid var(--border-mid);
  border-top-color: var(--green);
  border-radius:50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.load-trigger.hidden { display:none; }

/* ─── SIDEBAR ─── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  padding: 36px 0 60px;
  align-items: start;
}

.sidebar { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 20px); }

.widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px;
  margin-bottom: 20px;
}
.widget-title {
  font-size:15px; font-weight:600;
  color:var(--text); margin-bottom:16px;
  padding-bottom:12px; border-bottom:1px solid var(--border);
}

/* about widget */
.about-avatar {
  width:72px; height:72px; border-radius:50%;
  background:var(--green-pale); display:flex;
  align-items:center; justify-content:center;
  font-size:34px; margin-bottom:14px;
}
.about-name { font-family:var(--font-serif); font-size:18px; font-weight:700; margin-bottom:6px; }
.about-bio { font-size:13px; color:var(--text-muted); line-height:1.6; }

/* tags widget */
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-cloud a {
  font-size:12px; font-weight:500;
  color:var(--green); background:var(--green-pale);
  padding:5px 12px; border-radius:50px;
  transition:background .2s, color .2s;
}
.tag-cloud a:hover { background:var(--green); color:#fff; }

/* popular posts */
.popular-post { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); }
.popular-post:last-child { border-bottom:none; }
.popular-thumb { width:56px; height:56px; border-radius:10px; overflow:hidden; flex-shrink:0; }
.popular-thumb img { width:100%; height:100%; object-fit:cover; }
.popular-thumb-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:24px; }
.popular-title { font-size:13px; font-weight:500; line-height:1.4; color:var(--text); }
.popular-meta { font-size:11px; color:var(--text-light); margin-top:4px; }

/* ─── NEWSLETTER ─── */
.newsletter-section { padding: 20px 0 48px; }
.newsletter-card {
  background: linear-gradient(130deg, var(--green-dark) 0%, var(--green-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.newsletter-card::before {
  content:''; position:absolute;
  width:360px; height:360px; border-radius:50%;
  background:rgba(255,255,255,0.05);
  top:-120px; right:-80px; pointer-events:none;
}
.newsletter-icon { font-size:44px; display:block; margin-bottom:18px; }
.newsletter-title { font-size:clamp(22px,3vw,32px); color:#fff; margin-bottom:12px; }
.newsletter-sub { color:rgba(255,255,255,0.7); font-size:15px; max-width:400px; margin:0 auto 30px; }
.newsletter-form { display:flex; gap:10px; max-width:440px; margin:0 auto; }
.newsletter-input {
  flex:1; padding:14px 20px; border-radius:50px; border:none;
  font-family:var(--font-sans); font-size:14px;
  background:rgba(255,255,255,0.95); color:var(--text); outline:none;
}
.newsletter-btn {
  background:var(--orange); color:#fff; border:none; border-radius:50px;
  padding:14px 26px; font-family:var(--font-sans); font-size:14px; font-weight:600;
  cursor:pointer; white-space:nowrap; transition:background .2s;
}
.newsletter-btn:hover { background:var(--orange-dark); }

/* ─── SITE FOOTER ─── */
#site-footer {
  background: #141414;
  color: rgba(255,255,255,0.65);
  padding: 52px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size:14px; line-height:1.75; margin-top:14px; max-width:230px; color:rgba(255,255,255,0.55); }

.footer-social { display:flex; gap:10px; margin-top:20px; }
.social-icon {
  width:38px; height:38px;
  background:rgba(255,255,255,0.07);
  border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  font-size:17px; cursor:pointer; transition:background .2s;
}
.social-icon:hover { background: var(--green-mid); }

.footer-col h4 {
  font-family:var(--font-sans); font-size:12px; font-weight:700;
  color:#fff; letter-spacing:1px; text-transform:uppercase;
  margin-bottom:18px;
}
.footer-col a {
  display:block; color:rgba(255,255,255,0.55); font-size:14px;
  padding:5px 0; transition:color .2s;
}
.footer-col a:hover { color:var(--green-mid); }

.footer-bottom {
  display:flex; align-items:center; justify-content:space-between;
  padding-top:22px;
  font-size:12px; color:rgba(255,255,255,0.35);
}
.footer-bottom a { color:rgba(255,255,255,0.45); }
.footer-bottom a:hover { color:var(--green-mid); }

/* ─── SINGLE POST ─── */
.single-hero { padding:48px 0 36px; }
.single-hero .tag-row { margin-bottom:16px; }
.single-hero h1 { max-width:800px; margin-bottom:18px; }
.single-content { max-width:720px; }
.single-content p,
.single-content li { font-size:16px; line-height:1.85; color:var(--text-muted); margin-bottom:18px; }
.single-content h2,
.single-content h3 { margin:32px 0 14px; color:var(--text); }
.single-content img { border-radius:var(--radius-lg); margin:24px 0; }
.single-content ul { padding-left:20px; list-style:disc; }
.single-content ol { padding-left:20px; list-style:decimal; }

/* recipe box */
.recipe-box {
  background:var(--green-ultra);
  border:1px solid var(--border-mid);
  border-radius:var(--radius-lg);
  padding:28px;
  margin:32px 0;
}
.recipe-box-title { font-size:16px; font-weight:700; color:var(--green-dark); margin-bottom:16px; }
.recipe-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.rstat {
  background:#fff; border-radius:var(--radius-md); padding:12px;
  text-align:center; border:1px solid var(--border);
}
.rstat-val { font-family:var(--font-serif); font-size:20px; font-weight:700; color:var(--green); }
.rstat-lbl { font-size:11px; color:var(--text-light); text-transform:uppercase; letter-spacing:.5px; }

/* ─── PAGE 404 ─── */
.error-page { text-align:center; padding:80px 20px; }
.error-emoji { font-size:80px; display:block; margin-bottom:20px; }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity:0; transform:translateY(24px);
  animation: fadeUp .5s ease forwards;
}
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; --nav-h: 48px; }
  .header-search { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .hero-stats { gap: 20px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-thumb { min-height:200px; }
  .featured-body { padding: 22px; }
  .feed-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
  .footer-top { grid-template-columns: 1fr; gap:28px; }
  .newsletter-card { padding:32px 20px; }
  .newsletter-form { flex-direction:column; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; }
}

@media (max-width: 480px) {
  .pills-wrap { flex-wrap: nowrap; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  .pill { flex-shrink:0; }
  .hero-actions { flex-direction:column; align-items:flex-start; }
}

/* ─── WORDPRESS CORE ─── */
.wp-caption { max-width:100%; }
.wp-caption-text { font-size:13px; color:var(--text-light); text-align:center; margin-top:6px; }
.alignleft { float:left; margin:0 20px 10px 0; }
.alignright { float:right; margin:0 0 10px 20px; }
.aligncenter { margin:0 auto; display:block; }
.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0;
  position:absolute; width:1px; word-wrap:normal !important;
}

/* WP Block editor compatibility */
.wp-block-image { margin:24px 0; }
.wp-block-image img { border-radius:var(--radius-md); }
.wp-block-quote {
  border-left: 3px solid var(--green);
  padding: 12px 0 12px 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}
