/* ══════════════════════════════════════════════════════════
   Notlar alanı — ortak stiller (/notlar ve /notlar/*.html)

   Sitenin geri kalanı tek dosya HTML; burada iki sayfa aynı
   ~700 satırı paylaştığı için stil dışarı alındı. Palet ve
   tipografi index.html ile birebir aynı değerlerden geliyor.

   Not gövdesi Notion'un blok düzenini taklit eder: paragraf
   boşlukları bilerek dar tutulur, aradaki nefes boş paragraf
   bloklarından gelir — Notion'da olduğu gibi.
   ══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --text: #c8d1dc;
  --text-strong: #e2e8f0;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --blue: #4f8fff;
  --violet: #a78bfa;
  --indigo: #6366f1;

  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  /* Notion sayfası "mono" font ayarında — not gövdesi o yüzden monospace.
     Inter'e dönmek istersen tek yer: --font-note. */
  --font-note:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-code:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --content: 720px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  /* Uzun içerikte yatay taşma olmasın; kod blokları kendi içinde kayar */
  overflow-x: hidden;
}

/* Yıldız tuvali — index.html'deki akan alan değil, sayfa açılışında
   bir kez çizilen sabit hâli. Okuma sayfasında hareket yorucu. */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* index.html'deki nebula'nın CSS karşılığı: iki yumuşak renk lekesi */
.page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      620px 420px at 18% -6%,
      rgba(79, 143, 255, 0.13),
      transparent 70%
    ),
    radial-gradient(
      560px 400px at 88% 6%,
      rgba(167, 139, 250, 0.11),
      transparent 72%
    );
}

/* ── Üst çubuk ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand .mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.brand:hover {
  color: #fff;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 0;
}
.crumbs .sep {
  opacity: 0.5;
}
.crumbs a {
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.crumbs a:hover {
  color: var(--text-strong);
}
.crumbs .here {
  color: var(--text-strong);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-spacer {
  flex: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}
.icon-btn:hover {
  color: var(--text-strong);
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.15);
}
.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Okuma ilerlemesi — üst çubuğun alt kenarına oturur */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--violet) 55%,
    var(--indigo)
  );
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
  transition: width 0.12s linear;
}

/* ── Sayfa iskeleti ────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  padding-top: 56px;
}


/* ── Not sayfası: kapak + başlık ───────────────────────── */
.cover {
  position: relative;
  height: 30vh;
  min-height: 180px;
  max-height: 280px;
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Kapak lacivert zemine erisin diye alt kenar yumuşatılıyor */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 14, 26, 0.35) 0%,
    rgba(10, 14, 26, 0.1) 40%,
    rgba(10, 14, 26, 0.75) 82%,
    var(--bg) 100%
  );
}

.note-head {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.note-icon {
  width: 74px;
  height: 74px;
  margin-top: -46px;
  margin-bottom: 12px;
  display: block;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}
.note-title {
  font-family: var(--font-note);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(
    135deg,
    var(--blue) 0%,
    var(--violet) 52%,
    var(--indigo) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 60px rgba(99, 102, 241, 0.22);
  margin-bottom: 14px;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.note-meta .m {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.note-meta svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.75;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── İçindekiler ───────────────────────────────────────────
   27 bölüm düz liste hâlinde okunmuyordu. Uzun içindekiler için
   yerleşik kalıp: başlıkları gruplara ayır, yalnız okunan grubu
   açık tut, konumu kayan bir gösterge ile işaretle.

   İki yerleşimi var:
   • Dar ekran (varsayılan): notun başında, kapalı açılan kutu.
   • Geniş ekran (≥1220px): metin kolonunun sağına sabitlenmiş sütun.
     Konum ekrana değil kolonun kenarına bağlı, böylece her genişlikte
     yazıya yapışık duruyor. Sığma hesabı: 50vw + 360 + 28 + 200 + 16
     ≤ 100vw ⇒ ekran ≥ 1208px. Eşik 1220px; notes.js'teki WIDE ile
     birlikte değişmeli. */
.toc {
  max-width: var(--content);
  margin: 22px auto 0;
  padding: 0 24px;
  font-family: var(--font-ui);
}

/* Dar ekrandaki açma düğmesi */
.toc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-2);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}
.toc-head:hover {
  color: var(--text-strong);
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.15);
}
.toc-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.8;
  flex-shrink: 0;
}
.toc-label {
  flex: 1;
}
.toc-count {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toc-chevron {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.toc.open .toc-chevron {
  transform: rotate(180deg);
}

/* Liste gövdesi: soldaki omurga + kayan gösterge */
.toc-list {
  display: none;
  position: relative;
  padding: 10px 0 4px 13px;
}
.toc.open .toc-list {
  display: block;
}
.toc-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.toc-thumb {
  position: absolute;
  left: 0;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
  opacity: 0;
  transition:
    top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}
.toc-thumb.on {
  opacity: 1;
}

/* Grup satırı */
.toc-g-head {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 6px 6px 2px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.toc-g-head:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.035);
}
.toc-group.open > .toc-g-head {
  color: var(--text-strong);
}
.toc-g-chev {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.toc-group.open > .toc-g-head .toc-g-chev {
  transform: rotate(90deg);
  opacity: 0.9;
}
.toc-g-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toc-g-count {
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* Açılıp kapanma: grid satırı 0fr→1fr, yüksekliği bilmeye gerek yok */
.toc-g-list {
  display: grid;
  grid-template-rows: 0fr;
  /* Grid öğeleri varsayılan `min-width: auto` ile gelir; uzun bir
     başlık track'i genişletip sütunu taşırıyordu. */
  min-width: 0;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.toc-group.open > .toc-g-list {
  grid-template-rows: 1fr;
}
.toc-g-inner {
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.toc-g-inner a,
.toc-list > a {
  /* Uzun başlıklar iki satırda kesilsin (tamamı title'da duruyor) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Sütunu taşırabilecek uzun kelime kalmasın */
  overflow-wrap: anywhere;
  padding: 5px 6px 5px 20px;
  color: var(--muted);
  font-size: 0.765rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}
.toc-g-inner a:hover,
.toc-list > a:hover {
  color: var(--text-strong);
}
.toc-g-inner a.active,
.toc-list > a.active {
  color: #c4b5fd;
}

@media (min-width: 1220px) {
  .toc {
    position: fixed;
    top: 96px;
    left: calc(50% + var(--content) / 2 + 28px);
    width: 200px;
    max-width: none;
    margin: 0;
    padding: 0;
    /* Alt sınır "başa dön" düğmesinin üstünde kalsın (düğme: 22+42px) */
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 20;
  }
  /* Sütun, kapak ve başlığın üstünde asılı kalmasın: metin başlayınca
     `rail-on` ile beliriyor. `.js` sınıfını <head>'deki satır içi script
     boyama başlamadan ekliyor — yoksa sütun ilk karede bir görünüp
     kayboluyordu. JS kapalıysa `.js` hiç eklenmez ve sütun baştan
     görünür kalır. */
  .js .toc {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }
  .js .toc.rail-on {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  /* Geniş ekranda başlık artık düğme değil, sadece etiket */
  .toc-head {
    padding: 0 0 10px 2px;
    border: 0;
    background: none;
    cursor: default;
    pointer-events: none;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .toc-icon,
  .toc-chevron {
    display: none;
  }
  .toc-label {
    flex: 0 0 auto;
  }
  .toc-count::before {
    content: "· ";
  }
  .toc-list {
    display: block;
    padding-top: 0;
  }
  .toc-list::before {
    top: 4px;
  }
  .toc::-webkit-scrollbar {
    width: 4px;
  }
  .toc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
}

/* ── Not gövdesi (Notion blok düzeni) ──────────────────── */
.note {
  max-width: var(--content);
  margin: 0 auto;
  /* Notion mono sayfası 16px/1.75 — aynısı */
  padding: 24px 24px 90px;
  font-family: var(--font-note);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

/* Notion'da paragraf aralığı çok dar; boşluğu boş bloklar verir */
.n-p {
  padding: 3px 2px;
  margin: 1px 0;
  word-wrap: break-word;
}
.n-p.n-empty {
  min-height: 1.2em;
}

.n-h1,
.n-h2,
.n-h3 {
  font-family: var(--font-note);
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  scroll-margin-top: 78px;
  position: relative;
  /* Yavaş geçiş: iniş vurgusu sönerken kullanılıyor (aşağı bak) */
  transition: color 0.9s ease;
}
.n-h1 {
  font-size: 1.65rem;
  margin: 1.9em 0 0.35em;
}
.n-h2 {
  font-size: 1.35rem;
  margin: 1.7em 0 0.3em;
}
/* Bu notta bütün bölüm başlıkları Notion H3 — gövdeden net ayrılsın diye
   normalden bir tık iri ve üstünde daha çok nefes var. */
.n-h3 {
  font-size: 1.22rem;
  margin: 1.9em 0 0.35em;
}
.note > .n-h1:first-child,
.note > .n-h2:first-child,
.note > .n-h3:first-child {
  margin-top: 0.2em;
}

/* İniş vurgusu — içindekilerden (ya da bir # çapasından) gelindiğinde
   hedef başlık kısa süre morarır ki göz nereye indiğini hemen bulsun.
   Anında yanar, yavaş söner: hızlı geçiş burada, yavaşı yukarıdaki
   temel kuralda — sınıf kalkınca oradaki devreye giriyor. */
.n-h1.is-landed,
.n-h2.is-landed,
.n-h3.is-landed {
  color: #c4b5fd;
  transition: color 0.1s ease;
}
.n-h1.is-landed .n-anchor,
.n-h2.is-landed .n-anchor,
.n-h3.is-landed .n-anchor {
  opacity: 0.75;
}
/* Başlığın soluna sarkan çapa — fareyle üstüne gelince beliriyor */
.n-anchor {
  position: absolute;
  left: -1.15em;
  top: 0;
  color: var(--violet);
  opacity: 0;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}
.n-h1:hover .n-anchor,
.n-h2:hover .n-anchor,
.n-h3:hover .n-anchor,
.n-anchor:focus-visible {
  opacity: 0.7;
}

.note strong {
  color: var(--text-strong);
  font-weight: 700;
}
.note em {
  font-style: italic;
}
.note a:not(.n-anchor) {
  color: #93b8ff;
  text-decoration: underline;
  text-decoration-color: rgba(147, 184, 255, 0.35);
  text-underline-offset: 3px;
}
.note a:not(.n-anchor):hover {
  text-decoration-color: #93b8ff;
}

/* Satır içi kod — Notion'un kırmızımsı çipinin koyu zemin karşılığı */
.n-inline {
  font-family: var(--font-code);
  font-size: 0.87em;
  color: #ff8b7e;
  background: rgba(148, 163, 184, 0.14);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  word-break: break-word;
}

/* Listeler */
.n-ul,
.n-ol {
  margin: 1px 0;
  padding-left: 1.7em;
}
.n-li {
  padding: 3px 2px;
  line-height: 1.7;
}
.n-li::marker {
  color: var(--muted-2);
}
.n-ul .n-ul,
.n-ul .n-ol,
.n-ol .n-ul {
  margin-top: 2px;
}
.n-li > .n-code,
.n-li > .n-img {
  margin-top: 8px;
}

/* ── Notion renkleri ──────────────────────────────────────
   Aynı renk hem bir bloğun tamamına (<p>, <li>) hem de cümle
   içindeki bir kelimeye (<span>) uygulanabiliyor. Renk tek yerde
   `--tint` olarak tanımlanıyor; dolgu ve sol şerit ise etikete
   göre ayrışıyor — satır içi vurgunun şeridi olmaz. */
.n-bg-gray,
.n-bg-grey {
  --tint: 148, 163, 184;
}
.n-bg-brown {
  --tint: 184, 145, 122;
}
.n-bg-orange {
  --tint: 240, 168, 104;
}
.n-bg-yellow {
  --tint: 251, 191, 36;
}
.n-bg-green {
  --tint: 74, 222, 128;
}
.n-bg-blue {
  --tint: 79, 143, 255;
}
.n-bg-purple {
  --tint: 167, 139, 250;
}
.n-bg-pink {
  --tint: 240, 160, 200;
}
.n-bg-red {
  --tint: 248, 113, 113;
}
.n-bg-teal {
  --tint: 111, 212, 200;
}

[class*="n-bg-"] {
  background: rgba(var(--tint), 0.12);
}
span[class*="n-bg-"] {
  padding: 0.12em 0.34em;
  border-radius: 3px;
}
p[class*="n-bg-"],
li[class*="n-bg-"],
div[class*="n-bg-"],
blockquote[class*="n-bg-"],
h2[class*="n-bg-"],
h3[class*="n-bg-"],
h4[class*="n-bg-"] {
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 4px;
  box-shadow: inset 3px 0 0 rgba(var(--tint), 0.45);
}

/* Yazı rengi (zemin değil) */
.n-fg-gray,
.n-fg-grey {
  color: #9aa4b2;
}
.n-fg-brown {
  color: #c09a80;
}
.n-fg-orange {
  color: #f0a868;
}
.n-fg-yellow {
  color: #e8c468;
}
.n-fg-green {
  color: #7fd6a4;
}
.n-fg-blue {
  color: #7db4ff;
}
.n-fg-purple {
  color: #c4a5fb;
}
.n-fg-pink {
  color: #f0a0c8;
}
.n-fg-red {
  color: #ff8b7e;
}
.n-fg-teal {
  color: #6fd4c8;
}

/* ── Yan yana sütunlar ────────────────────────────────────
   Notion'daki oran `flex` olarak geliyor. Dar ekranda alt alta. */
.n-cols {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin: 8px 0;
}
.n-col {
  min-width: 0;
}
@media (max-width: 700px) {
  .n-cols {
    flex-direction: column;
    gap: 2px;
  }
  .n-col {
    flex: none !important;
    width: 100%;
  }
}

/* ── Bağlantı önizlemesi (Notion'un ‣ bağlantıları) ─────── */
.note a.n-mention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 0.94em;
  text-decoration: none;
  vertical-align: baseline;
  transition: all 0.2s ease;
}
.note a.n-mention:hover {
  background: var(--surface-hi);
  border-color: rgba(167, 139, 250, 0.35);
}
.note a.n-mention img {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Alıntı ve callout — bu notta yok ama sonraki notlar için hazır */
.n-quote {
  border-left: 3px solid var(--violet);
  padding: 2px 0 2px 14px;
  margin: 10px 0;
  color: var(--muted-2);
}
.n-callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px 0;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.n-callout .n-callout-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.n-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.7em 0;
}

/* Bir bloğun altına girintilenmiş alt bloklar */
.n-indent {
  padding-left: 1.7em;
}

/* Açılır blok ve görev listesi — sonraki notlar için hazır */
.n-toggle {
  margin: 4px 0;
  padding: 3px 2px;
}
.n-toggle > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.n-toggle > summary::-webkit-details-marker {
  display: none;
}
.n-toggle > summary::before {
  content: "▸";
  color: var(--muted-2);
  font-size: 0.8em;
  transition: transform 0.18s ease;
}
.n-toggle[open] > summary::before {
  transform: rotate(90deg);
}
.n-toggle > *:not(summary) {
  padding-left: 1.35em;
}
.n-todo input {
  accent-color: var(--violet);
  margin-right: 6px;
  vertical-align: -1px;
}

.n-cap {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}

/* Görseller — Notion'daki blok genişliği korunur ama Notion'un aksine
   ortalanır: metin kolonu dar, sola yaslı küçük görseller sağda boşluk
   bırakıp dengesiz duruyordu. */
.n-img {
  margin: 14px auto;
}
.n-img .n-cap {
  text-align: center;
}
.n-img img,
.n-img .n-vid {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
/* GIF'ler video olarak geliyor (24 MB → 2 MB). Görsel gibi
   davranmaları için kontroller yok, sessiz ve döngüde. */
.n-img .n-vid {
  background: rgba(255, 255, 255, 0.02);
}

/* Alt sayfa bağlantısı */
.n-subpage {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.22s ease;
}
.n-subpage svg {
  width: 15px;
  height: 15px;
  fill: var(--muted-2);
  flex-shrink: 0;
}
a.n-subpage:hover {
  background: var(--surface-hi);
  border-color: rgba(255, 255, 255, 0.15);
}
.n-subpage.is-empty {
  color: var(--muted);
  cursor: default;
}
.n-subpage.is-empty::after {
  content: "boş";
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ── Kod blokları ──────────────────────────────────────── */
.n-code {
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
}
.n-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}
.n-code-lang {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.n-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.n-copy svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.n-copy:hover {
  color: var(--text-strong);
  background: var(--surface-hi);
  border-color: var(--line);
}
.n-copy.done {
  color: #6ee7b7;
}
.n-code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
}
.n-code code {
  font-family: var(--font-code);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre;
  tab-size: 4;
}
.n-code pre::-webkit-scrollbar {
  height: 6px;
}
.n-code pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

/* Python vurgulama — site paletiyle uyumlu tutuldu */
.c-com {
  color: #5f7186;
  font-style: italic;
}
.c-str {
  color: #86efac;
}
.c-num {
  color: #fbbf24;
}
.c-kw {
  color: #c084fc;
  font-weight: 500;
}
.c-bi {
  color: #60a5fa;
}
.c-fn {
  color: #7dd3fc;
}
.c-op {
  color: #94a3b8;
}
.c-pun {
  color: #8ea0b5;
}

/* ── Not altı gezinme ──────────────────────────────────── */
.note-foot {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.note-foot .hint {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Liste sayfası ─────────────────────────────────────── */
.list-head {
  max-width: var(--content);
  margin: 0 auto;
  padding: 64px 24px 26px;
}
.list-kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
/* Bölümün kimliği mono tipografi — not sayfasındaki başlıkla aynı aile */
.list-title {
  font-family: var(--font-note);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: transparent;
  background: linear-gradient(
    135deg,
    var(--blue) 0%,
    var(--violet) 50%,
    var(--indigo) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 60px rgba(99, 102, 241, 0.22);
  margin-bottom: 12px;
}
.list-sub {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-2);
  max-width: 52ch;
}

.note-cards {
  max-width: var(--content);
  margin: 0 auto;
  padding: 8px 24px 100px;
  display: grid;
  gap: 14px;
}

.card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  background: var(--surface-hi);
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}
.card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
}
.card-body {
  min-width: 0;
  flex: 1;
}
.card-title {
  font-family: var(--font-note);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card:hover .card-title .go {
  transform: translateX(3px);
  opacity: 1;
}
.card-title .go {
  width: 14px;
  height: 14px;
  fill: var(--violet);
  opacity: 0;
  transition: all 0.25s ease;
}
.card-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.74rem;
  color: var(--muted);
}
.card-meta .m {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-meta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0.75;
}

.empty-note {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px 100px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ── Başa dön ──────────────────────────────────────────── */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 22, 38, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--muted-2);
  cursor: pointer;
  /* Görünene kadar tıklanamaz olmalı, yoksa köşede görünmez bir
     düğme kalıyor ve altındaki bağlantıları yutuyor. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s,
    color 0.25s ease,
    border-color 0.25s ease;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  color: var(--text-strong);
  border-color: rgba(167, 139, 250, 0.4);
}
.to-top svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ── Erişilebilirlik ───────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 9px 16px;
  border-radius: 9px;
  background: #131a2c;
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(167, 139, 250, 0.28);
  color: #fff;
}

/* ── Küçük ekran ───────────────────────────────────────── */
@media (max-width: 620px) {
  .note-title {
    font-size: 1.85rem;
  }
  .list-title {
    font-size: 1.95rem;
  }
  .note-icon {
    width: 60px;
    height: 60px;
    margin-top: -36px;
  }
  .note {
    font-size: 0.92rem;
    padding: 20px 20px 70px;
  }
  .toc,
  .note-head,
  .note-foot,
  .list-head,
  .note-cards {
    padding-left: 20px;
    padding-right: 20px;
  }
  .n-code code {
    font-size: 0.76rem;
  }
  .n-ul,
  .n-ol {
    padding-left: 1.35em;
  }
  /* Başlık çapası dar ekranda kolonun dışına taşıyor — kapalı kalsın */
  .n-anchor {
    display: none;
  }
  .card {
    padding: 16px;
    gap: 13px;
  }
  .list-head {
    padding-top: 44px;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 400px) {
  .brand span {
    display: none;
  }
  .crumbs {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
