/*
Theme Name: RecetaZone
Theme URI: https://recetazone.com
Author: RecetaZone
Author URI: https://recetazone.com
Description: A beautiful Spanish recipe blog theme optimized for AdSense and affiliate marketing. Perfect for keto, healthy, diabetic-friendly and meal prep recipes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recetazone
Tags: food, recipes, blog, adsense, affiliate
*/

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

:root {
  --green:       #2d8c4e;
  --green-dark:  #1a5c33;
  --green-light: #e8f5ee;
  --orange:      #e8703a;
  --orange-light:#fff3ee;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --border:      #e5e5e5;
  --bg:          #f9f9f7;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-right: 0; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-main { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media(max-width:900px){ .grid-main { grid-template-columns: 1fr; } }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo .logo-icon {
  width: 44px; height: 44px; background: var(--green);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.site-logo .logo-text { font-size: 22px; font-weight: 800; color: var(--green-dark); letter-spacing: -0.5px; }
.site-logo .logo-text span { color: var(--orange); }

/* NAV */
.site-nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 15px;
  color: var(--text-muted); transition: all .2s;
}
.site-nav a:hover, .site-nav .current-menu-item a {
  background: var(--green-light); color: var(--green-dark);
}
.menu-toggle { display: none; background: none; border: 2px solid var(--green); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 18px; color: var(--green); }
@media(max-width:768px){
  .site-nav { display: none; }
  .site-nav.open { display: block; padding: 10px 0; }
  .site-nav ul { flex-direction: column; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #4caf50 100%);
  color: var(--white); padding: 70px 0 60px; text-align: center;
}
.hero h1 { font-size: clamp(28px,5vw,52px); font-weight: 900; margin-bottom: 16px; line-height: 1.15; }
.hero h1 span { color: #ffe082; }
.hero p { font-size: 18px; opacity: .9; max-width: 560px; margin: 0 auto 28px; }
.hero-cats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-cat-btn {
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.5);
  color: var(--white); padding: 8px 18px; border-radius: 30px; font-weight: 600;
  font-size: 14px; transition: all .2s; cursor: pointer;
}
.hero-cat-btn:hover { background: var(--white); color: var(--green-dark); }

/* ── AD BANNER ── */
.ad-banner {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  text-align: center; margin: 20px 0;
  min-height: 100px; display: flex; align-items: center; justify-content: center;
}
.ad-banner-label { font-size: 10px; color: #aaa; display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ── CATEGORIES STRIP ── */
.cats-strip { background: var(--white); padding: 20px 0; border-bottom: 1px solid var(--border); }
.cats-strip-inner { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 30px; border: 2px solid var(--border);
  white-space: nowrap; font-weight: 600; font-size: 14px;
  color: var(--text-muted); background: var(--white); transition: all .2s;
}
.cat-chip:hover, .cat-chip.active {
  border-color: var(--green); color: var(--green-dark); background: var(--green-light);
}
.cat-chip .cat-emoji { font-size: 18px; }

/* ── SECTION TITLE ── */
.section-title {
  font-size: 26px; font-weight: 800; color: var(--green-dark);
  border-right: 5px solid var(--green); padding-right: 14px;
  margin-bottom: 24px;
}

/* ── RECIPE GRID ── */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; margin-bottom: 40px; }
.recipe-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.13); }
.recipe-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--green-light), #c8e6c9);
  display: flex; align-items: center; justify-content: center; font-size: 60px;
}
.recipe-card-body { padding: 18px; }
.recipe-card-cat {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--green); background: var(--green-light);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.recipe-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.recipe-card h3 a { color: inherit; }
.recipe-card h3 a:hover { color: var(--green); }
.recipe-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.recipe-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.recipe-meta span { display: flex; align-items: center; gap: 4px; }

/* ── FEATURED POST ── */
.featured-post {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 40px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 0;
}
@media(max-width:600px){ .featured-post { grid-template-columns: 1fr; } }
.featured-post-img {
  min-height: 280px; background: linear-gradient(135deg, var(--green), #81c784);
  display: flex; align-items: center; justify-content: center; font-size: 80px;
}
.featured-post-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-badge {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; width: fit-content;
}
.featured-post-body h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.featured-post-body p { color: var(--text-muted); margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green); color: var(--white);
  padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 15px;
  transition: background .2s; width: fit-content;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn-outline {
  background: transparent; border: 2px solid var(--green); color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── SINGLE POST ── */
.post-header { background: var(--green-dark); color: var(--white); padding: 50px 0 40px; }
.post-header .post-cat { color: #a5d6a7; font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.post-header h1 { font-size: clamp(24px,4vw,42px); font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.post-header .post-meta { display: flex; gap: 20px; font-size: 14px; opacity: .8; flex-wrap: wrap; }
.post-hero-img {
  width: 100%; max-height: 420px; object-fit: cover; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(135deg, var(--green-light), #c8e6c9);
  min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 100px;
}
.post-content { padding: 36px 0; }
.post-content h2 { font-size: 24px; font-weight: 800; color: var(--green-dark); margin: 32px 0 14px; }
.post-content h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.post-content p { margin-bottom: 18px; color: var(--text); }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-right: 4px solid var(--green); background: var(--green-light);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0; font-style: italic; color: var(--green-dark);
}

/* ── RECIPE BOX ── */
.recipe-box {
  background: var(--white); border: 2px solid var(--green); border-radius: var(--radius);
  padding: 28px; margin: 32px 0;
}
.recipe-box-title { font-size: 20px; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.recipe-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 12px; margin-bottom: 24px; }
.recipe-info-item { text-align: center; background: var(--green-light); border-radius: 10px; padding: 12px 8px; }
.recipe-info-item .info-val { font-size: 20px; font-weight: 800; color: var(--green-dark); }
.recipe-info-item .info-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.recipe-section-title { font-size: 17px; font-weight: 700; color: var(--green-dark); border-bottom: 2px solid var(--green-light); padding-bottom: 8px; margin: 18px 0 12px; }
.ingredient-list { list-style: none; }
.ingredient-list li { padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ingredient-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.step-list { list-style: none; counter-reset: steps; }
.step-list li { counter-increment: steps; padding: 12px 0 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.step-list li::before {
  content: counter(steps); min-width: 30px; height: 30px; background: var(--green);
  color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0; margin-top: 2px;
}

/* ── AFFILIATE BOX ── */
.affiliate-box {
  background: var(--orange-light); border: 2px solid var(--orange);
  border-radius: var(--radius); padding: 24px; margin: 28px 0;
}
.affiliate-box h4 { color: var(--orange); font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.affiliate-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.affiliate-box .btn { background: var(--orange); }
.affiliate-box .btn:hover { background: #c0522a; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.widget-title {
  background: var(--green-dark); color: var(--white);
  padding: 14px 18px; font-size: 16px; font-weight: 700;
}
.widget-body { padding: 18px; }
.widget-recipe-list { list-style: none; }
.widget-recipe-list li { padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.widget-recipe-list li:last-child { border-bottom: none; }
.widget-recipe-list .w-emoji { font-size: 28px; flex-shrink: 0; }
.widget-recipe-list .w-title { font-size: 14px; font-weight: 600; color: var(--text); }
.widget-recipe-list .w-title a { color: inherit; }
.widget-recipe-list .w-title a:hover { color: var(--green); }
.widget-recipe-list .w-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Newsletter */
.newsletter-widget { background: var(--green-dark); color: var(--white); }
.newsletter-widget .widget-body { padding: 22px; }
.newsletter-widget h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.newsletter-widget p { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.newsletter-form input {
  width: 100%; padding: 11px 14px; border-radius: 8px; border: none;
  font-size: 15px; margin-bottom: 10px; font-family: var(--font);
}
.newsletter-form button {
  width: 100%; padding: 11px; background: var(--orange); color: var(--white);
  border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: background .2s;
}
.newsletter-form button:hover { background: #c0522a; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 9px 16px; border-radius: 8px; border: 2px solid var(--border);
  font-weight: 600; font-size: 15px; color: var(--text-muted);
  background: var(--white); transition: all .2s;
}
.pagination a:hover, .pagination .current {
  border-color: var(--green); color: var(--green-dark); background: var(--green-light);
}

/* ── FOOTER ── */
.site-footer { background: var(--green-dark); color: var(--white); padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 36px; margin-bottom: 36px; }
.footer-col h4 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: #a5d6a7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.75); font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ── CATEGORY PAGE HEADER ── */
.cat-page-header { padding: 50px 0; text-align: center; }
.cat-page-header .cat-emoji-big { font-size: 64px; margin-bottom: 14px; }
.cat-page-header h1 { font-size: 36px; font-weight: 900; color: var(--green-dark); margin-bottom: 10px; }
.cat-page-header p { color: var(--text-muted); font-size: 17px; max-width: 540px; margin: 0 auto; }

/* ── TAGS ── */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.post-tag { background: var(--green-light); color: var(--green-dark); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb span { margin: 0 6px; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
