/* Layout: directory app — sticky top bar, search-led hero, category grid, list → detail views (hash routed) */
:root {
  --bg: #f6f7f4; --surface: #ffffff; --ink: #10212e; --muted: #5b6b75; --line: #e0e6e3;
  --sea: #0b7f8c; --sea-ink: #075d67; --sea-soft: #e3f2f2; --sun: #f2a227; --coral: #e2603e; --chip: #eef3f1;
  --hero-a: #0b7f8c; --hero-b: #0d4a6b; --hero-ink: #ffffff;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r: 16px; --r-sm: 10px; --max: 1160px;
  --shadow: 0 1px 2px rgba(16,33,46,.05), 0 8px 24px -12px rgba(16,33,46,.22);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0c1720; --surface: #13222c; --ink: #e7eef0; --muted: #9db0b8; --line: #243642;
  --sea: #3cbfcc; --sea-ink: #86dbe3; --sea-soft: #143440; --sun: #f5b955; --coral: #ff8a67; --chip: #1a2c37;
  --hero-a: #0a5d68; --hero-b: #0a2c42; --hero-ink: #f2f8f9;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0c1720; --surface: #13222c; --ink: #e7eef0; --muted: #9db0b8; --line: #243642;
  --sea: #3cbfcc; --sea-ink: #86dbe3; --sea-soft: #143440; --sun: #f5b955; --coral: #ff8a67; --chip: #1a2c37;
  --hero-a: #0a5d68; --hero-b: #0a2c42; --hero-ink: #f2f8f9;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Draft banner + top bar */
.draft { background: var(--sun); color: #2a1a00; font-size: .85rem; font-weight: 600; text-align: center; padding: 6px 16px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem var(--display); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, var(--hero-a), var(--hero-b)); color: #fff; display: grid; place-items: center; font-size: 18px; }
.logo small { display: block; font: 600 .7rem var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--chip); }
@media (max-width: 560px) { .top nav a.hide-sm { display: none; } }

/* Hero */
.hero { background: radial-gradient(120% 140% at 85% -10%, color-mix(in srgb, var(--sun) 45%, transparent) 0 18%, transparent 40%), linear-gradient(150deg, var(--hero-a), var(--hero-b));
  color: var(--hero-ink); padding-block: 40px 76px; position: relative; overflow: hidden; }
@media (min-width: 720px) { .hero { padding-block: 64px 96px; } }
.hero .eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); font-weight: 800; letter-spacing: -0.03em; }
.hero p.sub { font-size: 1.1rem; opacity: .9; max-width: 52ch; margin: 14px 0 26px; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; color: var(--bg); }
.search { position: relative; max-width: 640px; }
.search svg.i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--muted); }
.search input { width: 100%; height: 58px; border-radius: 999px; border: 0; padding: 0 20px 0 52px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: 1.02rem; }
.results { position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); list-style: none; margin: 0; padding: 6px; z-index: 5; max-height: 320px; overflow: auto; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.results a:hover, .results a:focus { background: var(--chip); }
.results small { color: var(--muted); }

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero .chips { margin-top: 16px; }
.hero .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.hero .chip[aria-pressed="true"] { background: #fff; color: #0d3347; border-color: #fff; }

/* Sections */
.section { padding-block: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.see-all { font-weight: 700; color: var(--sea-ink); text-decoration: none; }

/* Category grid */
.cats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -40px; position: relative; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cat { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; min-height: 132px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sea); }
.cat-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sea-soft); color: var(--sea-ink); display: grid; place-items: center; font-size: 22px; }
.cat strong { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.cat small { color: var(--muted); font-weight: 600; margin-top: auto; }

/* Founder block */
.founder { display: grid; gap: 20px; align-items: center; background: var(--surface); border: 1.5px dashed var(--line); border-radius: 20px; padding: 24px; }
@media (min-width: 760px) { .founder { grid-template-columns: 140px 1fr auto; padding: 28px 32px; } }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: repeating-linear-gradient(135deg, var(--chip) 0 8px, transparent 8px 16px), var(--sea-soft); display: grid; place-items: center; color: var(--muted); font-size: .75rem; font-weight: 700; text-align: center; padding: 10px; }
.founder h2 { font-size: 1.6rem; }
.slot { color: var(--muted); font-style: italic; margin: 6px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.photo { aspect-ratio: 16 / 10; max-width: 100%; display: grid; place-items: center; gap: 6px; align-content: center; color: var(--muted); font-size: .8rem; font-weight: 600;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--line) 70%, transparent) 0 10px, transparent 10px 20px), var(--chip); }
.photo svg.i { font-size: 30px; color: var(--sea); opacity: .7; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.kind { font-size: .82rem; font-weight: 700; color: var(--sea-ink); margin-top: -4px; }
.rates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.rate { display: inline-flex; align-items: baseline; gap: 4px; padding: 5px 9px; border-radius: 8px; background: var(--chip); font-size: .8rem; font-variant-numeric: tabular-nums; }
.rate b { font-size: .95rem; }
.rate .src { font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.rate .src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.rate.empty b { color: var(--muted); font-weight: 600; }
.rate .of { color: var(--muted); }
.src-ta { --dot: #2bb673; } .src-go { --dot: #4a8af4; } .src-bk { --dot: #1f5fbf; } .src-ab { --dot: #e8505b; }
.dishes { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.cat-note { margin: 10px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--sea-soft); font-size: .9rem; max-width: 80ch; }
h3.mini { font: 700 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.amen.dish li { background: color-mix(in srgb, var(--coral) 14%, var(--surface)); }

/* Page head / crumbs */
.page-head { padding-block: 28px 20px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--sea-ink); text-decoration: none; font-weight: 600; }
.crumbs span[aria-hidden] { opacity: .6; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page-head h1:focus { outline: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 20px; }
.toolbar select { height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-weight: 600; }
.count { color: var(--muted); font-weight: 600; font-size: .92rem; }
.empty-state { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 20px; padding: 40px 24px; text-align: center; color: var(--muted); }
.empty-state .cat-ico { margin: 0 auto 12px; }
.empty-state strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.25rem; margin-bottom: 4px; }

/* Detail */
.gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 260px; border-radius: var(--r); overflow: hidden; }
@media (min-width: 720px) { .gallery { height: 400px; grid-template-columns: 2fr 1fr 1fr; } }
.gallery .photo { aspect-ratio: auto; height: 100%; }
.gallery .photo:first-child { grid-row: span 2; }
@media (max-width: 719px) { .gallery .photo:nth-child(n+4) { display: none; } }
.detail { display: grid; gap: 28px; padding-block: 28px 64px; }
@media (min-width: 980px) { .detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } .side { position: sticky; top: 84px; align-self: start; } }
.block { padding-block: 22px; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 0; }
.block h2 { font-size: 1.35rem; margin-bottom: 6px; }
.block.founder-note { background: var(--sea-soft); border: 0; border-radius: var(--r); padding: 20px; margin-block: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; }
.panel h2 { font-size: 1.1rem; }
.score-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.score-row:first-of-type { border-top: 0; }
.score-row .src { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.score-row .src::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.score-row b { font-family: var(--display); font-size: 1.3rem; }
.score-row .pending { color: var(--muted); font-size: .88rem; font-weight: 600; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 0; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.note { font-size: .82rem; color: var(--muted); margin: 0; }

/* Founder experiences */
.founder-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .founder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .founder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.founder-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: var(--r); text-decoration: none; transition: box-shadow .15s; }
.founder-card:hover { box-shadow: var(--shadow); }
.founder-card h3 { font-size: 1.3rem; }
.founder-card p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.founder-card .see-all { margin-top: auto; }
.founder-note p { margin: 0 0 10px; }
/* Detail content */
.block > p { margin: 0; max-width: 68ch; }
.amen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amen li { padding: 6px 12px; border-radius: 999px; background: var(--chip); font-size: .9rem; font-weight: 600; }
.info { margin: 0; display: grid; }
.info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.info div:first-child { border-top: 0; }
.info dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.info a, .note a, .map-link { color: var(--sea-ink); font-weight: 700; }
.map-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cnt { color: var(--muted); font-size: .8rem; font-weight: 500; }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: .9rem; margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Birleşik misafir puanı */
.score { display: inline-flex; align-items: center; gap: 8px; }
.score b { min-width: 42px; padding: 6px 8px; border-radius: 9px 9px 9px 3px; color: #fff; background: var(--sea); font: 800 1rem var(--display); text-align: center; font-variant-numeric: tabular-nums; }
.score.s-mid b { background: #b7791f; }
.score.s-lo b { background: var(--coral); }
.score strong { display: block; font-size: .88rem; line-height: 1.2; }
.score small { display: block; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.score.big b { min-width: 58px; padding: 10px 12px; font-size: 1.5rem; border-radius: 12px 12px 12px 4px; }
.score.big strong { font-size: 1.05rem; }
.score.big small { font-size: .82rem; }
.score.none { font-size: .85rem; color: var(--muted); font-weight: 600; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card[hidden] { display: none; }
.block.founder-note h2 .tag { display: block; margin-bottom: 4px; }

/* Fotoğraflar */
.photo.has-img { display: block; padding: 0; background: var(--chip); overflow: hidden; }
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
a.photo.has-img:hover img, .card:hover .photo.has-img img { transform: scale(1.03); }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--chip); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Klavye kullanıcıları için "İçeriğe geç" bağlantısı: sadece odaklanınca görünür */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
