/* Yazılımca · 2017 teması
   Dönemin dili: Material kartları ve gölgeleri, Montserrat başlıklar, Medium tarzı okuma,
   eğik hero kenarı, okuma ilerleme çubuğu, parıltılı iskelet yükleme, yuvarlak FAB.
   Mobil öncelikli; dokunma hedefleri ≥ 44px; form yazıları ≥ 16px (iOS yakınlaştırmasın). */

:root {
  --coral: #ff5a5f;
  --coral-d: #e8464b;
  --sky: #2db6f5;
  --sky-d: #1597d3;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #1d2330;
  --ink-2: #4a5263;
  --ink-3: #6b7385;
  --line: #e3e6ec;
  --focus: #2db6f5;

  --shadow-1: 0 1px 3px rgba(20, 28, 45, .10), 0 1px 2px rgba(20, 28, 45, .06);
  --shadow-2: 0 3px 8px rgba(20, 28, 45, .10), 0 2px 4px rgba(20, 28, 45, .06);
  --shadow-3: 0 12px 28px rgba(20, 28, 45, .16), 0 4px 10px rgba(20, 28, 45, .08);

  --r: 4px;            /* 2017: köşeler küçük */
  --r-lg: 8px;
  --wrap: 1180px;
  --read: 720px;
  --bar: 64px;

  --f-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --f-read: "Merriweather", Georgia, "Times New Roman", serif;
  --f-code: "Fira Code", "Consolas", "Menlo", monospace;

  --code-bg: #282c34;
  --code-ink: #abb2bf;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12151c;
  --surface: #1b1f29;
  --surface-2: #222734;
  --ink: #e8ebf1;
  --ink-2: #b8bfcc;
  --ink-3: #8f97a7;
  --line: #2c3240;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-2: 0 3px 8px rgba(0, 0, 0, .45);
  --shadow-3: 0 12px 28px rgba(0, 0, 0, .55);
  --code-bg: #0f1218;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; }
/* Boyutu belirtilmemiş satır içi ikonlar metin boyunda kalsın (özgüllük 0 → her kural ezebilir). */
:where(svg) { width: 1.1em; height: 1.1em; vertical-align: -.15em; flex: none; }
a { color: var(--sky-d); text-decoration: none; }
a:hover { text-decoration: underline; }
:root[data-theme="dark"] a { color: var(--sky); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.main { flex: 1; outline: none; }
.noscript { padding: 48px 16px; }

/* ---------- Okuma ilerleme çubuğu ---------- */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--coral), var(--sky)); transition: width .1s linear; }

/* ---------- Üst çubuk ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); box-shadow: var(--shadow-1);
  padding-top: env(safe-area-inset-top); }
.topbar__in { display: flex; align-items: center; gap: 8px; height: var(--bar); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; min-height: 44px; }
.brand .yz-logo__w { font-size: 21px; color: var(--ink); }
.nav { display: none; margin-left: 24px; gap: 4px; }
.nav a { font: 600 15px/1 var(--f-ui); color: var(--ink-2); padding: 12px 12px; border-radius: var(--r);
  text-decoration: none; position: relative; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--coral); }
.topbar__tools { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none;
  border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { margin-left: -6px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* Mobil çekmece */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__shade { position: absolute; inset: 0; background: rgba(10, 14, 22, .5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__shade { opacity: 1; }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(84vw, 320px); background: var(--surface);
  box-shadow: var(--shadow-3); transform: translateX(-100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { padding: 20px 16px; background: linear-gradient(135deg, var(--coral), #ff8a5b 55%, var(--sky));
  color: #fff; }
.drawer__head .yz-logo { color: #fff; font-size: 19px; }
.drawer__head p { margin: 8px 0 0; font-size: 14px; opacity: .92; }
.drawer nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px;
  color: var(--ink); font-weight: 600; text-decoration: none; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { background: var(--surface-2); }
.drawer nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--coral); }
.drawer__sec { font: 700 11px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding: 18px 20px 8px; }

/* ---------- Arama katmanı ---------- */
.search-ov { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 22, .6); display: none;
  padding: calc(env(safe-area-inset-top) + 12px) 12px 12px; }
.search-ov.is-open { display: block; }
.search-ov__box { max-width: 680px; margin: 6vh auto 0; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); overflow: hidden; }
.search-ov form { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.search-ov input { flex: 1; border: 0; background: none; color: var(--ink); font: 400 20px/1.2 var(--f-ui);
  padding: 18px 16px; min-width: 0; }
.search-ov input:focus { outline: none; }
.search-ov__res { max-height: 60vh; overflow-y: auto; }
.search-ov__res a { display: block; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.search-ov__res a:hover, .search-ov__res a:focus { background: var(--surface-2); }
.search-ov__res small { color: var(--ink-3); display: block; }
.search-ov__hint { padding: 14px 16px; color: var(--ink-3); font-size: 15px; }
mark { background: rgba(255, 90, 95, .22); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- Hero (ana sayfa) ---------- */
.hero { position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #1b2240 0%, #2a2f5c 45%, #3a2b52 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); /* 2017: eğik alt kenar */
  padding-bottom: 56px; }
:root[data-theme="dark"] .hero { background: linear-gradient(135deg, #0c0f1d, #191c36 50%, #241a33); }
.hero__grid { display: grid; gap: 8px; align-items: center; padding-top: 28px; }
.hero__copy { position: relative; z-index: 2; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--f-head);
  letter-spacing: .14em; text-transform: uppercase; color: #ffd0d1; background: rgba(255, 90, 95, .18);
  padding: 8px 12px; border-radius: 20px; }
.hero h1 { font-size: clamp(28px, 6.4vw, 46px); font-weight: 800; margin: 16px 0 12px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--coral), #ffb36b 45%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #d3d7ea; font-size: 18px; max-width: 34em; margin: 0 0 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: flex; gap: 22px; margin-top: 22px; color: #b9bfd9; font-size: 14px; }
.hero__stats b { display: block; color: #fff; font: 800 22px/1.1 var(--f-head); }
.hero__desk { position: relative; height: 300px; margin: 0 -16px; }
.hero__desk canvas { display: block; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0,0,0,.5) 84%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, rgba(0,0,0,.5) 84%, transparent 100%); }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__fallback svg { width: min(92%, 520px); height: auto; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 5fr 7fr; padding-top: 24px; }
  .hero__desk { height: 500px; margin: 0 -24px 0 0; }
}

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: var(--r); border: 0; cursor: pointer; text-decoration: none !important;
  font: 700 14px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase;
  transition: box-shadow .2s, transform .2s, background .2s; }
.btn--primary { background: var(--coral); color: #fff !important; box-shadow: var(--shadow-2); }
.btn--primary:hover { background: var(--coral-d); box-shadow: var(--shadow-3); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--flat { background: var(--surface-2); color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.btn--flat:hover { background: var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Bölüm başlıkları ---------- */
.section { padding: 28px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 22px; margin: 0; position: relative; padding-left: 14px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px;
  border-radius: 2px; background: var(--coral); }
.sec-head a { font: 700 13px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

.layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }

/* ---------- Kartlar ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; position: relative; }
.card:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); }
.card__media { aspect-ratio: 16 / 9; display: block; position: relative; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font: 700 19px/1.3 var(--f-head); margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* tüm kart tıklanır */
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__ex { color: var(--ink-2); margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ink-3); font-size: 14px; }
.meta > * { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 15px; height: 15px; opacity: .8; }
.card .meta { margin-top: auto; padding-top: 6px; }
.card .chip { position: relative; z-index: 1; }

.card--feature { display: grid; }
@media (min-width: 760px) {
  .card--feature { grid-template-columns: 1.15fr 1fr; }
  .card--feature .card__media { aspect-ratio: auto; min-height: 300px; }
  .card--feature .card__title { font-size: 26px; }
  .card--feature .card__body { padding: 28px; justify-content: center; }
}
.badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--coral); color: #fff;
  font: 700 11px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 2px;
  box-shadow: var(--shadow-2); }

/* Kapak görseli yoksa: kategori renginde "kod kartı" */
.cover-gen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px 18px; color: rgba(255, 255, 255, .95); overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #3d4a6b), var(--c2, #23293d)); }
.cover-gen::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .5) 22px 23px); }
.card--feature .cover-gen { padding-top: 52px; } /* "Öne çıkan" etiketine yer */
.cover-gen__glyph { font: 500 clamp(34px, 7vw, 54px)/1 var(--f-code); letter-spacing: -.02em; position: relative; }
.cover-gen__cat { font: 700 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; opacity: .9; position: relative; }
.cover-gen__dots { position: absolute; top: 14px; right: 16px; display: flex; gap: 6px; }
.cover-gen__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }

/* ---------- Çipler ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 16px;
  font: 700 12px/1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none !important;
  color: #fff !important; background: var(--cc, var(--ink-3)); align-self: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--lg { min-height: 40px; padding: 0 16px; border-radius: 20px; font-size: 13px; }
.chip--lg small { background: rgba(255, 255, 255, .25); border-radius: 10px; padding: 3px 7px; font-size: 11px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 16px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2) !important;
  font-size: 14px; text-decoration: none !important; }
.tag:hover { background: var(--line); }
.chip.is-active, .tag.is-active { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--cc, var(--coral)); }

/* ---------- Kenar sütunu ---------- */
.side { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px; }
.widget h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 36px 1fr; gap: 4px; padding: 10px 0;
  border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; padding-top: 0; }
.rank li::before { content: counter(r, decimal-leading-zero); font: 800 20px/1.2 var(--f-head); color: var(--line); }
:root[data-theme="dark"] .rank li::before { color: #3a4152; }
.rank a { color: var(--ink); font-weight: 600; line-height: 1.35; }
.rank small { color: var(--ink-3); display: block; font-size: 13px; }

.newsletter { background: linear-gradient(135deg, var(--coral), #ff7f6b 50%, #ffa85c); color: #fff; }
.newsletter h3 { color: rgba(255, 255, 255, .85); }
.newsletter p { margin: 0 0 12px; font-size: 15px; }
.newsletter .field input { background: rgba(255, 255, 255, .95); border-color: transparent; color: #1d2330; }
.newsletter .btn { background: #1d2330; color: #fff !important; width: 100%; }
.newsletter .form-msg { color: #fff; }

/* ---------- Formlar ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea { width: 100%; font: 400 16px/1.4 var(--f-ui); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r); padding: 11px 12px; min-height: 46px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sky); box-shadow: 0 2px 0 -1px var(--sky); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--coral); }
.field__err { color: var(--coral-d); font-size: 14px; }
:root[data-theme="dark"] .field__err { color: #ff8a8d; }
.form-msg { font-weight: 600; font-size: 15px; min-height: 1.4em; }
.form-msg--ok { color: #1f9d55; }
:root[data-theme="dark"] .form-msg--ok { color: #4ade80; }
.form-msg--err { color: var(--coral-d); }
.hp { position: absolute; left: -9999px; }   /* bal küpü */

/* ---------- Sayfa başlığı (liste sayfaları) ---------- */
.page-head { background: var(--surface); box-shadow: var(--shadow-1); padding: 28px 0 22px; margin-bottom: 8px; }
.page-head h1 { font-size: clamp(26px, 5vw, 36px); margin: 6px 0 6px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 46em; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); }
.crumbs span[aria-hidden] { opacity: .5; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 18px 0; }
.seg { display: inline-flex; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
.seg a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--ink-2);
  font-weight: 600; font-size: 15px; text-decoration: none; }
.seg a[aria-current="true"] { background: var(--ink); color: var(--surface); }

/* ---------- Sayfalama ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 8px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 10px;
  border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); font-weight: 600;
  text-decoration: none; }
.pager [aria-current="page"] { background: var(--coral); color: #fff; }
.pager .gap { background: none; box-shadow: none; }

/* ---------- Yazı sayfası ---------- */
.article-head { background: var(--surface); padding: 28px 0 0; box-shadow: var(--shadow-1); }
.article-head__in { max-width: var(--read); margin: 0 auto; }
.article-head h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; margin: 14px 0 12px; }
.article-head .lead { font: 400 19px/1.55 var(--f-ui); color: var(--ink-2); margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0 20px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  font: 800 16px/1 var(--f-head); color: #fff; background: linear-gradient(135deg, var(--coral), var(--sky)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.byline b { display: block; }
.byline b a { color: var(--ink); }
.article-cover { max-width: 980px; margin: 0 auto; }
.article-cover img, .article-cover .cover-box { width: 100%; display: block; border-radius: var(--r); box-shadow: var(--shadow-2); }
.article-cover .cover-box { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 0 8px; }
.layout > *, .article-layout > *, .grid > * { min-width: 0; } /* geniş kod/tablo sütunu şişirmesin */
@media (min-width: 1140px) {
  .article-layout { grid-template-columns: 220px minmax(0, var(--read)) 220px; justify-content: center; }
}
.toc { display: none; }
@media (min-width: 1140px) {
  .toc { display: block; position: sticky; top: calc(var(--bar) + 24px); align-self: start; font-size: 14px;
    max-height: calc(100vh - var(--bar) - 48px); overflow-y: auto; }
  .toc h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .toc li a { display: block; padding: 6px 12px; color: var(--ink-3); margin-left: -2px; border-left: 2px solid transparent; }
  .toc li.lvl3 a { padding-left: 24px; }
  .toc li a.is-active { color: var(--ink); border-left-color: var(--coral); font-weight: 600; }
}
.toc-mobile { margin: 0 0 24px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); }
.toc-mobile summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; cursor: pointer; font-weight: 700; }
.toc-mobile ol { margin: 0; padding: 0 16px 14px 36px; }
.toc-mobile li { padding: 4px 0; }
@media (min-width: 1140px) { .toc-mobile { display: none; } }

.prose { font: 400 18px/1.8 var(--f-read); color: var(--ink); overflow-wrap: break-word; }
@media (max-width: 599px) { .prose { font-size: 17px; line-height: 1.75; } }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3 { font-family: var(--f-head); margin: 1.8em 0 .5em; }
.prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.2em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--coral); font-style: italic; color: var(--ink-2); }
.prose img { border-radius: var(--r); box-shadow: var(--shadow-1); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font: 400 14px/1.4 var(--f-ui); color: var(--ink-3); text-align: center; margin-top: 8px; }
.prose hr { border: 0; text-align: center; margin: 2em 0; }
.prose hr::before { content: "• • •"; letter-spacing: 1em; color: var(--ink-3); }
.prose :not(pre) > code { font: 500 .86em/1 var(--f-code); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  padding: .18em .4em; border-radius: 3px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; font: 400 15px/1.5 var(--f-ui); min-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-2); }

/* Kod blokları (Prism + kendi çerçevemiz) */
.code { position: relative; margin: 1.5em 0; border-radius: var(--r); background: var(--code-bg); box-shadow: var(--shadow-2); overflow: hidden; }
.code__bar { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; height: 40px; background: rgba(255, 255, 255, .05);
  color: #8b93a3; font: 500 12px/1 var(--f-code); }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code__bar i:nth-child(1) { background: #ff5f56; } .code__bar i:nth-child(2) { background: #ffbd2e; } .code__bar i:nth-child(3) { background: #27c93f; }
.code__lang { margin-left: 8px; text-transform: lowercase; }
.code__copy { margin-left: auto; min-height: 32px; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .08);
  color: #c9d1dc; font: 600 12px/1 var(--f-ui); padding: 0 10px; cursor: pointer; }
.code__copy:hover { background: rgba(255, 255, 255, .16); }
.prose pre { margin: 0 !important; padding: 16px 18px !important; overflow-x: auto; background: transparent !important;
  font: 400 14.5px/1.6 var(--f-code) !important; color: var(--code-ink); tab-size: 4; -webkit-overflow-scrolling: touch; }
.prose pre code { font: inherit !important; background: none !important; box-shadow: none !important; padding: 0 !important; text-shadow: none !important; }

/* Prism belirteçleri — One Dark (2017: Atom editörünün varsayılanı) */
.token.comment, .token.prolog, .token.cdata { color: #5c6370; font-style: italic; }
.token.punctuation { color: #abb2bf; }
.token.keyword, .token.important, .token.atrule, .token.rule { color: #c678dd; }
.token.string, .token.char, .token.attr-value, .token.regex, .token.inserted { color: #98c379; }
.token.function, .token.class-name { color: #61afef; }
.token.number, .token.boolean, .token.constant { color: #d19a66; }
.token.operator, .token.entity, .token.url { color: #56b6c2; }
.token.tag, .token.deleted, .token.property, .token.symbol { color: #e06c75; }
.token.attr-name, .token.builtin, .token.variable { color: #e5c07b; }
.token.namespace { opacity: .8; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share b { font: 700 13px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.share a, .share button { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  color: #fff !important; background: var(--sc, var(--ink-3)); text-decoration: none !important; transition: transform .15s; }
.share a:hover, .share button:hover { transform: translateY(-2px); }
.share svg { width: 20px; height: 20px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.series-box { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px 20px; margin: 0 0 28px;
  border-top: 4px solid var(--sky); font-family: var(--f-ui); }
.series-box h2 { font-size: 16px; margin: 0 0 4px; }
.series-box ol { margin: 10px 0 0; padding-left: 22px; }
.series-box li { padding: 3px 0; }
.series-box li[aria-current="true"] { font-weight: 700; }
.series-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }

.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-1); padding: 20px; margin-top: 32px; }
.author-box h3 { margin: 0 0 4px; font-size: 18px; }
.author-box p { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 15px; }

.comments { margin-top: 40px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment .avatar { width: 40px; height: 40px; font-size: 15px; }
.comment__body { flex: 1; min-width: 0; }
.comment__body p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment__body b { margin-right: 8px; }
.comment__body small { color: var(--ink-3); }
.comment-form { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 20px; margin-top: 16px; }
.two { display: grid; gap: 14px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.note { color: var(--ink-3); font-size: 14px; margin: 0; }

/* ---------- Boş / hata / yükleniyor ---------- */
.state { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.state h2, .state__title { color: var(--ink); }
.state__title { font-size: clamp(22px, 4.4vw, 28px); margin: 0 0 8px; }
.state__icon { font: 500 56px/1 var(--f-code); color: var(--coral); margin-bottom: 12px; }
.state .btn { margin-top: 12px; }

@keyframes shimmer { to { background-position: -200% 0; } }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 3px; }
.sk-card .card__media { background: none; }
.sk-line { height: 14px; margin: 8px 0; }
.sk-title { height: 22px; width: 80%; }

/* ---------- Bildirim, FAB, çerez ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: #232936; color: #fff; padding: 14px 16px; border-radius: var(--r); box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(12px); transition: .25s; font-size: 15px; }
.toast.is-in { opacity: 1; transform: none; }
.toast--ok { border-left: 4px solid #3ecf8e; }
.toast--err { border-left: 4px solid var(--coral); }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 52px;
  border-radius: 50%; border: 0; background: var(--sky); color: #fff; box-shadow: var(--shadow-3); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: scale(.6); pointer-events: none; transition: .2s; }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 24px; height: 24px; }

.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 85;
  max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3);
  border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; font-size: 15px; }
.consent p { margin: 0; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; justify-content: flex-end; }

.banner { background: #ffb020; color: #1d2330; text-align: center; padding: 10px 16px; font-weight: 600; }

/* ---------- Altbilgi ---------- */
.footer { background: #161a24; color: #aab1c2; margin-top: 48px; padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer a { color: #d7dce7; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-block; padding: 6px 0; }
.footer__logo { display: inline-block; color: #fff; font-size: 19px; }
.footer__bottom { border-top: 1px solid #2a3040; margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap;
  gap: 8px 20px; justify-content: space-between; font-size: 14px; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #232a38; }
.social a:hover { background: #2e3749; }
.social svg { width: 20px; height: 20px; }

/* Arşiv / etiket bulutu */
.cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat-card { position: relative; border-radius: var(--r); padding: 22px; color: #fff; min-height: 150px; overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: var(--shadow-2); display: flex; flex-direction: column;
  justify-content: flex-end; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.cat-card b { font: 800 22px/1.2 var(--f-head); color: #fff; }
.cat-card span { color: rgba(255, 255, 255, .85); font-size: 15px; }
.cat-card i { position: absolute; right: 16px; top: 10px; font: 500 48px/1 var(--f-code); color: rgba(255, 255, 255, .25); font-style: normal; }

.series-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 20px; border-left: 4px solid var(--sky);
  display: grid; gap: 6px; position: relative; transition: box-shadow .2s; }
.series-card:hover { box-shadow: var(--shadow-3); }

.prose-page { max-width: var(--read); margin: 0 auto; padding: 28px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .topbar, .footer, .share, .comments, .fab, .toc, .toc-mobile, .progress, .consent, .hero__desk { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- logo (core/logo.js) ---------- */
.yz-logo { display: inline-flex; align-items: center; gap: .5em; line-height: 1; white-space: nowrap; }
.yz-mark { flex: none; display: block; }
.yz-logo__w { font-family: 'Plus Jakarta Sans', Montserrat, system-ui, sans-serif; font-weight: 700; letter-spacing: -.025em; }
