/*
Theme Name: DandyRecipes Magazine
Theme URI: https://example.com/dandyrecipes
Author: DandyRecipes
Description: A recipe magazine theme inspired by large editorial food portals, with ingredient browsing, recipe cards, popular/latest recipe modules, and shopping-list promotion.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: dandyrecipes-theme
*/
:root{--dr-ink:#222;--dr-muted:#6b635d;--dr-border:#eee4dc;--dr-bg:#fffaf5;--dr-accent:#d54215;--dr-card:#fff}*{box-sizing:border-box}body{margin:0;color:var(--dr-ink);font-family:Arial,Helvetica,sans-serif;background:#fff;line-height:1.55}a{color:var(--dr-accent);text-decoration:none}a:hover{text-decoration:underline}.site-header{border-bottom:1px solid var(--dr-border);background:#fff;position:sticky;top:0;z-index:20}.topbar{background:var(--dr-accent);color:#fff;text-align:center;font-size:.9rem;padding:.35rem}.header-inner{max-width:1180px;margin:auto;display:flex;align-items:center;gap:2rem;padding:1rem}.brand{font-size:2rem;font-weight:900;color:#111;letter-spacing:-.04em}.main-nav{display:flex;gap:1rem;flex-wrap:wrap}.main-nav a{color:#222;font-weight:700}.search-form{margin-left:auto;display:flex}.search-form input{border:1px solid var(--dr-border);padding:.65rem;border-radius:999px 0 0 999px}.search-form button{border:0;background:var(--dr-accent);color:#fff;padding:.65rem 1rem;border-radius:0 999px 999px 0}.wrap{max-width:1180px;margin:0 auto;padding:1.5rem}.hero{background:var(--dr-bg);border-bottom:1px solid var(--dr-border)}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem;align-items:center}.hero h1{font-size:clamp(2.4rem,5vw,5rem);line-height:.95;margin:.2rem 0}.hero p{font-size:1.2rem;color:var(--dr-muted)}.cta{display:inline-block;background:var(--dr-accent);color:#fff!important;padding:.8rem 1.1rem;border-radius:999px;font-weight:800}.section-title{font-size:2rem;border-bottom:3px solid #111;padding-bottom:.4rem;margin-top:2.5rem}.recipe-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}.recipe-card{background:var(--dr-card);border:1px solid var(--dr-border);border-radius:14px;overflow:hidden;box-shadow:0 2px 14px rgba(0,0,0,.04)}.recipe-card img{width:100%;height:180px;object-fit:cover;background:#eee}.recipe-card-body{padding:1rem}.recipe-card h3{font-size:1.1rem;line-height:1.2;margin:.25rem 0}.recipe-meta{font-size:.85rem;color:var(--dr-muted);font-weight:700}.ingredient-cloud{display:flex;flex-wrap:wrap;gap:.6rem}.ingredient-cloud a{border:1px solid var(--dr-border);border-radius:999px;padding:.45rem .8rem;color:#222;background:#fff}.promo-panel{background:#111;color:#fff;border-radius:18px;padding:2rem;margin:2rem 0;display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center}.promo-panel a{background:#fff;color:#111!important;border-radius:999px;padding:.75rem 1rem;font-weight:800}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:2rem}.entry-title{font-size:clamp(2rem,4vw,4rem);line-height:1;margin:.6rem 0}.featured-image{border-radius:18px;width:100%;height:auto}.entry-content h2{font-size:1.75rem;margin-top:2rem}.dandy-actions,.recipe-jump-card{background:var(--dr-bg);border:1px solid var(--dr-border);border-radius:16px;padding:1rem;margin:1rem 0}.dandy-favorite,.dandy-shopping-form button{background:var(--dr-accent);border:0;color:#fff;border-radius:999px;padding:.7rem 1rem;font-weight:800;cursor:pointer}.sidebar-card{border:1px solid var(--dr-border);border-radius:14px;padding:1rem;margin-bottom:1rem;background:#fff}.site-footer{margin-top:3rem;background:#171717;color:#fff;padding:2rem}.site-footer a{color:#fff}.pagination{margin:2rem 0}.dandy-ad{background:#f7f7f7;border:1px dashed #ccc;text-align:center;padding:1rem;margin:1rem 0;color:#777}@media(max-width:900px){.hero-grid,.content-layout{grid-template-columns:1fr}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-inner{display:block}.search-form{margin:1rem 0}}@media(max-width:560px){.recipe-grid{grid-template-columns:1fr}.promo-panel{grid-template-columns:1fr}.brand{font-size:1.6rem}}
.recipe-card-image{display:block;min-height:180px;background:#eee}.recipe-image-placeholder{height:180px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff4ec,#f1d5c6);color:#9c3514;font-weight:900}.single-hero-image img,.single-hero-image .recipe-image-placeholder{width:100%;max-height:620px;object-fit:cover;border-radius:18px}.single-hero-image .recipe-image-placeholder{height:420px}.dandy-serving-tools{display:flex;gap:1rem;flex-wrap:wrap;background:var(--dr-bg);border:1px solid var(--dr-border);border-radius:14px;padding:1rem;margin:1.25rem 0}.dandy-serving-tools input,.dandy-serving-tools select{padding:.45rem;border:1px solid var(--dr-border);border-radius:8px}.ingredient-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.ingredient-tile{border:1px solid var(--dr-border);border-radius:14px;padding:1rem;background:#fff;color:#222;display:grid;gap:.35rem}.ingredient-tile img{width:100%;height:120px;object-fit:cover;border-radius:10px;background:#eee}.ingredient-tile strong{font-size:1.05rem}.ingredient-tile span{color:var(--dr-muted)}.ingredient-hero{display:grid;grid-template-columns:320px 1fr;gap:2rem;align-items:center;background:var(--dr-bg);border:1px solid var(--dr-border);border-radius:20px;padding:1.5rem;margin-top:1.5rem}.ingredient-hero img{width:100%;height:240px;object-fit:cover;border-radius:16px}.ingredient-hero h1{font-size:clamp(2rem,4vw,4rem);line-height:1;margin:.25rem 0}.ingredient-description{font-size:1.05rem}.ingredient-columns{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.recipe-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:900px){.ingredient-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.ingredient-hero,.ingredient-columns{grid-template-columns:1fr}}@media(max-width:560px){.ingredient-directory,.recipe-grid.two-col{grid-template-columns:1fr}}
