/* ==========================================================================
   Takagu Fried Chicken — main.css
   Tek CSS dosyası: dış istek yok, ekstra DNS/bağlantı gecikmesi yok.
   Mobil öncelikli (restoran trafiğinin büyük kısmı mobil).
   ========================================================================== */

/* --- Tasarım jetonları ---------------------------------------------------- */
:root {
  /* Marka — BRIEF.md B4'te doğrulanacak (mevcut QR menüden alındı) */
  --brand:        #600000;
  --brand-dark:   #430000;
  --brand-tint:   #fdf5f5;

  /* Vurgu — çıtır/altın. Kızarmış tavuk için sıcak bir ikincil renk. */
  --accent:       #e8a33d;
  --accent-dark:  #b87c22;

  --ink:          #14100f;
  --ink-muted:    #5f5754;
  --line:         #e7e2e0;
  --surface:      #ffffff;
  --surface-alt:  #faf8f7;

  --ok:           #1a7f4b;

  /* Tipografi — sistem yazı tipi yığını: sıfır ağ isteği, anında render.
     Özel marka fontu seçilirse SELF-HOST edilecek (font-display: swap). */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.06rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 3rem);

  --sp-1: .5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2rem;   --sp-5: 3rem;   --sp-6: 4.5rem;

  --radius: 14px;
  --wrap:   1160px;

  /* Mobil sabit eylem çubuğunun yüksekliği — body padding'i buna dayanır */
  --actionbar-h: 64px;
}

/* --- Temel --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* CLS önlemi: her görselde width/height yazılı olacak, CSS oranı korur */
img, picture, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--sp-2); text-wrap: balance; }
h1 { font-size: var(--step-3); letter-spacing: -.02em; }
h2 { font-size: var(--step-2); letter-spacing: -.01em; }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-2); text-wrap: pretty; }

a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: var(--sp-2); top: var(--sp-2); }

/* --- Başlık -------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 68px; flex-wrap: wrap;
}
.brand {
  flex: 0 0 auto; text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
}
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand__text {
  font-weight: 800; font-size: var(--step-1); letter-spacing: -.02em;
  color: var(--brand); line-height: 1.1;
}
.brand__text--footer { color: #fff; margin: var(--sp-2) 0; font-size: var(--step-1); }
/* Logo şeffaf zeminli ve metni koyu renk. Koyu altbilgide okunabilir kalması
   için beyaz daire rozetin üzerine oturuyor — filtreyle boyamak yerine.
   Rozet bilinçli bir tasarım tercihi, kaza değil. */
.site-footer__mark {
  width: 72px; height: 72px;
  background: #fff; border-radius: 50%; padding: 4px;
}
@media (max-width: 420px) { .brand__text { font-size: var(--step-0); } }

.nav { margin-inline-start: auto; }
.nav__list {
  display: flex; gap: var(--sp-3); list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.nav__list a {
  color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: var(--step--1); letter-spacing: .01em;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav__list a:hover, .nav__list a[aria-current] {
  color: var(--brand); border-bottom-color: var(--brand);
}

.langswitch { display: flex; gap: .35rem; font-size: var(--step--1); font-weight: 600; }
.langswitch a { color: var(--ink-muted); text-decoration: none; }
.langswitch a[aria-current] { color: var(--brand); }

/* --- Mobil sabit eylem çubuğu (D-006: local-first) ------------------------ */
.actionbar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: var(--actionbar-h); }
  .actionbar {
    display: flex; gap: var(--sp-1);
    position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .actionbar__btn {
    flex: 1; display: grid; place-items: center;
    min-height: 48px;                 /* dokunma hedefi */
    border-radius: 10px; font-weight: 700; text-decoration: none;
    border: 2px solid var(--brand); color: var(--brand); background: #fff;
  }
  .actionbar__btn--primary { background: var(--brand); color: #fff; }
  .nav__list { gap: var(--sp-2); font-size: var(--step--1); }

  /* Mobilde hero butonları tam genişlik: QR'dan gelen müşteri için "Menüyü gör"
     ekranın tamamını kaplayan, kaçırılması zor bir hedef olsun (D-018). */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; font-size: var(--step-1); min-height: 54px; }
}

/* --- Butonlar ------------------------------------------------------------ */
.btn {
  display: inline-grid; place-items: center;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 10px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff;
  font-weight: 700; text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* --- Hero ---------------------------------------------------------------- */
.hero { background: var(--brand-tint); padding-block: var(--sp-5); }
.hero__lead { font-size: var(--step-1); color: var(--ink-muted); max-width: 60ch; }
.hero__cta { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }

/* Hero'da ürün görseli (ana sayfa) — 2026-08-30.
   Sıra bilerek breakpoint'e göre değişiyor:
   · MOBİL: başlık → GÖRSEL → metin → butonlar. Yemek fotoğrafı katlamanın
     üstünde kalsın diye; yerel aramadan gelen trafiğin çoğu mobil. Menü
     erişimi zaten alttaki sabit `.actionbar` çubuğunda, o yüzden hero
     butonlarını aşağı itmek D-018'i (QR ile gelen müşteri menü arıyor)
     bozmuyor.
   · MASAÜSTÜ: solda metin, sağda görsel; görsel iki satırı birden kaplar.
   Görsel dikey (1200×1600); `max-height` + `object-fit: cover` olmadan hero
   ekranı taşırır. */
.hero__grid { display: grid; gap: var(--sp-3); }
.hero__title { order: 1; }
.hero__media { order: 2; }
.hero__body  { order: 3; }
.hero__media img { max-height: 40vh; object-fit: cover; }

@media (min-width: 640px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "title media" "body media";
    align-content: center;
  }
  .hero__title { grid-area: title; align-self: end; }
  .hero__body  { grid-area: body;  align-self: start; }
  .hero__media { grid-area: media; align-self: center; }
  .hero__media img { max-height: 62vh; }
}

/* --- Bölümler ------------------------------------------------------------ */
.section { padding-block: var(--sp-5); }
.section--alt { background: var(--surface-alt); }
.section__lead { max-width: 68ch; }

.grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: var(--sp-3);
}
.card h3 { margin-bottom: var(--sp-1); }
.card--link { display: block; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.card--link:hover { border-color: var(--brand); }
.card--link h3, .card--link p { padding-inline: var(--sp-3); }
.card--link h3 { margin-top: var(--sp-3); color: var(--brand); }
.card--link p:last-child { padding-bottom: var(--sp-3); }
.card__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.card__meta { color: var(--ink-muted); font-size: var(--step--1); margin: 0; }

img.rounded { border-radius: var(--radius); width: 100%; height: auto; }
.caption { font-size: var(--step--1); color: var(--ink-muted); margin-top: var(--sp-2); }
.note { background: var(--brand-tint); border-inline-start: 3px solid var(--brand);
        padding: var(--sp-2); font-size: var(--step--1); }

.status { font-weight: 700; font-size: var(--step--1); margin-top: var(--sp-2); }
.status--open   { color: var(--ok); }
.status--closed { color: var(--ink-muted); }
.status::before { content: "● "; }

/* --- Tablolar (AI-SEO-PLAYBOOK §5.5: LLM'ler tabloyu çok iyi ayrıştırır) -- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
caption { text-align: left; font-weight: 700; padding-bottom: var(--sp-1); }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-alt); font-weight: 700; white-space: nowrap; }

/* --- Menü ---------------------------------------------------------------- */
.breadcrumb { font-size: var(--step--1); color: var(--ink-muted); margin-bottom: var(--sp-2); }
.breadcrumb a { color: var(--ink-muted); }

.menunav { margin-top: var(--sp-3); }
.menunav ul {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0; padding: 0;
}
.menunav a {
  display: inline-block; padding: .45rem .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: var(--step--1); color: var(--ink);
}
.menunav a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

td.price { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
td.price .variant {
  display: inline-block; min-width: 5.5em;
  font-weight: 500; color: var(--ink-muted);
}

.tag {
  display: inline-block; margin-inline-start: .4rem;
  padding: .1rem .45rem; border-radius: 999px;
  font-size: .72em; font-weight: 700; letter-spacing: .02em;
  vertical-align: middle;
}
.tag--spicy { background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand); }

/* --- SSS / cevap-önce blokları ------------------------------------------- */
.qa { border-top: 1px solid var(--line); padding-block: var(--sp-3); }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.linklist a { font-weight: 600; }
.cat-more { margin-top: var(--sp-2); }
.cat-more a { font-weight: 600; text-decoration: none; }
.cat-more a:hover { text-decoration: underline; }
.link-more { font-weight: 600; }
.qa h3 { color: var(--brand); }
/* İlk paragraf = doğrudan cevap. Alıntılanabilir olması için görsel olarak da ayrı. */
.answer-first {
  font-size: var(--step-1); line-height: 1.5;
  border-inline-start: 4px solid var(--accent);
  padding-inline-start: var(--sp-2); margin-bottom: var(--sp-3);
}

/* --- NAP / şube ---------------------------------------------------------- */
.nap { margin-bottom: var(--sp-2); font-size: var(--step--1); font-style: normal; }
.nap__name { display: block; }
.nap__addr { font-style: normal; color: var(--ink-muted); }
.nap__tel  { font-weight: 700; }

/* --- Alt bilgi ----------------------------------------------------------- */
.site-footer {
  margin-top: var(--sp-6);
  background: var(--ink); color: #efeae8;
  padding-block: var(--sp-5) var(--sp-3);
}
.site-footer a { color: #efeae8; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; gap: var(--sp-4); }
@media (min-width: 780px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__h { font-size: var(--step--1); text-transform: uppercase;
                  letter-spacing: .08em; color: var(--accent); margin-bottom: var(--sp-2); }
.site-footer__def { font-size: var(--step--1); color: #c9c1be; max-width: 46ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem;
                  font-size: var(--step--1); }
/* ⚠️ Burada eskiden `filter: brightness(0) invert(1)` vardı. Vektörel tek renk
   logo beklendiği için konmuştu; logomuz ise fotoğraftan üretilmiş renkli bir
   resim olduğu için hepsini beyaza boyuyor ve logo görünmez oluyordu (D-031). */
.site-footer__brand img { margin-bottom: var(--sp-2); }
.site-footer__bottom {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  align-items: center; justify-content: space-between;
  font-size: var(--step--1); color: #c9c1be;
}
.site-footer__legal { display: flex; gap: var(--sp-2); }
.site-footer__updated { margin: 0; }
.site-footer p { margin: 0; }

/* --- Yardımcı ------------------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- Blog ---------------------------------------------------------------- */
.wrap--narrow { width: min(100% - 2.5rem, 72ch); }
.post h2 { margin-top: var(--sp-4); }
.post p { max-width: 72ch; }
.post__meta { color: var(--ink-muted); font-size: var(--step--1); }
.postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.postlist__item { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.postlist__item h2 { margin: .2rem 0 .4rem; }
.postlist__item h2 a { text-decoration: none; }
.postlist__item h2 a:hover { text-decoration: underline; }
.authorbox {
  margin-top: var(--sp-4); padding: var(--sp-3);
  background: var(--surface-alt); border-radius: var(--radius);
  font-size: var(--step--1);
}
.authorbox p { margin: 0 0 .4rem; }

/* --- Çerez izni ---------------------------------------------------------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--ink); color: #f4f0ef;
  padding: var(--sp-3) 0 calc(var(--sp-3) + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.consent[hidden] { display: none; }
.consent__box {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; gap: var(--sp-2);
}
.consent__title { margin: 0; }
.consent__body  { margin: 0; font-size: var(--step--1); max-width: 70ch; }
.consent__body a { color: var(--accent); }
.consent__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
/* İki buton AYNI ağırlıkta — reddi zorlaştırmak AB'de ihlal (D-025) */
.consent__btn {
  flex: 0 1 auto; min-width: 10rem;
  background: #fff; color: var(--ink); border-color: #fff;
}
.consent__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
@media (max-width: 720px) {
  /* Mobil eylem çubuğunun üstünde dursun, onu örtmesin */
  .consent { bottom: var(--actionbar-h); }
  .consent__btn { flex: 1; min-width: 0; }
}
