/* Kaçta Açılır */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5b6878;
  --border: #e2e7ee;
  --brand: #1d3557;
  --brand-ink: #ffffff;
  --accent: #c8102e;
  --link: #1d4ed8;
  --green-bg: #e3f7ec;
  --green-fg: #0f6b3a;
  --red-bg: #fde8ea;
  --red-fg: #a3122a;
  --muted-bg: #eef1f5;
  --amber-bg: #fff4d6;
  --amber-fg: #7a4b00;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1420;
    --surface: #152030;
    --text: #e6ebf2;
    --muted: #9aa7b8;
    --border: #243246;
    --brand: #0f1a2b;
    --link: #8ab4ff;
    --green-bg: #12382a;
    --green-fg: #7ee2a8;
    --red-bg: #3d1820;
    --red-fg: #ff9aa8;
    --muted-bg: #1e2b3d;
    --amber-bg: #3a2c0c;
    --amber-fg: #ffd27a;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; 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;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--brand); color: var(--brand-ink); }
.site-header__in { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { color: var(--brand-ink); font-size: 1.25rem; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__mark { color: #ffd166; }
.search { display: flex; flex: 1 1 260px; max-width: 420px; margin-left: auto; }
.search input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 0; border-radius: 8px 0 0 8px;
  font: inherit; background: #fff; color: #16202e;
}
.search button {
  padding: 9px 14px; border: 0; border-radius: 0 8px 8px 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600;
}
.main-nav { background: rgba(0, 0, 0, .18); }
.main-nav ul {
  list-style: none; display: flex; gap: 4px; margin: 0 auto; padding-top: 6px; padding-bottom: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: block; padding: 6px 12px; border-radius: 6px; color: #dfe7f2; white-space: nowrap; font-size: .95rem; }
.main-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }

/* Ads — yer ayırma CLS'yi önler */
.ad { max-width: 1080px; margin: 16px auto; padding: 0 16px; min-height: 100px; text-align: center; overflow: hidden; }
.post .ad { padding: 0; }
.ad ins { max-width: 100%; }
body { overflow-x: hidden; }
.ad--ust { min-height: 90px; }

main { padding-bottom: 32px; }

/* Breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 12px 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }

/* Hero / page head */
.hero, .page-head { padding: 20px 0 8px; }
.hero p, .page-head p { color: var(--muted); max-width: 760px; }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.chips a {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.chips a:hover { border-color: var(--brand); text-decoration: none; }
.chips-wrap { margin-top: 24px; }

/* Cards */
.cards {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cards a {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
  transition: border-color .15s, transform .15s;
}
.cards a:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.card__t { font-weight: 600; }
.card__s { font-size: .85rem; color: var(--muted); }
.tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: var(--muted-bg); font-size: .75rem; }

/* Category sections on home */
.cat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 0 0 16px; box-shadow: var(--shadow);
}
.cat h2 a { color: var(--text); }
.cat > p { color: var(--muted); margin-top: 0; }
.links { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 24px; }
.links li { break-inside: avoid; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.more { margin: 12px 0 0; font-weight: 600; }

/* Detail */
.post {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto 24px;
}
.post__head { text-align: center; }
.post__meta { color: var(--muted); font-size: .9rem; margin: 0; }
.hours { width: 100%; border-collapse: collapse; margin: 16px 0; }
.hours caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: 6px; }
.hours th, .hours td { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; }
.badge { display: inline-block; min-width: 110px; text-align: center; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge--green { background: var(--green-bg); color: var(--green-fg); }
.badge--red { background: var(--red-bg); color: var(--red-fg); }
.badge--amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge--muted { background: var(--muted-bg); color: var(--muted); font-weight: 500; }
.lead { font-size: 1.05rem; }
.toc { background: var(--muted-bg); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.toc__t { font-size: 1rem; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; font-size: .92rem; }
.faq h2 { margin-top: 1.4em; }
.note { color: var(--muted); font-size: .9rem; margin-top: 24px; }
.callout { background: var(--amber-bg); color: var(--amber-fg); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0 20px; }
.callout a { color: inherit; font-weight: 700; }
.callout ul { margin: 6px 0 0; padding-left: 20px; }
.hours td.l { text-align: left; }
.related { max-width: 820px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--brand); color: #c9d4e3; padding: 32px 0 12px; margin-top: 24px; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer a { color: #dfe7f2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; font-size: .92rem; }
.site-footer__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer p { font-size: .92rem; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; margin-top: 20px; }

@media (max-width: 600px) {
  .search { max-width: none; margin-left: 0; }
  .post, .cat { padding: 16px; }
  .badge { min-width: 0; }
}
