/* Bakırçay CBS Açık Veri Kaynakları */
:root {
  --bg: #f7f8f7; --surface: #ffffff; --surface-2: #eef3f2; --text: #1d2626; --muted: #5b6b6b; --line: #dbe3e2;
  --brand: #1f7f86; --brand-ink: #135a60; --brand-soft: #dff0f0; --accent: #e0832f; --bad: #c0473a; --warn: #b7841c;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(20,60,60,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111717; --surface: #182121; --surface-2: #1f2a2a; --text: #e6eeed; --muted: #9db0ae; --line: #2b3838;
    --brand: #4fb7bd; --brand-ink: #8fd6da; --brand-soft: #1d3436; --accent: #f0a159; --bad: #ef7d70; --warn: #e0b04a; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.cta { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .nav a.cta { color: #0d1515; } }
@media (max-width: 640px) { .site-header { position: static; } .nav { margin-left: 0; width: 100%; } }

.hero { padding: 44px 0 20px; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stats strong { display: block; font-size: 1.5rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.filters { display: grid; gap: 12px; }
.search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.selects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.selects label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.selects select { font: inherit; font-size: .92rem; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; }
@media (max-width: 760px) { .selects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; align-items: center; }
button.link { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 10px; color: var(--muted); font-weight: 600; gap: 10px; flex-wrap: wrap; }

.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.kaynak { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--line); }
.kaynak.tr { border-top-color: var(--brand); }
.kaynak .ust { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.kaynak h2 { font-size: 1.02rem; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.kaynak p { margin: 0; color: var(--muted); font-size: .9rem; }
.etiketler { display: flex; flex-wrap: wrap; gap: 6px; }
.et { font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
.et.kapsam { background: var(--brand-soft); color: var(--brand-ink); }
.alt { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); }
.alt .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1.5px solid; white-space: nowrap; }
.badge.bad { color: var(--bad); } .badge.warn { color: var(--warn); }
.empty { text-align: center; color: var(--muted); grid-column: 1 / -1; padding: 32px; }
.more { text-align: center; margin: 18px 0; }
.btn { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }

.site-footer { border-top: 1px solid var(--line); margin-top: 36px; padding: 24px 0; color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* Atıf */
.atif { margin-top: 10px; }
.atif h2 { margin-top: 0; font-size: 1.3rem; }
.atif p { font-family: Georgia, "Times New Roman", serif; background: var(--surface-2); padding: 12px 14px; border-radius: 10px; overflow-wrap: anywhere; }
.atif .btn { margin: 4px 8px 0 0; text-decoration: none; display: inline-block; }

/* İletişim ikonları */
.social { display: flex; gap: 10px; margin: 6px 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); border: 1px solid var(--line); text-decoration: none; }
.social a:hover, .social a:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); }
