:root {
    --ink: #2b1d12;
    --muted: #7b6a5d;
    --line: rgba(43, 29, 18, .13);
    --cream: #fff9ec;
    --tomato: #ef4444;
    --paprika: #f97316;
    --saffron: #facc15;
    --basil: #16a34a;
    --mint: #86efac;
    --eggplant: #6d28d9;
    --shadow: 0 18px 45px rgba(43, 29, 18, .14);
    --radius: 28px;
}
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(250, 204, 21, .36), transparent 26rem),
        radial-gradient(circle at 92% 18%, rgba(22, 163, 74, .22), transparent 24rem),
        radial-gradient(circle at 75% 85%, rgba(249, 115, 22, .2), transparent 26rem),
        #fff6e5;
    min-height: 100vh;
}
body:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle, rgba(239,68,68,.16) 0 4px, transparent 4px),
        radial-gradient(circle, rgba(22,163,74,.15) 0 3px, transparent 3px),
        radial-gradient(circle, rgba(250,204,21,.18) 0 5px, transparent 5px);
    background-size: 150px 150px, 210px 210px, 250px 250px;
    opacity: .72;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--paprika); }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: .75rem; z-index: 9999; }
.skip-link:focus { top: 1rem; }
.site-header { background: rgba(255, 249, 236, .88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); box-shadow: 0 10px 35px rgba(43,29,18,.06); }
.navbar { padding: .9rem 0; }
.navbar-brand { display: inline-flex; align-items: center; min-width: 0; }
.website-logo { display: block; max-width: min(280px, 66vw); max-height: 74px; width: auto; height: auto; }
.nav-link { font-weight: 900; color: var(--ink); border-radius: 999px; padding: .5rem .9rem !important; }
.nav-link.active, .nav-link:hover { background: rgba(249, 115, 22, .14); color: #9a3412; }
.navbar-toggler { border: 0; box-shadow: none !important; }
.header-ad .ad-wrap { margin-top: 0 !important; margin-bottom: .75rem !important; }
.btn-food {
    background: linear-gradient(135deg, var(--tomato), var(--paprika));
    border: 0;
    color: #fff;
    font-weight: 950;
    border-radius: 999px;
    padding: .78rem 1.15rem;
    box-shadow: 0 14px 28px rgba(249, 115, 22, .25);
}
.btn-food:hover { color: #fff; transform: translateY(-1px); }
.btn-outline-dark { border-radius: 999px; font-weight: 850; border-width: 2px; }
.hero-section, .page-hero { padding: 5.2rem 0 3rem; position: relative; overflow: hidden; }
.page-hero.compact { padding: 4rem 0 2rem; }
.hero-section:after, .page-hero:after { content: '🍅'; position: absolute; right: 7%; top: 16%; font-size: clamp(3rem, 9vw, 8rem); opacity: .09; transform: rotate(12deg); z-index: -1; }
.blog-hero:after { content: '🥄'; }
h1, h2, h3, .footer-brand { font-family: 'Fraunces', Georgia, serif; font-weight: 900; line-height: .98; }
h1 { font-size: clamp(2.65rem, 7vw, 5.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.45rem; }
.lead, .page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 44rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: #b45309; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .75rem; }
.eyebrow:before { content: '✦'; color: var(--basil); }
.hero-search { display: flex; gap: .65rem; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 999px; padding: .45rem; max-width: 46rem; box-shadow: var(--shadow); }
.hero-search .form-control { border: 0; background: transparent; border-radius: 999px; padding-left: 1.1rem; box-shadow: none; }
.hero-bubbles, .tag-cloud, .category-cloud, .blog-chip-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-bubbles { margin-top: 1.25rem; }
.hero-bubbles a, .tag-cloud a, .category-cloud a, .blog-chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .54rem .82rem; font-weight: 900; box-shadow: 0 8px 22px rgba(43,29,18,.08); overflow-wrap: anywhere; }
.category-cloud a span { display: inline-grid; place-items: center; background: var(--saffron); min-width: 1.4rem; height: 1.4rem; border-radius: 50%; margin-left: .35rem; font-size: .78rem; }
.chef-card, .fun-panel, .filter-panel, .recipe-stage, .share-box, .recipe-card, .blog-card, .blog-article { background: rgba(255,255,255,.88); border: 1px solid rgba(43,29,18,.11); box-shadow: var(--shadow); border-radius: var(--radius); }
.chef-card { padding: 2rem; transform: rotate(1deg); position: relative; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.72)), radial-gradient(circle at 18% 12%, rgba(250,204,21,.55), transparent 11rem), radial-gradient(circle at 90% 22%, rgba(22,163,74,.22), transparent 12rem); }
.chef-face { font-size: 4rem; line-height: 1; filter: drop-shadow(0 10px 12px rgba(43,29,18,.12)); }
.forecast-row { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding: .8rem 0; gap: .8rem; }
.forecast-row strong { color: #9a3412; }
.section-pad { padding: 3.5rem 0; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.text-link, .read-link { font-weight: 950; color: #b45309; white-space: nowrap; }
.recipe-card, .blog-card { padding: 1.25rem; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden; min-width: 0; }
.recipe-card:after { content: 'yum'; position: absolute; right: -1.1rem; bottom: -.7rem; font-family: 'Fraunces', Georgia, serif; font-size: 4.4rem; color: rgba(249,115,22,.08); transform: rotate(-15deg); }
.recipe-card:hover, .blog-card:hover { transform: translateY(-4px) rotate(-.25deg); box-shadow: 0 24px 55px rgba(43,29,18,.18); }
.recipe-card h3, .blog-card h3 { overflow-wrap: anywhere; }
.category-pill { display: inline-flex; align-items: center; background: linear-gradient(135deg, #fff, rgba(134,239,172,.45)); border: 1px solid var(--line); border-radius: 999px; color: #166534; font-weight: 950; padding: .42rem .7rem; font-size: .82rem; }
.featured-dot { background: rgba(250,204,21,.72); border-radius: 999px; padding: .35rem .55rem; font-size: .72rem; font-weight: 950; }
.recipe-summary, .blog-card p { color: var(--muted); }
.recipe-meta-row, .card-footer-row, .blog-card-top { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.recipe-meta-row span { background: rgba(255,246,229,.8); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .55rem; color: var(--muted); font-weight: 800; font-size: .82rem; }
.card-footer-row { justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.mini-stat { display: inline-flex; margin-right: .45rem; font-size: .85rem; font-weight: 850; color: var(--muted); }
.trending-list { display: grid; gap: .85rem; }
.trending-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: 1rem; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 22px; min-width: 0; }
.trending-item strong, .trending-item small { overflow-wrap: anywhere; }
.trending-item:hover { transform: translateX(3px); background: #fff; }
.rank { display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--saffron); font-weight: 950; }
.trending-item small { display: block; color: var(--muted); margin-top: .2rem; }
.trend-score { font-weight: 950; color: #b45309; }
.ad-wrap { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(250,204,21,.9), rgba(249,115,22,.55), rgba(22,163,74,.55)) border-box; border: 2px dashed transparent; border-radius: 20px; padding: .7rem; text-align: center; min-height: 90px; max-width: 100%; overflow: hidden; }
.ad-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .35rem; font-weight: 850; }
.ad-inner { display: grid; place-items: center; min-height: 62px; color: var(--muted); border-radius: 14px; background: repeating-linear-gradient(135deg, rgba(250,204,21,.14) 0 12px, rgba(22,163,74,.11) 12px 24px); }
.ad-custom-code, .ad-custom-code ins, .ad-custom-code iframe { max-width: 100%; }
.filter-panel { padding: 1rem; }
.form-control, .form-select, .bootstrap-select>.dropdown-toggle { border-radius: 16px; border: 1px solid var(--line); min-height: 48px; background-color: #fff; }
.bootstrap-select .dropdown-menu { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bootstrap-select .dropdown-toggle:focus, .form-control:focus { box-shadow: 0 0 0 .25rem rgba(249,115,22,.16); border-color: rgba(249,115,22,.45); }
.form-label { font-weight: 950; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 15px; margin: 1.3rem 0; color: var(--muted); flex-wrap: wrap; }
.results-bar a { font-weight: 950; color: #b45309; }
.page-link { border-radius: 999px !important; border: 1px solid var(--line); color: var(--ink); font-weight: 850; }
.page-item.active .page-link { background: #b45309; border-color: #b45309; }
.panel-offset { top: 8rem; }
.fun-panel, .share-box { padding: 1.35rem; }
.empty-state { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.72); padding: 2rem; text-align: center; font-weight: 850; color: var(--muted); }
.recipe-stage { padding: clamp(1.35rem, 4vw, 2.5rem); }
.recipe-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; margin-bottom: 2rem; }
.recipe-facts div { background: linear-gradient(135deg, rgba(250,204,21,.22), rgba(134,239,172,.18)); border: 1px solid var(--line); border-radius: 18px; padding: .85rem; }
.recipe-facts strong { display:block; color: #9a3412; }
.recipe-facts span { color: var(--muted); font-weight: 850; }
.ingredient-list, .step-list, .tip-list { display: grid; gap: .65rem; padding-left: 1.25rem; }
.ingredient-list li, .step-list li, .tip-list li { background: rgba(255,249,236,.65); border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem; }
.step-list li { padding-left: 1rem; }
.note-card, .cook-note { border: 1px solid var(--line); border-radius: 22px; padding: 1rem; background: rgba(255,255,255,.75); }
.note-card.pros { background: rgba(134,239,172,.2); }
.note-card.cons { background: rgba(250,204,21,.18); }
.share-emoji { font-size: 3rem; display: block; }
.copy-status { min-height: 1.5rem; color: #166534; font-weight: 850; margin: .75rem 0 0; }
.related-list { display: grid; gap: .85rem; }
.related-list a { display: block; border: 1px solid var(--line); border-radius: 18px; padding: .9rem; background: rgba(255,255,255,.74); overflow-wrap: anywhere; }
.related-list small { color: var(--muted); display: block; margin-top: .25rem; }
.blog-date { background: rgba(250,204,21,.62); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .8rem; font-weight: 950; padding: .38rem .66rem; }
.blog-card:after { content: 'notes'; position: absolute; right: -1rem; bottom: -.65rem; color: rgba(22,163,74,.12); font-family: 'Fraunces', Georgia, serif; font-size: 3.4rem; font-weight: 900; transform: rotate(-14deg); }
.blog-chip { color: #166534; background: rgba(134,239,172,.28); }
.blog-article { padding: clamp(1.35rem, 4vw, 2.7rem); overflow: hidden; }
.blog-excerpt { color: #9a3412; font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 850; line-height: 1.45; margin-bottom: 1.6rem; }
.blog-content { color: var(--ink); font-size: 1.06rem; line-height: 1.8; }
.blog-content h2, .blog-content h3 { margin-top: 1.8rem; margin-bottom: .75rem; }
.blog-content blockquote { background: linear-gradient(135deg, rgba(250,204,21,.35), rgba(22,163,74,.12)); border-left: 6px solid var(--paprika); border-radius: 18px; color: #9a3412; font-weight: 850; margin: 1.4rem 0; padding: 1rem 1.2rem; }
.site-footer { background: rgba(255,255,255,.78); border-top: 1px solid var(--line); }
.footer-brand { font-size: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: flex-end; }
.footer-link { font-weight: 950; color: #b45309; }
@media (max-width: 991px) {
    .header-ad { display: none; }
    .hero-section, .page-hero { padding-top: 3.5rem; }
    .hero-search { border-radius: 24px; flex-direction: column; padding: .75rem; }
    .hero-search .btn { width: 100%; }
    .section-title-row { align-items: start; flex-direction: column; padding:15px; }
    .trending-item { grid-template-columns: auto 1fr; }
    .trend-score { grid-column: 2; }
    .panel-offset { top: 1rem; }
    .recipe-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 575px) {
    h1 { font-size: 2.65rem; }
    .recipe-card, .fun-panel, .filter-panel, .recipe-stage, .share-box, .blog-card, .blog-article { border-radius: 22px; }
    .card-footer-row { flex-direction: column; align-items: flex-start; }
    .recipe-facts { grid-template-columns: 1fr; }
    .website-logo { max-width: 72vw; max-height: 62px; }
}

/* AI ingredient-to-recipe generator */
.generator-hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(250,204,21,.42), transparent 15rem),
        radial-gradient(circle at 92% 14%, rgba(22,163,74,.24), transparent 16rem),
        linear-gradient(135deg, rgba(255,249,236,.96), rgba(255,246,229,.78));
}
.generator-callout {
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 1.35rem;
    display: grid;
    gap: .45rem;
}
.generator-callout span { font-size: 3.2rem; line-height: 1; }
.generator-callout strong { font-family: 'Fraunces', Georgia, serif; font-size: 1.65rem; line-height: 1.05; }
.generator-callout small { color: var(--muted); font-weight: 800; }
.generator-panel, .generator-empty, .generated-recipe-card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(43,29,18,.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.15rem, 3vw, 1.65rem);
}
.generator-form textarea.form-control { min-height: 170px; }
.generator-empty {
    min-height: 520px;
    display: grid;
    align-content: center;
    gap: .6rem;
    background:
        linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.74)),
        radial-gradient(circle at 10% 5%, rgba(250,204,21,.35), transparent 13rem),
        radial-gradient(circle at 90% 100%, rgba(134,239,172,.25), transparent 15rem);
}
.generator-empty > div { font-size: 4.4rem; }
.generator-empty ul { display: grid; gap: .55rem; color: var(--muted); font-weight: 850; margin-bottom: 0; }
.generated-recipe-card { overflow: hidden; }
.generated-recipe-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.generated-summary { color: #9a3412; font-weight: 850; font-size: 1.15rem; }
.recognized-box, .generated-section {
    border-top: 1px dashed var(--line);
    margin-top: 1.35rem;
    padding-top: 1.2rem;
}
.ingredient-chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.ingredient-chip-row span {
    background: rgba(134,239,172,.22);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #166534;
    font-weight: 900;
    padding: .42rem .72rem;
}
.recognized-box small { display: block; color: var(--muted); margin-top: .55rem; font-weight: 800; }
.generated-facts { margin: 1.4rem 0; }
.generated-section h3, .recognized-box h3 { font-size: 1.45rem; }
@media (max-width: 575px) {
    .generator-panel, .generator-empty, .generated-recipe-card { border-radius: 22px; }
    .generator-empty { min-height: 360px; }
}
