/* İçerik sayfaları (rehberler, ilçe raporları, SSS…) — harita uygulamasından bağımsız */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --border: #dde3ea;
  --text: #17202b;
  --muted: #5d6b7a;
  --primary: #123a5c;
  --accent: #0b6bcb;
  --warn-bg: #fff4e0;
  --warn-text: #7a4b00;
  --g-zayif: #d32f2f;
  --g-orta-zayif: #e08a00;
  --g-orta: #2e8b57;
  --g-iyi: #1f6fd1;
  --g-cok-iyi: #1a3fb0;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151c;
    --surface: #17202a;
    --border: #2a3644;
    --text: #e6edf3;
    --muted: #9aa8b6;
    --primary: #8cc4ff;
    --accent: #6cb4ff;
    --warn-bg: #3a2a0c;
    --warn-text: #ffd28a;
    --g-zayif: #ff6b61;
    --g-orta-zayif: #ffb347;
    --g-orta: #5fd38d;
    --g-iyi: #6aa8ff;
    --g-cok-iyi: #8e9dff;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .inner,
.site-footer .inner,
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}

.crumbs a {
  color: var(--muted);
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 36px 0 10px;
}

h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}

.note {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 15px;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .cta {
    color: #0f151c;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.stat b {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

.bar {
  display: flex;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 8px 0 6px;
}

.bar i {
  display: block;
  height: 100%;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 14px;
  color: var(--muted);
  padding: 0;
  margin: 0;
  list-style: none;
}

.legend li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  background: var(--c);
}

.g-zayif { --c: var(--g-zayif); background: var(--g-zayif); }
.g-orta-zayif { --c: var(--g-orta-zayif); background: var(--g-orta-zayif); }
.g-orta { --c: var(--g-orta); background: var(--g-orta); }
.g-iyi { --c: var(--g-iyi); background: var(--g-iyi); }
.g-cok-iyi { --c: var(--g-cok-iyi); background: var(--g-cok-iyi); }
.legend li { background: none; }

.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

tr:last-child td {
  border-bottom: none;
}

.ilce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px 16px;
  padding: 0;
  list-style: none;
}

.guide-list {
  padding: 0;
  list-style: none;
}

.guide-list li {
  margin: 0 0 12px;
}

.guide-list a {
  font-weight: 600;
}

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 10px 0;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.ad-box {
  margin: 28px 0;
  min-height: 100px;
}

.ad-box[hidden] {
  display: none;
}

.ad-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}

.site-footer .inner {
  padding-top: 20px;
  padding-bottom: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}

.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 520px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 30, 50, 0.18);
  font-size: 14px;
}

.consent[hidden] {
  display: none;
}

.consent p {
  flex: 1 1 220px;
  margin: 0;
}

.consent button {
  font: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.consent button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 575px) {
  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 20px;
  }
}
