/* Bugün Ne Pişirsem? — ortak stiller */
:root{
  --bg:#0b1220;
  --surface:rgba(255,255,255,.06);
  --surface2:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.93);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.13);
  --accent:#f59e0b;
  --accent2:#fb7185;
  --green:#22c55e;
  --on-accent:rgba(0,0,0,.88);
  --header:rgba(11,18,32,.82);
  --shadow:0 18px 50px rgba(0,0,0,.40);
  --radius:18px;
  --max:1120px;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji",sans-serif;
  color-scheme:dark;
}
@media (prefers-color-scheme:light){
  :root{
    --bg:#f7f8fa;
    --surface:#ffffff;
    --surface2:rgba(17,24,39,.05);
    --text:rgba(17,24,39,.93);
    --muted:rgba(17,24,39,.64);
    --line:rgba(17,24,39,.12);
    --header:rgba(247,248,250,.86);
    --shadow:0 14px 36px rgba(17,24,39,.08);
    color-scheme:light;
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  line-height:1.55;
  background:
    radial-gradient(1100px 650px at 10% -5%, rgba(245,158,11,.16), transparent 60%),
    radial-gradient(900px 520px at 90% -10%, rgba(34,197,94,.12), transparent 55%),
    var(--bg);
  background-repeat:no-repeat;
  min-height:100vh;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.container{max-width:var(--max);margin:0 auto;padding:0 16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:var(--muted)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:40;
  background:var(--header);
  backdrop-filter:saturate(1.4) blur(12px);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.brand img{width:34px;height:34px;border-radius:10px;flex:0 0 auto}
.brand b{font-size:16px;white-space:nowrap;letter-spacing:.1px}
.nav{display:flex;align-items:center;gap:6px}
.nav a{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 12px;border-radius:999px;
  text-decoration:none;font-size:14px;color:var(--muted);
  border:1px solid transparent;
}
.nav a:hover{color:var(--text);background:var(--surface2)}
.nav a[aria-current="page"]{color:var(--text);border-color:var(--line);background:var(--surface)}
.nav .ico{font-size:16px;line-height:1}
.fav-count{
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:var(--accent2);color:#111;font-size:11px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
}
.fav-count:empty,.fav-count[data-n="0"]{display:none}
@media (max-width:560px){
  .nav .label{display:none}
  .nav a{padding:8px 10px}
  .brand b{font-size:15px}
}

/* ---------- Buttons / chips ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:10px 16px;border-radius:12px;
  border:1px solid transparent;cursor:pointer;text-decoration:none;
  font-weight:700;font-size:15px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:var(--on-accent);
}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:var(--surface);border-color:var(--line);color:var(--text);font-weight:600}
.btn.ghost:hover{background:var(--surface2)}
.btn.small{min-height:38px;padding:7px 12px;font-size:14px;border-radius:10px}
.btn[aria-pressed="true"]{border-color:rgba(251,113,133,.6);background:rgba(251,113,133,.16);color:var(--text)}

.chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0;padding:0;list-style:none}
.chip{
  display:inline-flex;align-items:center;white-space:nowrap;
  padding:8px 13px;border-radius:999px;border:1px solid var(--line);
  background:var(--surface);color:var(--text);text-decoration:none;font-size:14px;cursor:pointer;
}
.chip:hover{background:var(--surface2)}
.chip[aria-current="page"],.chip[aria-pressed="true"]{border-color:rgba(245,158,11,.6);background:rgba(245,158,11,.18)}
.chip .n{color:var(--muted);font-size:12px;margin-left:6px}
@media (max-width:720px){
  .chips.scroll{
    flex-wrap:nowrap;overflow-x:auto;margin-left:-16px;margin-right:-16px;padding:0 16px 4px;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;
  }
  .chips.scroll::-webkit-scrollbar{display:none}
  .chips.scroll .chip{scroll-snap-align:start}
}

/* ---------- Cards / panels ---------- */
.panel{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}
.section{margin:28px 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.section-head h2{margin:0;font-size:20px;line-height:1.2}
.section-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
.section-head > span{white-space:nowrap;font-size:14px}

/* ---------- Hero ---------- */
.hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:16px;margin-top:20px}
.hero > *{min-width:0}
.hero-main{padding:22px}
.hero h1{margin:0 0 6px;font-size:clamp(26px,4.4vw,38px);line-height:1.12}
.hero .lead{margin:0;color:var(--muted)}
.search{display:flex;gap:8px;margin-top:16px}
.search input{
  flex:1 1 auto;min-width:0;min-height:48px;
  border:1px solid var(--line);border-radius:12px;padding:12px 14px;
  background:var(--surface2);color:var(--text);font-size:16px;outline:none;
}
.search input::placeholder{color:var(--muted)}
.search input:focus{border-color:rgba(245,158,11,.6)}
.hero-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:14px}
.hero-links a{color:var(--muted)}
.hero-links a:hover{color:var(--text)}
@media (max-width:860px){.hero{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.hero{margin-top:14px}.hero-main{padding:18px}}

.suggest{padding:16px;display:flex;flex-direction:column;gap:12px}
.suggest-head b{font-size:16px}
.suggest-head span{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.suggest-card{display:block;text-decoration:none;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--surface2)}
.suggest-card img{width:100%;aspect-ratio:16/10;object-fit:cover}
.suggest-card .body{padding:12px}
.suggest-card .t{font-weight:800;font-size:17px;line-height:1.2}
.suggest-card .d{color:var(--muted);font-size:13px;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.suggest-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:860px){
  .suggest-card{display:flex;align-items:stretch}
  .suggest-card img{width:112px;aspect-ratio:auto;height:auto;min-height:100%;flex:0 0 auto}
  .suggest-card .body{min-width:0}
}

/* ---------- Recipe grid ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0;padding:0;list-style:none}
@media (max-width:1040px){.grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.grid{grid-template-columns:repeat(2,1fr);gap:10px}}
.card{
  position:relative;display:flex;flex-direction:column;
  border:1px solid var(--line);background:var(--surface);border-radius:16px;overflow:hidden;
  transition:transform .12s ease, border-color .12s ease;
}
.card:hover{transform:translateY(-2px);border-color:rgba(245,158,11,.4)}
.card .thumb{aspect-ratio:4/3;width:100%;object-fit:cover;background:var(--surface2)}
.card .body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.card .cat{font-size:12px;color:var(--muted)}
.card h3{margin:0;font-size:15px;line-height:1.25}
.card h3 a{text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0;z-index:1}
.card .meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:auto;padding-top:4px}
.card .fav{
  position:absolute;top:8px;right:8px;z-index:2;
  width:38px;height:38px;border-radius:999px;border:0;cursor:pointer;
  background:rgba(0,0,0,.45);color:#fff;font-size:18px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
.card .fav[aria-pressed="true"]{background:rgba(251,113,133,.92);color:#fff}
.card .match{font-size:12px;font-weight:700;color:var(--green)}
.card[hidden]{display:none}
@media (max-width:420px){
  .card h3{font-size:14px}
  .card .body{padding:9px 10px 10px}
}
.more{text-align:center;margin:18px 0 0}
.empty{border:1px dashed var(--line);border-radius:var(--radius);padding:20px;text-align:center;color:var(--muted);margin-top:8px}

/* ---------- Menu ---------- */
.menu{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:760px){.menu{grid-template-columns:1fr}}
.menu a{
  display:flex;gap:12px;align-items:center;text-decoration:none;
  border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:10px;
}
.menu a:hover{background:var(--surface2)}
.menu img{width:72px;height:72px;border-radius:10px;object-fit:cover;flex:0 0 auto;background:var(--surface2)}
.menu .tag{font-size:12px;color:var(--muted)}
.menu .t{font-weight:750;font-size:15px;line-height:1.25}
.menu .m{font-size:12px;color:var(--muted)}

/* ---------- App promo ---------- */
.app{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;flex-wrap:wrap}
.app h2{margin:0 0 4px;font-size:19px}
.app p{margin:0;color:var(--muted);font-size:14px}
.badges{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.badges img{height:42px;width:auto}

/* ---------- About ---------- */
.about{padding:20px}
.about h2{margin:0 0 8px;font-size:19px}
.about p{margin:0 0 10px;color:var(--muted)}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line);margin-top:40px;padding:24px 0 40px;color:var(--muted);font-size:14px}
.site-footer .cols{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.site-footer nav{display:flex;gap:6px 16px;flex-wrap:wrap}
.site-footer a{color:var(--muted)}
.site-footer a:hover{color:var(--text)}
.site-footer .linkbtn{background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:14px}
.site-footer .badges img{height:36px}
.site-footer .copy{margin-top:16px;font-size:13px}

/* ---------- Page head (category, favorites, ...) ---------- */
.page-head{margin:22px 0 6px}
.page-head h1{margin:0 0 6px;font-size:clamp(24px,4vw,34px);line-height:1.15}
.page-head p{margin:0;color:var(--muted);max-width:720px}
.crumbs{font-size:13px;color:var(--muted);margin:16px 0 0;display:flex;gap:6px;flex-wrap:wrap}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--text)}

/* ---------- Recipe page ---------- */
.recipe{max-width:900px;margin:0 auto}
.recipe-head{margin:10px 0 14px}
.recipe-head .cats{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.recipe-head .cats a{font-size:12px;padding:5px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted);text-decoration:none;background:var(--surface)}
.recipe-head .cats a:hover{color:var(--text)}
.recipe-head h1{margin:0 0 6px;font-size:clamp(26px,5vw,40px);line-height:1.12}
.recipe-head .desc{margin:0;color:var(--muted);font-size:16px}
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.fact{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:8px 10px;text-align:center}
.fact b{display:block;font-size:15px}
.fact span{font-size:12px;color:var(--muted)}
@media (max-width:520px){.facts{grid-template-columns:repeat(4,1fr);gap:6px}.fact{padding:7px 4px}.fact b{font-size:14px}.fact span{font-size:11px}}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.hero-img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface2)}
@media (max-width:640px){.hero-img{aspect-ratio:4/3}}
.recipe-cols{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;margin-top:18px;align-items:start}
@media (max-width:760px){.recipe-cols{grid-template-columns:1fr}}
.box{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:16px}
.box h2{margin:0 0 10px;font-size:18px}
.box-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.box-head h2{margin:0}
.serv{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.serv button{width:38px;height:36px;border:0;background:var(--surface2);cursor:pointer;font-size:18px;font-weight:700}
.serv output{min-width:86px;text-align:center;font-size:14px;font-weight:700}
.ingredients,.steps{list-style:none;margin:0;padding:0}
.ingredients li{
  display:flex;gap:10px;align-items:flex-start;padding:9px 2px;border-bottom:1px solid var(--line);cursor:pointer;font-size:15px;
}
.ingredients li:last-child{border-bottom:0}
.ingredients li::before{
  content:"";flex:0 0 auto;width:20px;height:20px;margin-top:1px;border-radius:6px;border:2px solid var(--line);
}
.ingredients li.done{color:var(--muted);text-decoration:line-through}
.ingredients li.done::before{background:var(--green);border-color:var(--green)}
.steps li{display:flex;gap:12px;padding:10px 2px;cursor:pointer;font-size:15px}
.steps .num{
  flex:0 0 auto;width:28px;height:28px;border-radius:999px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:var(--on-accent);
  font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;
}
.steps li.done{color:var(--muted)}
.steps li.done .num{background:var(--green)}
.hint{font-size:12px;color:var(--muted);margin:8px 0 0}
.notes{margin-top:16px;border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.07);border-radius:16px;padding:14px 16px}
.notes h2{margin:0 0 6px;font-size:16px}
.notes p{margin:4px 0;color:var(--muted)}

/* ---------- Ingredient finder ---------- */
.finder{padding:18px}
.finder .search{margin-top:0}
.picked{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.picked .chip{background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.5)}
.picked .chip::after{content:"✕";margin-left:8px;font-size:12px;color:var(--muted)}
.suggestions{margin-top:12px}
.suggestions p{margin:0 0 6px;font-size:13px;color:var(--muted)}

/* ---------- Legal / prose ---------- */
.prose{max-width:780px;margin:0 auto;padding:22px}
.prose h1{margin:0 0 12px;font-size:clamp(24px,4vw,32px);line-height:1.2}
.prose h2{font-size:19px;margin:26px 0 8px}
.prose h3{font-size:16px;margin:18px 0 6px}
.prose p,.prose li{color:var(--muted)}
.prose strong{color:var(--text)}
.prose hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.prose a{color:var(--accent)}

/* ---------- Consent ---------- */
.consent{
  position:fixed;left:12px;right:12px;bottom:12px;z-index:60;
  max-width:640px;margin:0 auto;padding:16px;
  border:1px solid var(--line);border-radius:16px;
  background:var(--bg);box-shadow:0 20px 60px rgba(0,0,0,.45);
}
.consent p{margin:0 0 12px;font-size:14px;color:var(--muted)}
.consent p b{color:var(--text)}
.consent a{color:var(--accent)}
.consent .row{display:flex;gap:8px;flex-wrap:wrap}
.consent .row .btn{flex:1 1 140px}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;bottom:24px;z-index:70;transform:translateX(-50%) translateY(20px);
  padding:10px 16px;border-radius:999px;background:var(--text);color:var(--bg);font-size:14px;font-weight:600;
  opacity:0;pointer-events:none;transition:opacity .2s ease, transform .2s ease;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ---------- Print ---------- */
@media print{
  :root{--text:#000;--muted:#333;--line:#ccc;--surface:#fff;--surface2:#fff}
  body{background:#fff;color:#000}
  .site-header,.site-footer,.actions,.consent,.similar,.serv,.hint,.crumbs,.toast,ins.adsbygoogle,.google-auto-placed{display:none!important}
  .hero-img{max-height:240px;aspect-ratio:auto;width:auto;border:0}
  .box,.notes{border:1px solid #ccc;box-shadow:none;break-inside:avoid}
  .recipe-cols{grid-template-columns:1fr 1.2fr}
  .ingredients li::before{border-color:#999}
}
