/* ============ Tema Değişkenleri ============ */
:root {
  --bg: #f3f5fa;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1f8;
  --text: #171923;
  --text-muted: #5d6679;
  --border: #e4e7ee;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .10);

  --accent: #2563eb;
  --page-accent: #2563eb;
  /* Metin olarak kullanılan vurgu rengi (koyu temada zemine göre açılır, kontrast >= 4.5:1) */
  --accent-ink: color-mix(in srgb, var(--page-accent) 85%, #000);

  --success-bg: #ecfdf3; --success-text: #067647; --success-border: #abefc6;
  --warning-bg: #fffaeb; --warning-text: #b54708; --warning-border: #fedf89;
  --danger-bg:  #fef3f2; --danger-text:  #b42318; --danger-border: #fecdca;
  --info-bg:    #eff4ff; --info-text:    #1849a9; --info-border:  #b2ccff;
  --neutral-bg: #f2f4f7; --neutral-text: #344054; --neutral-border: #e4e7ec;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --accent-ink: color-mix(in srgb, var(--page-accent) 60%, #fff);
  --bg: #0d0f16;
  --bg-elevated: #161923;
  --bg-soft: #1b1f2b;
  --text: #e7e9ee;
  --text-muted: #9298a8;
  --border: #262b39;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, .45);

  --success-bg: #0d2a1c; --success-text: #4ade80; --success-border: #1b4332;
  --warning-bg: #2b2008; --warning-text: #fbbf24; --warning-border: #4a3910;
  --danger-bg:  #2c1212; --danger-text:  #fb7185; --danger-border: #4a1d1d;
  --info-bg:    #10203f; --info-text:    #7fb0ff; --info-border:  #1e3a6d;
  --neutral-bg: #1c2029; --neutral-text: #b4b9c6; --neutral-border: #2a2f3c;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f16; --bg-elevated: #161923; --bg-soft: #1b1f2b;
    --text: #e7e9ee; --text-muted: #9298a8; --border: #262b39;
    --accent-ink: color-mix(in srgb, var(--page-accent) 60%, #fff);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* İçerik az olsa bile footer'ı görünüm alanının altına sabitler */
.topbar { flex-shrink: 0; }
.page { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); padding: .1em .4em; border-radius: 4px; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav a.active { background: var(--page-accent); color: #fff; }

.theme-toggle {
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.theme-toggle:hover { border-color: var(--page-accent); }

/* ============ Layout ============ */
.page { max-width: 1440px; margin: 0 auto; padding: 28px 20px 60px; }

.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 28px; border-radius: 18px; margin-bottom: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent) 16%, var(--bg-elevated)), var(--bg-elevated));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--page-accent) 35%, transparent) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(115deg, transparent 30%, black 75%);
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, black 75%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-accent) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-title { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.hero-logo {
  width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--page-accent); color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--page-accent) 45%, transparent);
}
.hero h1 { margin: 0; font-size: 22px; }
.hero p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.hero-stats { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }
.stat-pill {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 18px; text-align: center; min-width: 92px; box-shadow: var(--shadow);
}
.stat-pill b { display: block; font-size: 22px; color: var(--accent-ink); }
.stat-pill span { font-size: 12px; color: var(--text-muted); }

/* ============ Widget kutusu ============ */
.widget {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.widget-title { margin: 0 0 14px; font-size: 13.5px; font-weight: 700; }


.intro-text {
  color: var(--text-muted); font-size: 13.5px; line-height: 1.65; max-width: 90ch;
  margin: 0 0 22px;
}

/* ============ İllere göre gözat ============ */
.il-widget { margin-bottom: 26px; }
.il-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.il-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
}
.il-chip:hover { border-color: var(--page-accent); color: var(--accent-ink); }
.il-chip span { font-size: 11px; color: var(--text-muted); font-weight: 700; }
.il-chip:hover span { color: var(--accent-ink); }

/* ============ Breadcrumb ============ */
.breadcrumb { font-size: 12.5px; color: var(--text-muted); margin: 0 0 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb li { display: flex; gap: 6px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ============ Toolbar ============ */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 220px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); }
#searchInput, #providerFilter, #timeFilter {
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
#searchInput { width: 100%; padding-left: 36px; }
#searchInput:focus, #providerFilter:focus, #timeFilter:focus { border-color: var(--page-accent); }
.result-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* ============ Liste (tablo) görünümü ============ */
.list-wrap {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
  text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); padding: 12px 16px; border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table .col-tarih { width: 150px; }
.data-table .col-bolge { width: 220px; }

.list-row { border-left: 3px solid var(--row-accent, var(--page-accent)); transition: background .15s ease; }
.list-row:not(:last-child) td { border-bottom: 1px solid var(--border); }
.list-row:hover { background: var(--bg-soft); }
.list-row td { padding: 12px 16px; vertical-align: top; font-size: 13.5px; }

.bolge-line { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.bolge-name { font-weight: 650; }

.col-tarih { color: var(--text-muted); white-space: nowrap; }

.row-desc { margin: 0; color: var(--text); }


@media (max-width: 720px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .list-row, .list-row td { display: block; width: 100%; }
  .list-row { border-left: none; border-top: 3px solid var(--row-accent, var(--page-accent)); padding: 10px 0; }
  .list-row td { padding: 4px 16px; border-bottom: none !important; }
  .list-row td::before {
    content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 6px;
  }
  .list-row td.col-bolge::before { display: none; }
}

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px dashed var(--border); border-radius: 14px;
}

/* ============ Dashboard (index.php) ============ */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 30px; }
.provider-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow); border-top: 4px solid var(--accent-c);
  display: flex; flex-direction: column; gap: 10px;
}
.provider-card:hover { box-shadow: var(--shadow-lg); }
.provider-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.provider-card h3 { margin: 0; line-height: 0; height: 40px; display: flex; align-items: center; }
.provider-card .updated { font-size: 12px; color: var(--text-muted); }
.provider-card .count { font-size: 28px; font-weight: 800; }
.provider-card .count small { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.provider-card .share-bar { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.provider-card .share-fill { height: 100%; background: var(--accent-c); border-radius: 999px; transition: width .4s ease; }
.provider-card a.btn {
  margin-top: auto; text-align: center; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); color: var(--text);
}
.provider-card a.btn:hover { background: var(--accent-c); color: #fff; }

.section-title { display: flex; align-items: center; gap: 10px; margin: 10px 0 16px; font-size: 16px; }
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--border); }

/* ============ Footer ============ */
.site-footer {
  margin-top: 50px; border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 40px 20px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
}
.footer-brand .brand { font-size: 15px; margin-bottom: 10px; display: inline-flex; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; max-width: 46ch; }
.footer-col .footer-title { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13.5px; color: var(--text); }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  max-width: 1440px; margin: 0 auto; padding: 18px 20px 26px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; text-align: center;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: flex-start; }

  /* 3 istatistik kutusu (Toplam kayıt / Bölge / Yaklaşan) dar ekranda 2+1
     kırılıp düzensiz durmasın diye tam genişlikte, eşit 3 sütunlu tek sıra. */
  .hero-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-pill { min-width: 0; padding: 10px 6px; }
  .stat-pill b { font-size: 18px; }
  .stat-pill span { font-size: 10.5px; }

  /* Nav kendi içinde dar bir sütunda kırılıp logo/tema butonuyla üst üste
     binmesin diye: 1. satır logo + tema butonu, 2. satır tam genişlikte
     yatay kaydırılabilir nav şeridi. */
  .topbar-inner { flex-wrap: wrap; row-gap: 8px; }
  .brand { order: 1; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .theme-toggle { order: 2; }
  .nav {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex-shrink: 0; }
}

/* ============ Giriş animasyonları ============ */
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero, .widget, .provider-card, .list-wrap { animation: fadeSlideIn .35s ease both; }
.provider-grid .provider-card:nth-child(2) { animation-delay: .04s; }
.provider-grid .provider-card:nth-child(3) { animation-delay: .08s; }
.provider-grid .provider-card:nth-child(4) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .hero, .widget, .provider-card, .list-wrap { animation: none; }
}

/* ============ İl seçici ============ */
.il-secici {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 20px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.il-secici label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.il-secici-row { display: flex; gap: 10px; }
.il-secici select {
  flex: 1; min-width: 0; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font-size: 15px;
}
.il-secici select:focus { border-color: var(--page-accent); }
.il-secici button {
  background: var(--page-accent); color: #fff; border: 0; border-radius: 10px;
  padding: 0 22px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.il-secici button:hover { filter: brightness(1.08); }

/* ============ Zaman durumu rozetleri (Devam ediyor / Yaklaşan / Sona erdi) ============ */
.zaman-badge {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 1px 8px;
  border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: middle;
}
.zaman-aktif    { background: var(--danger-bg);  color: var(--danger-text);  border-color: var(--danger-border); }
.zaman-yaklasan { background: var(--info-bg);    color: var(--info-text);    border-color: var(--info-border); }
.zaman-bitti    { background: var(--neutral-bg); color: var(--neutral-text); border-color: var(--neutral-border); }

.data-table .col-durum { width: 130px; }
.list-row[data-zaman="bitti"] td { color: var(--text-muted); }
a.bolge-name:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.provider-card-zaman { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ İl sayfası: ISS kartları ============ */
.il-provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; }
.il-provider-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-left: 4px solid var(--accent-c);
  border-radius: 12px; box-shadow: var(--shadow);
}
.il-provider-card:hover { border-color: var(--accent-c); }
.il-provider-card.is-current { background: color-mix(in srgb, var(--accent-c) 10%, var(--bg-elevated)); }
.il-provider-text { display: flex; flex-direction: column; min-width: 0; }
.il-provider-text b { font-size: 13.5px; }
.il-provider-text small { font-size: 12px; color: var(--text-muted); }

.il-chip.is-empty { color: var(--text-muted); }

/* ============ Türkiye haritası (sıralı tek renk skala: 0 = nötr, 1-4 = açık -> koyu mavi) ============ */
:root {
  --map-0: #e6e9f0; --map-1: #86b6ef; --map-2: #3987e5; --map-3: #1c5cab; --map-4: #0d366b;
}
/* Koyu temada yoğunluk arttıkça renk açılır (koyu zeminde öne çıkan = daha açık) */
:root[data-theme="dark"] {
  --map-0: #262b39; --map-1: #184f95; --map-2: #2a78d6; --map-3: #5598e7; --map-4: #9ec5f4;
}
.tr-map { position: relative; margin: 0 0 18px; }
.tr-map-svg { width: 100%; max-width: 1000px; height: auto; display: block; margin: 0 auto; }
.tr-il path {
  stroke: var(--bg-elevated); stroke-width: .8; stroke-linejoin: round;
  transition: fill .15s ease;
}
.tr-il:hover path, .tr-il:focus-visible path { stroke: var(--text); stroke-width: 1.6; }
.tr-il:focus { outline: none; }
.tr-map .lvl-0 { fill: var(--map-0); background: var(--map-0); }
.tr-map .lvl-1 { fill: var(--map-1); background: var(--map-1); }
.tr-map .lvl-2 { fill: var(--map-2); background: var(--map-2); }
.tr-map .lvl-3 { fill: var(--map-3); background: var(--map-3); }
.tr-map .lvl-4 { fill: var(--map-4); background: var(--map-4); }

.tr-map-tooltip {
  position: absolute; z-index: 5; pointer-events: none; max-width: 260px;
  background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 10px; padding: 8px 11px; font-size: 12.5px; color: var(--text);
}
.tr-map-tooltip b { display: block; font-size: 13.5px; }
.tr-map-tooltip small { display: block; color: var(--text-muted); margin-top: 2px; }

.tr-map-legend {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  margin-top: 10px; font-size: 12px; color: var(--text-muted);
}
.tr-map-legend-title { font-weight: 600; }
.tr-map-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.tr-map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.tr-map-legend .lvl-0 { box-shadow: inset 0 0 0 1px var(--border); }

@media (max-width: 640px) {
  .il-secici-row { flex-direction: column; }
  .il-secici button { padding: 11px; }
  .tr-il path { stroke-width: 1.2; }
}

/* Yapışkan üst menü, #iller gibi çapa linklerinde başlığı örtmesin */
[id] { scroll-margin-top: 90px; }

/* ============ Erişilebilirlik ============ */
/* Ekranda görünmeyen, ekran okuyucuların okuduğu metin */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* "İçeriğe geç" bağlantısı: sadece klavyeyle odaklanınca görünür */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bg-elevated); color: var(--text); border: 2px solid var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Klavye odağı her zaman net görünsün (fare tıklamasında çıkmaz) */
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 6px; }
.il-chip:focus-visible, .nav a:focus-visible { outline-offset: 1px; }

/* Metin içindeki linkler renk dışında alt çizgiyle de ayırt edilsin */
.intro-text a, .empty-state a, .il-note a {
  color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px;
}

/* Semantik listeler (ul/ol) görsel olarak eski düzeninde kalsın */
.il-chip-list { list-style: none; margin: 0; padding: 0; }
.il-chip-list > li { display: flex; }

.il-note { margin: 0 0 12px; font-size: 12.5px; color: var(--text-muted); }

/* Kaydı olmayan iller katlanabilir (JS butonu ekler, JS yoksa hepsi görünür) */
.il-chip-list.is-collapsed > li.is-empty { display: none; }
.il-toggle {
  margin-top: 12px; background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.il-toggle:hover { border-color: var(--page-accent); color: var(--accent-ink); }

.about { margin-top: 36px; }


/* Hareket hassasiyeti olan kullanıcılar için tüm animasyon ve geçişleri kapat */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Windows yüksek kontrast modu: rozet ve kartların sınırları kaybolmasın */
@media (forced-colors: active) {
  .zaman-badge, .iss-tag, .il-chip, .stat-pill, .widget, .list-wrap { border: 1px solid CanvasText; }
  .share-fill { background: Highlight !important; }
}
.not-found-title { font-size: 22px; margin: 0 0 16px; }

/* Kayıt tablosu ile altındaki bloklar (il listesi, ISS kartları, "Bu site hakkında") arasında nefes payı */
.records { margin-bottom: 36px; }
.records #noResults { margin-top: 12px; }

/* Türk Telekom gibi paylaşımlı altyapılar için bilgilendirme notu */
.altyapi-not {
  margin: -8px 0 22px; padding: 12px 16px; max-width: 90ch; font-size: 13.5px; line-height: 1.6;
  background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-border); border-radius: 12px;
}

/* ============ Site ikonu (üst menü / footer) ============ */
.brand-mark { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: block; }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; }

/* ============ ISS yazı logoları (assets/img/logos/<iss>-logo.*) ============ */
.iss-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.iss-logo { --logo-h: 30px; --logo-k: 1; }
.iss-logo img { display: block; width: auto; object-fit: contain; height: calc(var(--logo-h) * var(--logo-k)); max-width: calc(var(--logo-h) * 4.4); }
/* Logoların oranları çok farklı (kare "Kablo" ile uzun "turknet"); görsel ağırlıklarını eşitle */
.iss-logo--kablonet { --logo-k: 1.3; }
.iss-logo--turknet { --logo-k: .78; }
.iss-logo--turktelekom { --logo-k: 1.28; }
.iss-logo--sm { --logo-h: 22px; }
.iss-logo--md { --logo-h: 30px; }
.iss-logo--lg { background: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.iss-logo--lg { --logo-h: 36px; }
/* Koyu temada logolar koyu renkli: arkalarına beyaz zemin */
:root[data-theme="dark"] .iss-logo--sm,
:root[data-theme="dark"] .iss-logo--md { background: #fff; padding: 5px 8px; border-radius: 8px; }
/* Logo dosyası yoksa ad yazı olarak */
.iss-logo--text { font-weight: 800; color: var(--text); line-height: 1.2; }
.iss-logo--md.iss-logo--text { font-size: 18px; }
.iss-logo--lg.iss-logo--text { font-size: 20px; }

/* İl sayfası ISS kartları: logo solda sabit genişlikte */
.il-provider-card .iss-logo { width: 92px; justify-content: center; }
.il-provider-card.is-empty .iss-logo { filter: grayscale(1); opacity: .55; }

/* Tablo satırında ISS adı: renk noktası + ad (küçük logolar okunmuyordu) */
.iss-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.iss-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tag-accent); flex-shrink: 0;
}
/* ============ Bu Site Hakkında (ana sayfa, kart) ============ */
.about.widget { margin-top: 8px; padding: 26px 28px; }
.about-title { margin: 0 0 10px; font-size: 18px; }
.about-lead { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: var(--text); max-width: 95ch; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-item {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.about-item h3 { margin: 0 0 8px; font-size: 14.5px; }
.about-item p, .about-item li { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }
.about-item ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.about-item b { color: var(--text); }
.about-note {
  margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.6; color: var(--text-muted);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .about.widget { padding: 20px 18px; } }

/* ============ 404 sayfası ============ */
.not-found { text-align: center; padding: 40px 24px 32px; margin-bottom: 22px; }
.not-found-code {
  font-size: clamp(64px, 12vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(135deg, #3b82f6, #1e40af); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found .not-found-title { margin: 10px 0 8px; font-size: 24px; }
.not-found-text { margin: 0 auto 22px; max-width: 52ch; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.not-found-home {
  display: inline-block; background: var(--page-accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 24px; border-radius: 10px;
}
.not-found-home:hover { filter: brightness(1.08); }
.not-found-sub { margin: 26px 0 12px; font-size: 13px; color: var(--text-muted); }
.not-found-iss { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.not-found-iss a {
  display: flex; align-items: center; justify-content: center; min-width: 132px; height: 52px; padding: 0 16px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
}
.not-found-iss a:hover { border-color: var(--page-accent); box-shadow: var(--shadow); }
