/* ============================================================
 * BilgiBizde.net — Tasarım Sistemi
 * ------------------------------------------------------------
 * Dosya : demo/assets/css/site.css
 * Amaç  : Haber + blog sitesinin tüm görsel dili.
 *
 * TOKEN NOTU:
 *   Aşağıdaki --brand / --accent / --radius / --font-* değerleri
 *   panelin pnl_settings tablosundaki karşılıklarına birebir
 *   bağlanmak üzere tasarlandı:
 *       site_color   -> --brand
 *       site_color2  -> --brand-2
 *       site_hl      -> --accent
 *       site_radius  -> --radius
 *       site_font    -> --font-body
 *       site_width   -> --shell
 *   PHP'ye geçtiğimizde <html style="--brand:...;"> ile basılacak,
 *   bu dosyada tek satır değişmeyecek.
 * ============================================================ */

/* ─────────────────────────────────────────────────────────────
   1) TOKENLAR
   ───────────────────────────────────────────────────────────── */
:root {
  /* Koyu tema varsayılan — form denetimleri ve kaydırma çubukları da uysun */
  color-scheme: dark;

  /* Marka */
  --brand:        #4F7CFF;
  --brand-2:      #9B5CFF;
  --accent:       #00E0B8;
  --hot:          #FF4D6D;

  --brand-grad:   linear-gradient(115deg, var(--brand) 0%, var(--brand-2) 55%, var(--accent) 100%);

  /* Yüzeyler — koyu tema varsayılan */
  --bg:           #070910;
  --bg-2:         #0A0D16;
  --surface:      #0E1220;
  --surface-2:    #151A2B;
  --surface-3:    #1C2238;
  --border:       rgba(255, 255, 255, 0.08);
  --border-str:   rgba(255, 255, 255, 0.14);

  /* Metin */
  --fg:           #E9EDF7;
  --fg-soft:      #B6BFD4;
  --fg-muted:     #7D8699;
  --fg-faint:     #5A6275;

  /* Tipografi */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  /* Geometri */
  --radius:       18px;
  --radius-sm:    10px;
  --radius-lg:    26px;
  --shell:        1280px;
  --gap:          clamp(16px, 2vw, 28px);

  /* Gölge — koyu temada ışık sızması, açık temada gerçek gölge */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:       0 18px 40px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg:    0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --glow:         0 0 0 1px rgba(79, 124, 255, 0.35), 0 20px 60px -24px rgba(79, 124, 255, 0.45);

  /* Hareket */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);

  /* Kategori renkleri — panelde kategori başına renk alanı
     açıldığında bunlar oradan gelecek. */
  --c-teknoloji:  #4F7CFF;
  --c-bilim:      #00D3A7;
  --c-bilisim:    #9B5CFF;
  --c-yapayzeka:  #FF8A3D;
  --c-mobil:      #F43F7F;
  --c-oyun:       #22D3EE;
  --c-uzay:       #6366F1;
}

/* ── AÇIK TEMA ────────────────────────────────────────────────
   İki blok, bilerek aynı değerlerle:
     1) @media (prefers-color-scheme: light) — JS daha çalışmadan,
        ilk boyamada doğru tema. Koyu temayı AÇIKÇA seçmiş
        ziyaretçide devreye girmesin diye :not([data-theme="dark"]).
     2) :root[data-theme="light"] — tema düğmesiyle yapılan seçim,
        sistem koyu olsa bile kazanır.
   Biri olmazsa ya açılışta renk sıçraması olur ya da düğme
   sistem tercihini yenemez.
   ──────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg:         #FFFFFF;
    --bg-2:       #F4F7FD;
    --surface:    #FFFFFF;
    --surface-2:  #F4F7FD;
    --surface-3:  #E9EEF9;
    --border:     rgba(11, 16, 32, 0.10);
    --border-str: rgba(11, 16, 32, 0.18);

    --fg:         #0B1020;
    --fg-soft:    #39425A;
    --fg-muted:   #616B82;
    --fg-faint:   #8A93A6;

    --shadow-sm:  0 1px 2px rgba(11, 16, 32, 0.06);
    --shadow:     0 14px 34px -18px rgba(11, 16, 32, 0.22);
    --shadow-lg:  0 40px 70px -34px rgba(11, 16, 32, 0.28);
  }
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg:           #FFFFFF;
  --bg-2:         #F4F7FD;
  --surface:      #FFFFFF;
  --surface-2:    #F4F7FD;
  --surface-3:    #E9EEF9;
  --border:       rgba(11, 16, 32, 0.10);
  --border-str:   rgba(11, 16, 32, 0.18);

  --fg:           #0B1020;
  --fg-soft:      #39425A;
  --fg-muted:     #616B82;
  --fg-faint:     #8A93A6;

  --shadow-sm:    0 1px 2px rgba(11, 16, 32, 0.06);
  --shadow:       0 14px 34px -18px rgba(11, 16, 32, 0.22);
  --shadow-lg:    0 40px 70px -34px rgba(11, 16, 32, 0.28);
}

/* Koyu tema AÇIKÇA seçildiyse: sistem açık olsa da koyu kalsın */
:root[data-theme="dark"] { color-scheme: dark; }

/* ─────────────────────────────────────────────────────────────
   1b) theme.css KÖPRÜSÜ
   ------------------------------------------------------------
   assets/theme.css (jenerik blok sistemi, her sitede aynı) kendi
   --site-* değişkenlerini bekler. Bunları yukarıdaki tokenlara
   bağlıyoruz; böylece panelden eklenen bloklar da aynı paleti ve
   koyu/açık tema geçişini otomatik izler. Sabit değer YAZILMAZ —
   yazılsaydı bloklar koyu temada beyaz zeminde kalırdı.
   ───────────────────────────────────────────────────────────── */
:root {
  --site-max:       var(--shell);
  --site-gap:       24px;
  --site-fg:        var(--fg);
  --site-bg:        var(--bg);
  --site-muted:     var(--fg-muted);
  --site-border:    var(--border);
  --site-accent:    var(--brand);
  --site-accent-fg: #ffffff;
  --site-accent2:   var(--brand-2);
  --site-hl:        var(--accent);
  --site-radius:    var(--radius);
  --site-font:      var(--font-body);
  --post-max:       46rem;
}

/* theme.css .site-main'e kendi dolgusunu veriyor (padding 32/48,
   min-height 50vh). Bu tasarımda boşluğu bölümler (.section)
   yönetiyor; manşetin üstünde istenmeyen boşluk oluşmasın. */
.site-main { padding: 0; min-height: 0; }

/* ─────────────────────────────────────────────────────────────
   2) TEMEL
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

/* Klavye odağı — fare tıklamasında görünmez, Tab'da belirgin */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--brand); color: #fff; }

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
  border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--fg-faint); }

/* Ekran okuyucu */
.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;
}

/* İçeriğe atla */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--brand); color: #fff;
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ─────────────────────────────────────────────────────────────
   3) DÜZEN YARDIMCILARI
   ───────────────────────────────────────────────────────────── */
/* Kenar boşluğu, çentikli/sistem çubuklu ekranlarda da içeriği
   kenardan uzak tutar: normal boşluk ile güvenli alan payından
   hangisi büyükse o uygulanır. */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-left:  max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(44px, 6vw, 80px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(22px, 2.6vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Başlık önündeki renkli çubuk */
.section-title::before {
  content: "";
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: var(--tone, var(--brand-grad));
  flex: none;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 15px;
  margin-top: 6px;
  max-width: 56ch;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--fg-soft);
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.link-more:hover {
  color: var(--fg);
  border-color: var(--border-str);
  transform: translateX(3px);
}
.link-more svg { transition: transform 0.25s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────────
   4) ÜST BANT + BAŞLIK (HEADER)
   ───────────────────────────────────────────────────────────── */

/* Okuma ilerleme çizgisi — makale sayfasında dolar */
.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 3px; width: 100%;
  z-index: 120;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--brand-grad);
  pointer-events: none;
}

.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 38px;
}
.topbar__date { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__links a { transition: color 0.2s var(--ease); }
.topbar__links a:hover { color: var(--fg); }

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow); }

/* backdrop-filter / color-mix desteklenmeyen tarayıcı için düz zemin */
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.header__row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: 68px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(79, 124, 255, 0.7);
  flex: none;
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.45), transparent 55%);
}
.brand__mark svg { position: relative; z-index: 1; }
.brand__text { white-space: nowrap; }
.brand__text b { color: var(--fg); }
.brand__text span {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ana gezinti */
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-soft);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--fg); background: var(--surface-2); }
.nav__link.is-active { color: var(--fg); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2.5px; border-radius: 999px;
  background: var(--tone, var(--brand-grad));
}

.header__tools { display: flex; align-items: center; gap: 8px; flex: none; }

/* İkon düğmesi */
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--fg-soft);
  transition: all 0.22s var(--ease);
}
.icon-btn:hover {
  color: var(--fg);
  border-color: var(--border-str);
  background: var(--surface-2);
  transform: translateY(-1px);
}

/* Arama tetikleyici — masaüstünde kısayol ipucu gösterir */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px 0 14px;
  min-width: 200px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 14.5px;
  transition: all 0.22s var(--ease);
}
.search-trigger:hover {
  border-color: var(--border-str);
  background: var(--surface-2);
  color: var(--fg-soft);
}
.search-trigger__label { margin-right: auto; }
.kbd {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 7px;
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 650;
  color: var(--fg-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
}

/* Tema anahtarı — iki ikon üst üste, aktif olan görünür */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg {
  position: absolute;
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.theme-toggle .ico-sun  { transform: translateY(0)     rotate(0deg);   opacity: 1; }
.theme-toggle .ico-moon { transform: translateY(130%)  rotate(-80deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .ico-sun  { transform: translateY(-130%) rotate(80deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .ico-moon { transform: translateY(0)     rotate(0deg);  opacity: 1; }

/* Mobil menü düğmesi */
.burger { display: none; }

/* ─────────────────────────────────────────────────────────────
   5) SON DAKİKA ŞERİDİ
   ───────────────────────────────────────────────────────────── */
.ticker {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  margin-top: var(--gap);
}
.ticker__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--hot);
  color: #fff;
  font-weight: 750;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}
.ticker__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}

.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker__track {
  display: flex;
  gap: 48px;
  padding: 11px 20px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 550;
  color: var(--fg-soft);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.ticker__item:hover { color: var(--brand); }
.ticker__item time { color: var(--fg-faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────────
   6) ETİKETLER / PİLLER
   ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--tone, var(--brand)) 16%, transparent);
  color: var(--tone, var(--brand));
  border: 1px solid color-mix(in srgb, var(--tone, var(--brand)) 32%, transparent);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: all 0.2s var(--ease);
}
a.pill:hover {
  background: var(--tone, var(--brand));
  color: #fff;
  border-color: var(--tone, var(--brand));
}

/* Görsel üzerindeki pill — her zemin üstünde okunur kalsın */
.pill--onart {
  background: rgba(7, 9, 16, 0.62);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pill--onart::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tone, var(--brand));
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.22s var(--ease);
}
.tag::before { content: "#"; color: var(--fg-faint); margin-right: 2px; }
.tag:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* Üst-veri satırı */
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-muted);
}
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta__sep { color: var(--fg-faint); }
.meta time { font-variant-numeric: tabular-nums; }

.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff;
  font-size: 11px; font-weight: 750;
  font-family: var(--font-display);
  flex: none;
}
.avatar--lg { width: 48px; height: 48px; font-size: 17px; }

/* ─────────────────────────────────────────────────────────────
   7) GÖRSEL ALANI ("art")
   ------------------------------------------------------------
   Demoda gerçek fotoğraf yok. Her kart kategorisine göre
   üretilmiş soyut bir kapak alıyor: katmanlı radyal gradyan +
   nokta ızgara + yumuşak küre. Panele bağlandığında bu kutu
   <img> ile değişecek, ölçüler aynı kalacak.
   ───────────────────────────────────────────────────────────── */
/* KATMAN SIRASI — negatif z-index KULLANILMAZ.
   ::before'a -2 verildiğinde katman, .art'ın kendi background-color'ının
   ARKASINA düşüyor ve gradyan hiç görünmüyordu: açık temada manşet
   açık gri kalıyor, üzerindeki beyaz başlık okunmuyordu. Katmanlar
   artık 0'dan yukarı sıralanıyor:
       0 gradyan  ·  1 doku  ·  2 okuma perdesi  ·  3 rozet / sıra no
   background-color yalnızca gradyan boyanana kadarki yedek zemindir. */
.art {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}
.art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 95% at 12% 8%,
      color-mix(in srgb, var(--tone, var(--brand)) 62%, transparent) 0%, transparent 58%),
    radial-gradient(90% 85% at 92% 88%,
      color-mix(in srgb, var(--brand-2) 50%, transparent) 0%, transparent 62%),
    linear-gradient(160deg, #0B1020 0%, #161C30 100%);
  z-index: 0;
}
/* Nokta ızgara + yumuşak ışık küresi */
.art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.3) 0%, transparent 34%),
    radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1.2px);
  background-size: auto, 17px 17px;
  mix-blend-mode: soft-light;
  opacity: 0.85;
  z-index: 1;
}
.art__ratio { display: block; width: 100%; height: auto; }

/* Gerçek fotoğraf varsa: görsel gradyanın üstünde, doku kaplaması
   kapalı. Doku (soft-light nokta ızgara) yalnızca görselsiz, üretilmiş
   kapaklar için tasarlandı; fotoğrafın üstünde onu soluklaştırıyor.
   :has() desteklemeyen eski tarayıcıda yalnızca hafif bir doku görünür —
   düzen bozulmaz. */
.art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art:has(> img)::after { opacity: 0; }

/* Kart görseli yakınlaşması — hem üretilmiş kapak hem fotoğraf */
.art--zoom::before,
.art--zoom > img { transition: transform 0.8s var(--ease-out); }
.card:hover .art--zoom::before,
.card:hover .art--zoom > img,
.feature:hover .art--zoom::before,
.feature:hover .art--zoom > img,
.card-h:hover .art--zoom::before,
.card-h:hover .art--zoom > img { transform: scale(1.07); }

/* Görsel üstü okunabilirlik perdesi */
.art__scrim {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(to top,
    rgba(5, 7, 13, 0.94) 0%,
    rgba(5, 7, 13, 0.72) 32%,
    rgba(5, 7, 13, 0.18) 62%,
    transparent 100%);
}

/* ─────────────────────────────────────────────────────────────
   8) MANŞET (HERO)
   ───────────────────────────────────────────────────────────── */
.hero { padding-top: var(--gap); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}

/* Büyük manşet */
.feature {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s var(--ease-out), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-str); }
.feature .art { position: absolute; inset: 0; }

.feature__body {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  gap: 14px;
  color: #fff;
}
.feature__title {
  font-size: clamp(27px, 3.9vw, 48px);
  color: #fff;
  max-width: 22ch;
}
.feature__excerpt {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.3vw, 17.5px);
  max-width: 54ch;
  margin: 0;
}
.feature .meta { color: rgba(255, 255, 255, 0.68); }
.feature .meta__sep { color: rgba(255, 255, 255, 0.34); }

/* Manşet yanındaki ikincil haberler */
.hero__side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
  min-width: 0;
}

/* Yatay küçük kart */
.card-h {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.3s var(--ease);
}
.card-h:hover {
  background: var(--surface-2);
  border-color: var(--border-str);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-h__art {
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-h__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  margin: 8px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--ease);
}
.card-h:hover .card-h__title { color: var(--brand); }

/* ─────────────────────────────────────────────────────────────
   9) KART (dikey)
   ───────────────────────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out),
              border-color 0.3s var(--ease),
              box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-str);
  box-shadow: var(--shadow);
}
.card__art { position: relative; aspect-ratio: 16 / 10; }
.card__art .pill { position: absolute; top: 12px; left: 12px; z-index: 3; }

/* Kaydet düğmesi — görselin sağ üstünde, hover'da belirir */
.card__save {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 9, 16, 0.6);
  color: #fff;
  opacity: 0;
  transform: translateY(-6px);
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}
.card:hover .card__save,
.card__save:focus-visible { opacity: 1; transform: translateY(0); }
.card__save:hover { background: var(--brand); border-color: var(--brand); }
.card__save.is-on { opacity: 1; transform: none; background: var(--brand); border-color: var(--brand); }
.card__save.is-on svg { fill: currentColor; }

.card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__title {
  font-size: 18.5px;
  font-weight: 750;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s var(--ease);
}
.card:hover .card__title { color: var(--brand); }
.card__excerpt {
  color: var(--fg-muted);
  font-size: 14.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Kart ızgarası */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ─────────────────────────────────────────────────────────────
   10) GÜNDEM RAYI (yatay kaydırma)
   ───────────────────────────────────────────────────────────── */
.rail-wrap { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(278px, 1fr);
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  /* Kart gölgeleri kırpılmasın */
  margin-inline: calc(var(--gap) * -0.5);
  padding-inline: calc(var(--gap) * 0.5);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.rail-nav { display: flex; gap: 8px; }
.rail-nav .icon-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

/* Sıra numaralı kart (Gündem)
   AYNI pseudo-element .art::after ile paylaşılır; oradan gelen doku
   arka planı, soft-light karışımı, saydamlık ve inset:0 burada
   AÇIKÇA sıfırlanmalı — yoksa rakam tüm görseli kaplayıp solgun çıkar. */
.card--ranked .card__art::after {
  content: attr(data-rank);
  position: absolute;
  inset: auto auto -14px 10px;
  background: none;
  mix-blend-mode: normal;
  opacity: 1;
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   11) ANA İÇERİK + YAN KOLON
   ───────────────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: var(--gap);
  min-width: 0;
}

.widget {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}
.widget__title {
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.widget__title svg { color: var(--brand); flex: none; }

/* En çok okunanlar — numaralı liste */
.toplist { display: grid; gap: 4px; }
.toplist__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: baseline;
  padding: 11px 10px;
  margin-inline: -10px;
  border-radius: var(--radius-sm);
  transition: background 0.22s var(--ease);
}
.toplist__item:hover { background: var(--surface-2); }
.toplist__num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.toplist__title {
  font-size: 14.8px;
  font-weight: 620;
  line-height: 1.42;
  margin-bottom: 5px;
  transition: color 0.2s var(--ease);
}
.toplist__item:hover .toplist__title { color: var(--brand); }

/* Yan kolondaki bülten kutusu */
.widget--cta {
  background:
    radial-gradient(130% 110% at 0% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%),
    var(--surface);
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}

/* ─────────────────────────────────────────────────────────────
   12) KATEGORİ ŞERİDİ (ana sayfada bölüm)
   ───────────────────────────────────────────────────────────── */
.cat-block {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap);
}
.cat-block__list { display: grid; gap: 12px; align-content: start; }

/* ─────────────────────────────────────────────────────────────
   13) BÜLTEN BANDI
   ───────────────────────────────────────────────────────────── */
.newsletter {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  background:
    radial-gradient(90% 140% at 8% 0%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 58%),
    radial-gradient(80% 130% at 100% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 56%),
    var(--surface);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
/* Arkada yavaşça dönen ışık — dikkat çeker, okumayı bozmaz */
.newsletter::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  top: -320px; right: -180px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent, color-mix(in srgb, var(--brand) 42%, transparent), transparent 62%);
  filter: blur(42px);
  opacity: 0.5;
  animation: spin 26s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.newsletter__title { font-size: clamp(23px, 2.9vw, 34px); position: relative; }
.newsletter__text { color: var(--fg-soft); margin: 12px 0 0; position: relative; max-width: 46ch; }

.form-row {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.input {
  flex: 1 1 200px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-str);
  border-radius: 13px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.input::placeholder { color: var(--fg-faint); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 13px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(79, 124, 255, 0.75);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(79, 124, 255, 0.85); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-str);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: var(--shadow-sm); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn--block { width: 100%; }

.form-note { font-size: 12.5px; color: var(--fg-muted); margin: 12px 0 0; position: relative; }

/* Form geri bildirimi */
.form-msg {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 620;
  color: var(--accent);
  display: none;
  align-items: center;
  gap: 8px;
  position: relative;
}
.form-msg.is-on { display: flex; animation: pop 0.4s var(--ease-out); }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────────
   14) ARAMA PALETİ (Ctrl/Cmd + K)
   ───────────────────────────────────────────────────────────── */
.palette {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: start center;
  padding: clamp(60px, 12vh, 140px) 16px 16px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0.26s;
}
.palette.is-open { opacity: 1; visibility: visible; }

.palette__box {
  width: 100%;
  max-width: 660px;
  border: 1px solid var(--border-str);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-16px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.26s var(--ease);
}
.palette.is-open .palette__box { transform: none; opacity: 1; }

.palette__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
}
.palette__head svg { color: var(--fg-muted); flex: none; }
.palette__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: var(--fg);
  font-size: 17px;
  font-family: var(--font-body);
}
.palette__input:focus { outline: none; }
.palette__input::placeholder { color: var(--fg-faint); }

.palette__results {
  max-height: min(56vh, 460px);
  overflow-y: auto;
  padding: 8px;
}
.palette__group {
  padding: 12px 12px 6px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.palette__item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  text-align: left;
  transition: background 0.16s var(--ease);
}
.palette__item:hover,
.palette__item.is-sel { background: var(--surface-2); }
.palette__item.is-sel { box-shadow: inset 0 0 0 1px var(--border-str); }
.palette__ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--tone, var(--brand)) 18%, transparent);
  color: var(--tone, var(--brand));
}
.palette__txt { min-width: 0; flex: 1; }
.palette__name {
  font-size: 14.8px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette__name mark {
  background: color-mix(in srgb, var(--brand) 32%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.palette__sub { font-size: 12.5px; color: var(--fg-muted); }

.palette__empty { padding: 40px 20px; text-align: center; color: var(--fg-muted); }
.palette__foot {
  display: flex;
  gap: 18px;
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--fg-muted);
}
.palette__foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ─────────────────────────────────────────────────────────────
   15) MOBİL ÇEKMECE
   ───────────────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer__veil {
  position: absolute; inset: 0;
  background: rgba(4, 6, 12, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.drawer__nav { display: grid; gap: 4px; }
.drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 16px;
  color: var(--fg-soft);
  transition: all 0.2s var(--ease);
}
.drawer__nav a::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tone, var(--brand));
  margin-right: 12px;
  flex: none;
}
.drawer__nav a > span { margin-right: auto; }
.drawer__nav a:hover { background: var(--surface-2); color: var(--fg); }
.drawer__social { display: flex; gap: 10px; margin-top: auto; }

/* ─────────────────────────────────────────────────────────────
   16) MAKALE SAYFASI
   ───────────────────────────────────────────────────────────── */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--fg-muted);
  padding-block: 20px 0;
}
.crumbs a:hover { color: var(--brand); }
.crumbs svg { opacity: 0.5; flex: none; }

.article-head { padding-block: 24px 0; max-width: 52rem; }
.article-head h1 {
  font-size: clamp(29px, 4.2vw, 50px);
  margin: 16px 0 18px;
}
.article-lede {
  font-size: clamp(16.5px, 1.6vw, 20px);
  line-height: 1.62;
  color: var(--fg-soft);
  margin: 0 0 24px;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-block: 1px solid var(--border);
}
.byline__who { display: flex; align-items: center; gap: 11px; }
.byline__name { font-weight: 700; font-size: 14.8px; }
.byline__role { font-size: 12.8px; color: var(--fg-muted); }
.byline__stats { margin-left: auto; display: flex; gap: 16px; }

.article-art {
  margin-top: var(--gap);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--border);
}
.article-caption {
  font-size: 13px;
  color: var(--fg-muted);
  padding: 12px 4px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.article-caption svg { flex: none; margin-top: 3px; opacity: 0.6; }

.article-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 300px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 48px);
}

/* Sol: dikey paylaşım çubuğu */
.share-rail {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.share-rail__label {
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  writing-mode: vertical-rl;
  margin-bottom: 4px;
}
.share-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--fg-soft);
  transition: all 0.24s var(--ease);
}
.share-btn:hover {
  transform: translateY(-3px) scale(1.04);
  color: #fff;
  background: var(--sc, var(--brand));
  border-color: var(--sc, var(--brand));
}
.share-btn__count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}

/* Orta: yazı gövdesi */
.prose { font-size: 17.5px; line-height: 1.78; color: var(--fg-soft); max-width: 46rem; }
/* ÖZGÜLLÜK NOTU: sıfırlama `.prose p` ile yazılırsa (0,1,1)
   özgüllüğüyle alttaki (0,1,0) aralık kuralını ezer ve paragraflar
   birbirine yapışır. İkisi de `.prose > *` biçiminde yazılınca
   özgüllük eşitlenir, sonra gelen kural kazanır. */
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  font-size: clamp(22px, 2.4vw, 29px);
  color: var(--fg);
  margin-top: 2.2em;
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--fg);
  margin-top: 1.9em;
  scroll-margin-top: 100px;
}
.prose strong { color: var(--fg); font-weight: 700; }
.prose a {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1.5px solid color-mix(in srgb, var(--brand) 38%, transparent);
  transition: border-color 0.2s var(--ease);
}
.prose a:hover { border-bottom-color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 1.2em; }
.prose li + li { margin-top: 0.6em; }
.prose li::marker { color: var(--brand); font-weight: 700; }

.prose blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.52;
  color: var(--fg);
}
.prose blockquote footer {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-top: 12px;
}

.prose figure { margin: 2em 0; }
.prose figure .art { border-radius: var(--radius); aspect-ratio: 16/9; border: 1px solid var(--border); }
.prose figcaption { font-size: 13px; color: var(--fg-muted); padding-top: 10px; }

/* Yazı içi bilgi kutusu */
.callout {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  margin: 2em 0;
  border: 1px solid color-mix(in srgb, var(--tone, var(--accent)) 30%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tone, var(--accent)) 9%, var(--surface));
  font-size: 15.5px;
  line-height: 1.65;
}
.callout__ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tone, var(--accent)) 20%, transparent);
  color: var(--tone, var(--accent));
}
.callout b { display: block; color: var(--fg); margin-bottom: 4px; font-size: 15px; }

/* Sayı vurgusu */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 2em 0;
}
.stat {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 13.5px; color: var(--fg-muted); margin-top: 8px; }

/* Yazı sonu etiketleri */
.article-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2.6em;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-tags > b { font-size: 13.5px; color: var(--fg-muted); font-weight: 650; }

/* Yazar kutusu */
.author-box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.author-box .avatar { width: 64px; height: 64px; font-size: 22px; }
.author-box h3 { font-size: 17.5px; }
.author-box p { color: var(--fg-muted); font-size: 14.5px; margin: 7px 0 12px; }

/* Sağ: içindekiler */
.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--gap);
}
.toc__list { display: grid; gap: 2px; }
.toc__link {
  display: block;
  padding: 9px 14px;
  border-left: 2px solid var(--border);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.45;
  transition: all 0.22s var(--ease);
}
.toc__link:hover { color: var(--fg); border-left-color: var(--fg-faint); }
.toc__link.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  font-weight: 650;
}

/* Yorumlar */
.comments { max-width: 46rem; margin-top: clamp(40px, 5vw, 64px); }
.comment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.comment .avatar { width: 44px; height: 44px; font-size: 15px; }
.comment__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.comment__name { font-weight: 700; font-size: 14.8px; }
.comment__body { color: var(--fg-soft); font-size: 15px; margin: 0; }
.comment__acts { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; }
.comment__acts button {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: none; color: var(--fg-muted);
  padding: 0; transition: color 0.2s var(--ease);
}
.comment__acts button:hover { color: var(--brand); }
.comment--reply { margin-left: 58px; }

.comment-form { margin-top: 24px; display: grid; gap: 12px; }
.textarea {
  min-height: 118px;
  padding: 15px 18px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--font-body);
  border: 1px solid var(--border-str);
  border-radius: 13px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.textarea::placeholder { color: var(--fg-faint); }
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─────────────────────────────────────────────────────────────
   17) KATEGORİ / LİSTE SAYFASI
   ───────────────────────────────────────────────────────────── */
.cat-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: var(--gap);
  padding: clamp(30px, 4.5vw, 58px);
  background:
    radial-gradient(100% 160% at 0% 0%, color-mix(in srgb, var(--tone, var(--brand)) 34%, transparent), transparent 60%),
    radial-gradient(80% 140% at 100% 100%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 55%),
    var(--surface);
}
.cat-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.cat-hero h1 { font-size: clamp(30px, 4.4vw, 52px); position: relative; }
.cat-hero p { color: var(--fg-soft); max-width: 58ch; margin: 14px 0 0; position: relative; font-size: clamp(15px, 1.4vw, 17px); }
.cat-hero__stats { display: flex; gap: 26px; margin-top: 24px; position: relative; flex-wrap: wrap; }
.cat-hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cat-hero__stat span { font-size: 13px; color: var(--fg-muted); }

/* Sıralama / filtre çubuğu */
.filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.chip {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 620;
  transition: all 0.22s var(--ease);
}
.chip:hover { border-color: var(--border-str); color: var(--fg); }
.chip.is-on {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.filterbar__count { margin-left: auto; font-size: 13.5px; color: var(--fg-muted); }

/* Yükleme iskeleti */
.skeleton {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.skeleton__art { aspect-ratio: 16/10; background: var(--surface-2); }
.skeleton__body { padding: 18px; display: grid; gap: 10px; }
.skeleton__line { height: 13px; border-radius: 6px; background: var(--surface-2); }
.skeleton__line--sm { width: 42%; height: 10px; }
.skeleton [class^="skeleton__"] {
  background-image: linear-gradient(100deg,
    transparent 10%, color-mix(in srgb, var(--fg) 7%, transparent) 38%, transparent 66%);
  background-size: 220% 100%;
  animation: shimmer 1.3s var(--ease) infinite;
}
@keyframes shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -80% 0; }
}

/* Sayfalama */
.pager { display: flex; justify-content: center; gap: 7px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--fg-soft);
  font-weight: 620;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  transition: all 0.22s var(--ease);
}
.pager a:hover { border-color: var(--border-str); color: var(--fg); transform: translateY(-2px); }
.pager .is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .is-gap { border: none; background: none; }

/* ─────────────────────────────────────────────────────────────
   17b) 404
   index.php içindeki render404Body() bu sınıfları basar.
   ───────────────────────────────────────────────────────────── */
.err404 { text-align: center; max-width: 620px; margin-inline: auto; }
.err404__code {
  font-family: var(--font-display);
  font-size: clamp(76px, 16vw, 150px);
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.err404__title { font-size: clamp(22px, 3vw, 32px); }
.err404__sub { color: var(--fg-muted); margin: 12px 0 26px; }
.err404__search { justify-content: center; margin-bottom: 22px; }
.err404 .link-more { margin-top: 4px; }

/* ─────────────────────────────────────────────────────────────
   18) ALT BİLGİ
   ───────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.5vw, 56px);
  padding-block: clamp(40px, 5vw, 64px);
}
.footer__about { color: var(--fg-muted); font-size: 14.5px; margin: 16px 0 20px; max-width: 42ch; }
.footer__col h4 {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer__col a {
  color: var(--fg-soft);
  font-size: 14.5px;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer__col a:hover { color: var(--brand); padding-left: 4px; }

.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--fg-soft);
  transition: all 0.24s var(--ease);
}
.social:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--sc, var(--brand));
  border-color: var(--sc, var(--brand));
}

.footer__bar {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.footer__bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bar a:hover { color: var(--fg); }

/* Telif + geliştirici atfı. Dar ekranda tek satırda sıkışmasın diye
   ayraç ile birlikte doğal olarak sarılır. */
.footer__legal { line-height: 1.7; }
.footer__sep { color: var(--fg-faint); margin-inline: 8px; }
.footer__legal a {
  color: var(--fg-soft);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--fg-soft) 40%, transparent);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__legal a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* Yukarı çık */
.to-top {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border-str);
  background: var(--surface);
  color: var(--fg);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   19) KAYDIRMA İLE BELİRME
   ───────────────────────────────────────────────────────────── */
/* GÜVENLİK KURALI: içerik varsayılan olarak GÖRÜNÜR.
   Gizleme yalnızca <html class="js"> varken uygulanır; bu sınıfı
   sayfanın başındaki satır içi betik ekler. Betik yüklenmezse,
   hata verirse veya tarayıcı JS'i engellerse haberler olduğu gibi
   görünür — bir haber sitesinde içeriğin animasyona bağlı olması
   kabul edilemez. */
.reveal { opacity: 1; }

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────────
   20) UYARLAMALI DÜZEN
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: 60px minmax(0, 1fr); }
  .toc { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .search-trigger { min-width: 0; }
  .search-trigger__label, .search-trigger .kbd { display: none; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-h { grid-template-columns: minmax(0, 1fr); }
  .card-h__art { aspect-ratio: 16/10; }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-block { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .newsletter { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .share-rail {
    position: static;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }
  .share-rail__label { display: none; }
  .topbar__links { display: none; }
  .feature, .feature__body { min-height: 400px; }
}

@media (max-width: 640px) {
  :root { --radius-lg: 20px; }
  .hero__side { grid-template-columns: minmax(0, 1fr); }
  .grid, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature__body { min-height: 340px; }
  .byline__stats { margin-left: 0; width: 100%; }
  .card--ranked .card__art::after { font-size: 60px; }
  .prose { font-size: 16.8px; }
}

/* ─────────────────────────────────────────────────────────────
   21) HAREKETİ AZALT / YAZDIR
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .site-footer, .share-rail, .toc,
  .to-top, .progress, .newsletter, .palette, .drawer, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { grid-template-columns: 1fr; }
  .prose { max-width: none; font-size: 12pt; }
}
