/* Mekanlar — rehber tipi editoryal tasarım.
   Tipografi/düzen sistemi Michelin Guide liste sayfasından ölçülerek alındı
   (Figtree, 18px gövde, #191919, 3px kart yarıçapı, 0 0 8px gölge, 13px çipler).
   Marka öğeleri (kırmızı wordmark, Bibendum, yıldız ikonları) KOPYALANMADI —
   bunlar bağlantı iması yaratır. Aksan rengi kendimize ait ember tonu. */

/* Kendi sunucumuzdan servis edilen değişken font: dış istek yok, gizlilik sözü korunur */
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/public/fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/public/fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #191919;
  --ink-soft: #48484a;
  --ink-faint: #8e8e93;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #f2f2f7;
  --line-strong: #e5e5ea;
  --accent: #a02c1f;        /* ember — Michelin kırmızısı değil, kendi tonumuz */
  --accent-soft: #fdf2f0;
  --up: #1c7c3f;
  --up-soft: #edf8f0;
  --down: #a3271f;
  --down-soft: #fdf1f0;
  --shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f4;
    --ink-soft: #b9b9bd;
    --ink-faint: #85858a;
    --bg: #121212;
    --surface: #1b1b1c;
    --line: #2a2a2c;
    --line-strong: #333336;
    --accent: #ef7a5f;
    --accent-soft: #2a1a16;
    --up: #5ec97f;
    --up-soft: #17281c;
    --down: #ef7268;
    --down-soft: #2a1715;
    --shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme='dark'] {
  --ink: #f2f2f4; --ink-soft: #b9b9bd; --ink-faint: #85858a;
  --bg: #121212; --surface: #1b1b1c; --line: #2a2a2c; --line-strong: #333336;
  --accent: #ef7a5f; --accent-soft: #2a1a16;
  --up: #5ec97f; --up-soft: #17281c; --down: #ef7268; --down-soft: #2a1715;
  --shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
:root[data-theme='light'] {
  --ink: #191919; --ink-soft: #48484a; --ink-faint: #8e8e93;
  --bg: #ffffff; --surface: #ffffff; --line: #f2f2f7; --line-strong: #e5e5ea;
  --accent: #a02c1f; --accent-soft: #fdf2f0;
  --up: #1c7c3f; --up-soft: #edf8f0; --down: #a3271f; --down-soft: #fdf1f0;
  --shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Üst bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 80px; gap: 16px;
}
.brand {
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--ink);
}
.brand em { font-style: normal; font-weight: 400; color: var(--accent); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  padding: 9px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { border-color: var(--line-strong); }
.nav-links a[aria-current='page'] { border-color: var(--ink); }
.brand, .nav-links a { white-space: nowrap; }
@media (max-width: 700px) {
  .site-header nav { min-height: 60px; gap: 8px; }
  .brand { font-size: 1rem; }
  .brand em { display: none; } /* dar ekranda ikinci kelime satır kırıyordu */
  .nav-links a { padding: 8px 11px; font-size: 0.8rem; }
}

/* ---------- Giriş bölümü ---------- */
.hero { padding: 56px 0 8px; max-width: 40em; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 600;
  line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 14px;
}
.hero p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* Anasayfa atmosfer şeridi — kategori görselleri (Wikimedia Commons, özgür
   lisans). Atıf figcaption'da; görseller self-host, hotlink yok. */
.mood-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 28px 0 8px;
}
.mood-card { margin: 0; min-width: 0; } /* min-width:0 → görselin doğal genişliği kolonu şişiremez */
.mood-card img {
  /* height:auto şart: HTML height niteliği UA stilinde 420px'e dönüşüyor ve
     aspect-ratio'yu devre dışı bırakıyordu */
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--line);
}
.mood-card figcaption { margin-top: 7px; display: flex; flex-direction: column; gap: 1px; }
.mood-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
}
.mood-credit { font-size: 0.66rem; color: var(--ink-faint); }
.mood-credit a { color: inherit; text-decoration: none; }
.mood-credit a:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .mood-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Filtre bölgesi ---------- */
.finder { padding: 28px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.finder-title {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ink-faint); margin: 0 0 14px;
}
.finder-form { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .finder-form { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.field select {
  width: 100%; min-height: 48px; padding: 10px 38px 10px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-size: 0.95rem; font-weight: 500; font-family: inherit;
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field select:disabled { opacity: 0.5; cursor: not-allowed; }
.finder-go {
  min-height: 48px; padding: 10px 30px; border: 1px solid var(--ink);
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 0.95rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: opacity 0.15s ease;
}
.finder-go:disabled { opacity: 0.3; cursor: not-allowed; }
.finder-go:not(:disabled):hover { opacity: 0.82; }
.finder-hint { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-faint); min-height: 1em; }

/* ---------- Bölüm başlıkları ---------- */
.section-title {
  font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em;
  margin: 44px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
}
.section-title small {
  font-size: 0.78rem; font-weight: 400; color: var(--ink-faint);
  text-transform: none; letter-spacing: 0;
}

/* ---------- Liste kartları (ana sayfa) ---------- */
.list-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr; padding: 4px 0 56px;
}
@media (min-width: 640px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .list-grid { grid-template-columns: repeat(3, 1fr); } }
.list-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.list-card:hover { transform: translateY(-2px); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
.list-card .plate {
  height: 92px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  border-bottom: 1px solid var(--line);
}
.list-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.list-card h2 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.list-card p {
  margin: 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-meta {
  margin-top: auto; padding-top: 10px;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--ink-faint);
}

/* ---------- Sayfa başlığı (liste / filtre) ---------- */
.crumbs {
  padding: 26px 0 0; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint);
}
.crumbs a { color: var(--ink-faint); }
.crumbs a:hover { color: var(--accent); }
.list-head { padding: 12px 0 4px; }
.list-head h1 {
  margin: 0 0 10px; font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.025em;
}
.list-head p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Mekan kartları ---------- */
.venue-list {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .venue-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .venue-list { grid-template-columns: repeat(3, 1fr); } }

.venue-row {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
/* Fotoğraf yok — görsel çapa olarak sıra numarası kullanılıyor. Bu bir
   dekorasyon değil bilgi: kartın sıralamadaki yerini gösteriyor. */
.venue-plate {
  position: relative; height: 116px; display: flex;
  align-items: center; justify-content: center;
  background: var(--accent-soft); border-bottom: 1px solid var(--line);
}
.rank {
  font-size: 3rem; font-weight: 600; line-height: 1;
  color: var(--accent); letter-spacing: -0.04em;
}
/* Tek kolonlu dar ekranda plaka orantısız yer kaplıyordu */
@media (max-width: 619px) {
  .venue-plate { height: 76px; }
  .rank { font-size: 2.2rem; }
}
/* Sıralamaya girmemiş mekan: büyük boş alan yerine ince şerit — kart dili
   korunur, ölü boşluk olmaz. Renk kontrastı AA'yı geçecek şekilde koyu. */
.venue-plate--waiting { height: 40px; background: var(--line); }
.rank-new {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink-soft);
}
.venue-info { padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.venue-name { font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.venue-name:hover { color: var(--accent); }
.venue-loc { font-size: 0.75rem; color: var(--ink-faint); }
.venue-note { margin: 6px 0 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Oy bileşeni ---------- */
.vote {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px 16px; margin-top: auto;
}
.vote-btn {
  width: 46px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-soft); font-size: 0.85rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.vote-btn:hover { border-color: var(--ink-soft); color: var(--ink); }
.vote-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vote-btn.up.active { background: var(--up-soft); color: var(--up); border-color: var(--up); }
.vote-btn.down.active { background: var(--down-soft); color: var(--down); border-color: var(--down); }
.vote-btn[disabled] { opacity: 0.5; cursor: wait; }
.vote-stat { font-size: 0.72rem; color: var(--ink-faint); line-height: 1.25; margin-left: 2px; }
.vote-stat b { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.vote-stat b.net-pos { color: var(--up); }
.vote-stat b.net-neg { color: var(--down); }
.vote-static { justify-content: space-between; }
.soon { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }

/* ---------- Mekan künyesi ---------- */
.venue-prose { margin: 18px 0 28px; }
.venue-prose p { margin: 0 0 14px; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.fact-list {
  margin: 0 0 22px; padding: 20px 22px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.fact { display: grid; gap: 2px; }
@media (min-width: 560px) { .fact { grid-template-columns: 168px 1fr; gap: 12px; align-items: baseline; } }
.fact dt {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.fact dd { margin: 0; font-size: 0.95rem; color: var(--ink); }
.fact dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.maps-link { margin: 0 0 8px; font-size: 0.9rem; }
.maps-link a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Konum haritası — OpenStreetMap gömme çerçevesi (ücretsiz, anahtarsız).
   Koordinatı doğrulanmamış mekanda sunucu bu bloğu hiç basmaz. */
.venue-map { margin: 0 0 22px; }
.venue-map iframe {
  width: 100%; height: 320px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); display: block; background: var(--line);
}
.venue-map figcaption {
  margin-top: 8px; font-size: 0.72rem; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.venue-map figcaption a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .venue-map iframe { height: 240px; } }

/* Tür rozetleri */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip {
  font-size: 0.78rem; font-weight: 500; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--ink-soft); background: var(--surface);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Listedeki sıra */
.rank-list { list-style: none; padding: 0; }
.rank-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 0.95rem;
}
.rank-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.rank-list a:hover { color: var(--accent); }
.rank-list b { color: var(--accent); font-weight: 600; }
.muted { color: var(--ink-faint); font-size: 0.85rem; }
.vote-intro { margin: 0 0 10px; }
.venue-page .vote { padding: 0 0 24px; }

/* Yakındaki benzer mekanlar */
.similar-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 2px; }
.similar-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.similar-list a { display: block; font-weight: 500; color: var(--ink); }
.similar-list a:hover { color: var(--accent); }
.similar-list span { display: block; font-size: 0.85rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- Mekan sayfası / düzyazı ---------- */
.venue-page, .prose { padding: 8px 0 48px; max-width: 44em; }
.venue-page h1, .prose h1 {
  margin: 12px 0 8px; font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.025em;
}
.prose h2 { margin: 34px 0 10px; font-size: 1.1rem; font-weight: 600; }
.prose ul, .plain-list { padding-left: 20px; }
.prose li, .plain-list li { margin-bottom: 8px; }
.prose a, .plain-list a, .venue-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose p, .venue-page p { color: var(--ink-soft); }

.empty-note {
  color: var(--ink-soft); background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 22px; font-size: 0.92rem;
}

/* ---------- Uyarı balonu ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; max-width: 90vw; text-align: center; z-index: 50;
}
.toast.show { opacity: 1; }

/* ---------- Alt bilgi ---------- */
.site-footer {
  padding: 36px 32px 56px; margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 0.8rem;
}
.site-footer p { margin: 5px 0; }
.site-footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
