/* =========================================================
   Mehmet YAYLACI – Modern Tema
   Saf CSS · Responsive · Açık/Koyu tema
   ========================================================= */

:root {
  --accent: #f15a23;
  --accent-2: #ff9a4d;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);

  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f4f2;
  --text: #1c1917;
  --muted: #6b6560;
  --border: #e7e5e4;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 8px 24px rgba(28, 25, 23, .06);
  --shadow-hover: 0 2px 4px rgba(28, 25, 23, .08), 0 18px 40px rgba(241, 90, 35, .16);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0c0a09;
  --surface: #171412;
  --surface-2: #211d1a;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --border: #2a2522;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px rgba(241, 90, 35, .22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.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;
}

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Okuma ilerleme çubuğu */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left; transform: scaleX(0); z-index: 150;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 6px 20px rgba(0, 0, 0, .05); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(241, 90, 35, .35);
  transition: transform .3s;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }

.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  position: relative; padding: .5rem .9rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; gap: .4rem; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); transition: background-color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }

.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

.menu-btn { display: none; }
.menu-btn path { transition: transform .3s, opacity .2s; transform-origin: center; transform-box: fill-box; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 70% at 5% 100%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.eyebrow {
  display: inline-block; padding: .35rem .85rem; margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 800;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 1.25rem; max-width: 60ch; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); }

.tech-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tech-chips li {
  padding: .3rem .8rem; font-family: var(--mono); font-size: .82rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); transition: transform .2s, border-color .2s, color .2s;
}
.tech-chips li:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.search {
  display: flex; align-items: center; gap: .75rem; margin-top: 2rem; max-width: 520px;
  padding: .35rem .5rem .35rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.search input {
  flex: 1; min-width: 0; padding: .7rem 0; font: inherit; color: var(--text);
  background: transparent; border: 0; outline: 0;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd {
  padding: .1rem .55rem; font-family: var(--mono); font-size: .8rem;
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
}

/* ---------- Ana yerleşim ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem;
  padding-block: 2.5rem 4rem; align-items: start;
}

.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.6rem; letter-spacing: -.02em; }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .4rem .95rem; font-size: .88rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--muted);
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(241, 90, 35, .35); }

.result-info { min-height: 1.4em; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }

/* ---------- Kartlar ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .thumb img { transform: scale(1.06); }

.card-body { display: flex; flex-direction: column; flex: 1; gap: .85rem; padding: 1.25rem 1.4rem 1.3rem; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.meta time { margin-left: auto; }
.tag {
  padding: .15rem .65rem; font-weight: 700; font-size: .75rem; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.tag:hover { background: var(--accent); color: #fff; }

.card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.card h3 a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.card h3 a:hover { background-size: 100% 2px; }

.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: .85rem; border-top: 1px dashed var(--border);
  font-size: .88rem;
}
.comments { color: var(--muted); }
.comments:hover { color: var(--text); }
.read { font-weight: 700; color: var(--accent); }
.read span { display: inline-block; transition: transform .25s; }
.read:hover span { transform: translateX(5px); }

/* Her satırda tek kart: geniş görsel, büyük başlık */
.card .card-body { padding: 1.5rem 1.75rem 1.6rem; gap: 1rem; }
.card h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.card .meta { font-size: .88rem; }
.card .tag { font-size: .78rem; }
.card-foot { font-size: .95rem; }
.card.featured h3 { font-size: clamp(1.45rem, 3vw, 2rem); }

.card.is-hidden { display: none; }

.empty {
  display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; margin-top: 1rem;
  text-align: center; color: var(--muted);
  border: 2px dashed var(--border); border-radius: var(--radius);
}

/* ---------- Sayfalama ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.page {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .5rem;
  font-weight: 700; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: all .2s;
}
a.page:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.page.current { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(241, 90, 35, .35); }

/* ---------- Yan panel ---------- */
.sidebar {
  display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.25rem);
  /* Panel ekrandan uzunsa kendi içinde kaydırılır, alt kısmı kesilmez */
  max-height: calc(100vh - var(--header-h) - 2.5rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; scrollbar-width: thin;
}

.widget {
  padding: 1.4rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.widget h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: -.01em; }
.widget h2::before { content: ""; width: 6px; height: 1.1em; align-self: center; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent-2)); }
.handle { font-size: .85rem; font-weight: 600; color: var(--accent); }
.handle:hover { text-decoration: underline; }

.cat-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-list a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem;
  font-size: .88rem; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  transition: all .2s;
}
.cat-list a span { font-size: .74rem; padding: 0 .4rem; color: var(--muted); background: var(--surface); border-radius: 999px; transition: inherit; }
.cat-list a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.cat-list a:hover span { background: rgba(255, 255, 255, .25); color: #fff; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; margin-bottom: 1rem; background: var(--surface-2); border-radius: 12px; }
.tab { padding: .5rem; font-weight: 700; font-size: .9rem; color: var(--muted); background: transparent; border: 0; border-radius: 9px; transition: all .2s; }
.tab.is-active { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }

.rank-list { counter-reset: rank; display: grid; gap: .25rem; }
.rank-list li { counter-increment: rank; }
.rank-list a, .comment-list a {
  display: grid; gap: .1rem; padding: .6rem .5rem; border-radius: 10px;
  font-weight: 600; font-size: .93rem; line-height: 1.35; transition: background-color .2s;
}
.rank-list a { grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; }
.rank-list a::before {
  content: counter(rank); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px;
  font-size: .8rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 8px;
}
.rank-list a span, .comment-list a span { grid-column: 2; font-size: .78rem; font-weight: 500; color: var(--muted); }
.comment-list a { grid-template-columns: 1fr; }
.comment-list a strong { color: var(--accent); }
.comment-list a span { grid-column: 1; }
.rank-list a:hover, .comment-list a:hover { background: var(--surface-2); }

.tweets { display: grid; gap: 1rem; }
.tweets li { padding: .9rem 1rem; background: var(--surface-2); border-radius: 12px; border-left: 3px solid var(--accent); }
.tweets p { font-size: .92rem; word-break: break-word; }
.tweets p a { color: var(--accent); font-weight: 600; }
.tweets p a:hover { text-decoration: underline; }
.when { display: inline-block; margin-top: .5rem; font-size: .78rem; color: var(--muted); }
.when:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a {
  padding: .4rem .9rem; font-size: .88rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; transition: all .2s;
}
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.copy { font-size: .88rem; color: var(--muted); }
.copy a:hover { color: var(--accent); text-decoration: underline; }

/* Yukarı çık */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0; border-radius: 14px; box-shadow: 0 8px 22px rgba(241, 90, 35, .45);
  animation: pop .3s both; transition: transform .2s;
}
.to-top:hover { transform: translateY(-4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* Görünür olunca beliren öğeler */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transition: opacity .6s ease, transform .3s, box-shadow .3s, border-color .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sidebar .widget:last-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: .25rem; margin: 0; padding: 1rem;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px rgba(0, 0, 0, .12);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }

  .card .card-body { padding: 1.25rem 1.4rem 1.3rem; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .brand-name { font-size: .98rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .search kbd { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) {
  .card:hover { transform: none; }
  .card:hover .thumb img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .progress, .to-top, .search, .filters, .pagination, .sidebar { display: none !important; }
  body { background: #fff; color: #000; }
}
/* =========================================================
   Mehmet YAYLACI – Yazı detay sayfası
   style.css ile birlikte kullanılır (ondan sonra yüklenir)
   ========================================================= */

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding-block: 1.25rem .25rem; font-size: .88rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Yerleşim ---------- */
.post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem; align-items: start; padding-block: 1rem 4rem;
}
.post { min-width: 0; }

/* ---------- Yazı başlığı ---------- */
.post-header { display: grid; gap: 1.1rem; padding-top: .75rem; }
.post-header .meta { gap: .5rem; }
.post-header h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12;
  letter-spacing: -.03em; font-weight: 800; text-wrap: balance;
}

.byline { display: flex; align-items: center; gap: .85rem; }
.byline .brand-mark { width: 44px; height: 44px; border-radius: 12px; font-size: .85rem; }
.by-name { font-weight: 700; }
.by-name:hover { color: var(--accent); }
.by-meta { display: flex; flex-wrap: wrap; gap: .1rem .5rem; font-size: .88rem; color: var(--muted); }
.by-meta a:hover { color: var(--accent); text-decoration: underline; }

.cover {
  margin: 1.75rem 0 2rem; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
}
.cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- İçindekiler ---------- */
.toc {
  padding: 1.1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.toc h2, .toc summary {
  margin: 0 0 .75rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.toc ol { display: grid; gap: .1rem; border-left: 2px solid var(--border); }
.toc a {
  display: block; margin-left: -2px; padding: .35rem .85rem;
  border-left: 2px solid transparent; font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc li.sub a { padding-left: 1.7rem; font-size: .86rem; font-weight: 500; }

.toc-mobile { display: none; margin-bottom: 2rem; }
.toc-mobile summary { cursor: pointer; margin: 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "▾"; transition: transform .25s; }
.toc-mobile[open] summary { margin-bottom: .75rem; }
.toc-mobile[open] summary::after { transform: rotate(180deg); }

/* ---------- Makale tipografisi ---------- */
.prose { font-size: 1.1rem; line-height: 1.85; color: color-mix(in srgb, var(--text) 90%, var(--muted)); }
.prose > * + * { margin-top: 1.3rem; }
.prose h2, .prose h3 { color: var(--text); letter-spacing: -.02em; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2 { margin-top: 2.75rem; font-size: 1.7rem; }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.prose h2 + *, .prose h3 + * { margin-top: .9rem; }

.anchor { margin-left: .45rem; font-weight: 400; color: var(--accent); opacity: 0; text-decoration: none; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .anchor:focus-visible { opacity: 1; }

.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: transparent; }
.prose strong { color: var(--text); }

.prose :not(pre) > code {
  padding: .12em .45em; font-family: var(--mono); font-size: .86em; color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  overflow-wrap: anywhere;
}

.prose ul, .prose ol { display: grid; gap: .5rem; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before {
  content: ""; position: absolute; left: .3rem; top: .78em; width: 8px; height: 8px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 2.2rem; counter-increment: n; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: .2em; display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; font-size: .8rem; font-weight: 800; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px;
}

.prose blockquote {
  padding: .4rem 0 .4rem 1.25rem; font-size: 1.15rem; font-style: italic; color: var(--text);
  border-left: 4px solid var(--accent);
}
.prose img { border-radius: var(--radius-sm); }
.prose hr { border: 0; height: 1px; background: var(--border); margin-block: 2.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); background: var(--surface-2); }

/* ---------- Bilgi kutusu ---------- */
.callout {
  display: flex; gap: .9rem; padding: 1rem 1.2rem; font-size: 1rem; line-height: 1.7;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 14px;
}
.callout-icon { flex: none; font-size: 1.3rem; line-height: 1.5; }
.callout strong { color: var(--accent); }

/* ---------- Kod blokları (her iki temada koyu) ---------- */
.code {
  margin-inline: 0; overflow: hidden; color: #e7e5e4; background: #12100f;
  border: 1px solid #2a2522; border-radius: 14px; box-shadow: var(--shadow);
}
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .6rem .5rem 1rem; background: #1c1917; border-bottom: 1px solid #2a2522;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: #a8a29e;
}
.code-lang { display: inline-flex; align-items: center; gap: .6rem; }
.code-lang::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57; box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840; margin-right: 32px;
}
.copy-btn {
  padding: .3rem .75rem; font-family: var(--font); font-size: .78rem; font-weight: 700; color: #e7e5e4;
  background: #292524; border: 1px solid #3a3330; border-radius: 8px; transition: all .2s;
}
.copy-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy-btn.done { background: #16a34a; border-color: #16a34a; color: #fff; }
.code pre {
  margin: 0; padding: 1.1rem 1.25rem; overflow-x: auto; tab-size: 2;
  font-family: var(--mono); font-size: .88rem; line-height: 1.7; color: #e7e5e4;
}
.code pre code { font-family: inherit; background: none; border: 0; padding: 0; color: inherit; }
.tk-c { color: #78716c; font-style: italic; }
.tk-k { color: #ff9a4d; }
.tk-p { color: #7dd3fc; }
.tk-s { color: #86efac; }
.tk-n { color: #fbbf24; }
.tk-t { color: #f472b6; }
.tk-a { color: #fdba74; }

/* ---------- Yazı sonu ---------- */
.post-footer { display: grid; gap: 1.1rem; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-footer .meta { gap: .5rem; }
.foot-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share-btn {
  padding: .4rem .9rem; font-size: .86rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--border); border-radius: 999px; transition: all .2s;
}
.share-btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.author-box {
  display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.author-box .brand-mark { flex: none; width: 68px; height: 68px; border-radius: 18px; font-size: 1.25rem; }
.author-box h2 { font-size: 1.15rem; letter-spacing: -.01em; }
.author-box p { margin-top: .2rem; font-size: .95rem; color: var(--muted); }
.author-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; font-size: .88rem; font-weight: 700; }
.author-links a { color: var(--accent); }
.author-links a:hover { text-decoration: underline; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.pn {
  display: grid; gap: .3rem; padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pn:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.pn-label { font-size: .8rem; font-weight: 700; color: var(--accent); }
.pn-title { font-weight: 700; line-height: 1.35; }
.pn.next { text-align: right; }

/* ---------- Yorumlar ---------- */
.discussion { margin-top: 3.5rem; }
.discussion h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.6rem; letter-spacing: -.02em; }
.count { padding: .1rem .7rem; font-size: .85rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); border-radius: 999px; }
.no-comments { margin-top: 1rem; padding: 1.5rem; text-align: center; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }

/* minmax(0, 1fr): grid sütunu içeriğin (örn. uzun kod satırı) genişliğine göre büyümez, kapsayıcıda kalır */
.thread, .children { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.comment { min-width: 0; }
.thread { margin-top: 1.5rem; }
.children { margin: 1rem 0 0 1.4rem; padding-left: 1.1rem; border-left: 2px solid var(--border); }
/* 4. seviyeden sonra girinti daralır; çok derin zincirlerde yorum metnine yer kalır */
.children .children .children { margin-left: .5rem; padding-left: .75rem; }

.comment > article {
  display: flex; gap: .9rem; padding: 1.1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.comment.flash > article { animation: flash 1.8s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }

.avatar {
  position: relative; overflow: hidden;
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: .9rem; font-weight: 800; color: #fff; background: hsl(var(--h, 20) 65% 46%);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; }
.c-name { font-weight: 700; }
.c-head time { font-size: .8rem; color: var(--muted); }
.badge { padding: .05rem .55rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--accent); border-radius: 999px; }
.c-text { margin-top: .35rem; font-size: .98rem; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }

/* Yorumların içindeki kod blokları ve görseller kart genişliğini aşmaz; uzun satırlar kutunun içinde kayar */
.c-body pre {
  max-width: 100%; margin: .65rem 0 0; padding: .8rem 1rem; overflow-x: auto; tab-size: 2;
  font-family: var(--mono); font-size: .84rem; line-height: 1.65; color: #e7e5e4;
  background: #12100f; border: 1px solid #2a2522; border-radius: 10px;
}
.c-body pre code { padding: 0; font-family: inherit; color: inherit; background: none; border: 0; white-space: pre; }
.c-body :not(pre) > code {
  padding: .1em .4em; font-family: var(--mono); font-size: .86em; color: var(--accent);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; overflow-wrap: anywhere;
}
.c-body img, .c-body video, .c-body iframe { max-width: 100%; height: auto; }
.c-body table { display: block; max-width: 100%; overflow-x: auto; }
.reply-btn {
  margin: .5rem 0 0 -.6rem; padding: .25rem .6rem; font-size: .82rem; font-weight: 700; color: var(--accent);
  background: none; border: 0; border-radius: 8px; transition: background-color .2s;
}
.reply-btn:hover { background: var(--accent-soft); }

/* ---------- Yorum formu ---------- */
.comment-form {
  display: grid; gap: 1rem; margin-top: 2rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.comment-form h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field textarea {
  width: 100%; padding: .75rem .95rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.err { min-height: 1.1em; font-size: .8rem; color: #dc2626; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
[data-theme="dark"] .err { color: #f87171; }

.replying {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem .9rem; font-size: .9rem; background: var(--accent-soft); border-radius: 10px;
}
.replying button { padding: .2rem .6rem; font-weight: 700; color: var(--accent); background: none; border: 0; border-radius: 6px; }
.replying button:hover { text-decoration: underline; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.hint { font-size: .82rem; color: var(--muted); }
.btn {
  padding: .8rem 1.5rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(241, 90, 35, .35); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(241, 90, 35, .45); }
.btn:active { transform: scale(.97); }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; max-width: calc(100% - 2rem);
  padding: .7rem 1.2rem; font-weight: 600; color: var(--bg); background: var(--text);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 760px); justify-content: center; gap: 0; }
  .post-layout .sidebar { margin-top: 3rem; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; }
}

@media (max-width: 640px) {
  .prose { font-size: 1.04rem; line-height: 1.8; }
  .prose h2 { font-size: 1.45rem; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
  .pn.next { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .btn { width: 100%; }
  .children { margin-left: .5rem; padding-left: .75rem; }
  .children .children, .children .children .children { margin-left: 0; padding-left: .5rem; }
  .comment > article { padding: .9rem; }
  .avatar { width: 38px; height: 38px; font-size: .8rem; }
  .code pre { font-size: .82rem; padding: 1rem; }
}

@media print {
  .toc, .share, .post-nav, .discussion, .copy-btn, .toast { display: none !important; }
  .post-layout { display: block; }
  .code { background: #fff; color: #000; border-color: #ccc; }
  .code pre { color: #000; }
}
/* =========================================================
   Mehmet YAYLACI – Hakkında, Arşiv ve 404 sayfaları
   style.css ile birlikte kullanılır (ondan sonra yüklenir)
   ========================================================= */

.page-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero.glow {
  background:
    radial-gradient(55% 90% at 90% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(45% 70% at 0% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section > .container > h2, .section-title { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.025em; margin-bottom: 1.5rem; }
.btn {
  padding: .8rem 1.5rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 0; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(241, 90, 35, .35); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(241, 90, 35, .45); }
.btn:active { transform: scale(.97); }
.js .topic.reveal.in { transition: opacity .6s ease, transform .3s, box-shadow .3s, border-color .3s; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; font-weight: 700;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
a.btn { display: inline-flex; align-items: center; gap: .5rem; }

/* =================== HAKKINDA =================== */
.about-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.about-hero .lead { margin-top: 1.25rem; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.portrait { position: relative; justify-self: center; width: min(100%, 340px); aspect-ratio: 1; display: grid; place-items: center; }
.portrait::before {
  content: ""; position: absolute; inset: 0; border-radius: 38%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #ffd2a8, var(--accent));
  animation: spin 14s linear infinite; filter: blur(.5px);
}
.portrait::after { content: ""; position: absolute; inset: 7px; border-radius: 36%; background: var(--bg); }
.portrait-core {
  position: relative; z-index: 1; display: grid; place-items: center; width: 82%; height: 82%; border-radius: 34%;
  font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 20px 50px rgba(241, 90, 35, .4);
}
.float-chip {
  position: absolute; z-index: 2; padding: .35rem .8rem; font-family: var(--mono); font-size: .8rem; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.float-chip:nth-of-type(1) { top: 4%; left: -6%; }
.float-chip:nth-of-type(2) { top: 18%; right: -8%; animation-delay: -1.5s; }
.float-chip:nth-of-type(3) { bottom: 14%; left: -10%; animation-delay: -3s; }
.float-chip:nth-of-type(4) { bottom: 2%; right: 2%; animation-delay: -2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; }
.stat b span { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { display: block; margin-top: .25rem; font-size: .88rem; color: var(--muted); }

.story { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; }
.story-side { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.story-side h2 { margin: 0; }
.story-body { display: grid; gap: 1.2rem; max-width: 66ch; font-size: 1.1rem; line-height: 1.85; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.story-body em { color: var(--accent); font-style: normal; font-weight: 700; }
.story-body blockquote { margin: .5rem 0; padding: .3rem 0 .3rem 1.25rem; border-left: 4px solid var(--accent); font-size: 1.25rem; font-weight: 600; color: var(--text); line-height: 1.5; }

.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.topic {
  position: relative; display: grid; gap: .5rem; padding: 1.4rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.topic::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--accent-soft); transition: transform .4s;
}
.topic:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.topic:hover::after { transform: scale(1.8); }
.topic > * { position: relative; z-index: 1; }
.topic-ico { display: grid; place-items: center; width: 46px; height: 46px; font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 12px; }
.topic h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.topic p { font-size: .94rem; color: var(--muted); }
.topic .n { margin-top: .25rem; font-size: .82rem; font-weight: 700; color: var(--accent); }

.marquee { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--border); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.marquee-track span::before { content: "◆"; margin-right: 2.5rem; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

.contact-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff; border-radius: 24px; background: linear-gradient(135deg, #f15a23, #ff8a3d 60%, #ffb067);
  box-shadow: 0 24px 60px rgba(241, 90, 35, .35); position: relative; overflow: hidden;
}
.contact-card::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.contact-card h2 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.03em; color: #fff; }
.contact-card p { opacity: .92; max-width: 46ch; }
.contact-links { position: relative; z-index: 1; display: grid; gap: .6rem; }
.contact-links a {
  display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.1rem; font-weight: 700;
  color: #1c1917; background: rgba(255, 255, 255, .95); border-radius: 12px; transition: transform .2s, background-color .2s;
}
.contact-links a:hover { transform: translateX(6px); background: #fff; }
.contact-links a span { color: #f15a23; }

/* =================== ARŞİV =================== */
.archive-tools { display: grid; gap: 1rem; margin-top: 2rem; }
.archive-tools .search { margin-top: 0; max-width: 560px; }
.archive-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 2.5rem; padding-block: 1rem 4rem; align-items: start; }
.year-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .25rem; border-left: 2px solid var(--border); }
.year-nav a { display: flex; justify-content: space-between; gap: .5rem; margin-left: -2px; padding: .4rem .9rem; border-left: 2px solid transparent; font-weight: 700; color: var(--muted); transition: color .2s, border-color .2s; }
.year-nav a small { font-weight: 600; opacity: .7; }
.year-nav a:hover { color: var(--text); }
.year-nav a.is-active { color: var(--accent); border-left-color: var(--accent); }
.year-nav a.is-empty { opacity: .35; pointer-events: none; }

.year-group { margin-bottom: 2.75rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.year-group > h2 {
  position: sticky; top: var(--header-h); z-index: 5; display: flex; align-items: baseline; gap: .8rem; padding: .6rem 0;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.year-group > h2 small { font-size: .9rem; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.a-list { position: relative; margin-top: .5rem; padding-left: 1.6rem; border-left: 2px dashed var(--border); display: grid; gap: .75rem; }
.a-item { position: relative; }
.a-item::before {
  content: ""; position: absolute; left: calc(-1.6rem - 6px); top: 1.55rem; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); transition: background-color .2s, transform .2s;
}
.a-item:hover::before { background: var(--accent); transform: scale(1.3); }
.a-link {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.a-link:hover { transform: translateX(6px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.a-date { display: grid; justify-items: center; line-height: 1.1; padding: .45rem 0; background: var(--accent-soft); border-radius: 10px; color: var(--accent); }
.a-date b { font-size: 1.4rem; font-weight: 800; }
.a-date span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.a-main h3 { font-size: 1.08rem; line-height: 1.35; letter-spacing: -.01em; }
.a-main .meta { margin-top: .4rem; }
.a-main .meta .tag { font-size: .72rem; }
.a-go { font-size: 1.3rem; color: var(--accent); transition: transform .25s; }
.a-link:hover .a-go { transform: translateX(5px); }
.a-hot { padding: .05rem .55rem; font-size: .72rem; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; }
.a-item.is-hidden, .year-group.is-hidden { display: none; }
.archive-note { margin-top: 1rem; padding: .9rem 1.1rem; font-size: .9rem; color: var(--muted); background: var(--surface-2); border-radius: 12px; border: 1px dashed var(--border); }

/* =================== 404 =================== */
.nf { position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 3rem 0 4rem; text-align: center; }
.nf::before, .nf::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.nf::before { width: 380px; height: 380px; left: -100px; top: 10%; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: bob 9s ease-in-out infinite; }
.nf::after { width: 320px; height: 320px; right: -80px; bottom: 5%; background: color-mix(in srgb, var(--accent-2) 40%, transparent); animation: bob 11s ease-in-out infinite reverse; }
.nf-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.1rem; }
.nf-num { display: flex; align-items: center; gap: clamp(.2rem, 1.5vw, 1rem); font-size: clamp(6rem, 24vw, 14rem); font-weight: 900; line-height: .9; letter-spacing: -.06em; }
.nf-num span { background: linear-gradient(160deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 30px rgba(241, 90, 35, .3)); }
.nf-zero { position: relative; display: inline-grid; place-items: center; width: .82em; height: .82em; border-radius: 50%; border: .14em solid var(--accent); animation: wobble 4s ease-in-out infinite; }
.nf-zero::after { content: "?"; font-size: .5em; letter-spacing: 0; color: var(--accent); animation: bob 3s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.04); } }
.nf h1 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); letter-spacing: -.03em; text-wrap: balance; }
.nf p.lead { margin: 0; max-width: 46ch; }

.term { width: min(100%, 520px); text-align: left; background: #12100f; border: 1px solid #2a2522; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; gap: 7px; padding: .6rem .9rem; background: #1c1917; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term pre { margin: 0; padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.8; color: #e7e5e4; }
.term .tk-c { color: #78716c; }
.term .ok { color: #86efac; }
.term .err404 { color: #f87171; font-weight: 700; }
.term .path { color: #fbbf24; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nf .search { width: min(100%, 520px); margin-top: .5rem; text-align: left; }
.nf .search button[type="submit"] { padding: .55rem 1.1rem; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 10px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.nf-suggest { width: min(100%, 520px); margin-top: .5rem; text-align: left; }
.nf-suggest h2 { margin: 0 0 .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nf-suggest ul { display: grid; gap: .5rem; }
.nf-suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; font-weight: 600; font-size: .95rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: all .2s; }
.nf-suggest a:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.nf-suggest a span { flex: none; font-size: .8rem; font-weight: 500; color: var(--muted); }

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .about-hero, .contact-card { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(70%, 280px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; gap: 1rem; }
  .story-side { position: static; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-layout { grid-template-columns: 1fr; gap: 1rem; }
  .year-nav { position: sticky; top: var(--header-h); z-index: 6; display: flex; overflow-x: auto; gap: .4rem; padding: .6rem 0; border: 0; background: var(--bg); scrollbar-width: none; }
  .year-nav::-webkit-scrollbar { display: none; }
  .year-nav a { flex: none; margin: 0; padding: .35rem .9rem; border: 1px solid var(--border); border-radius: 999px; }
  .year-nav a.is-active { border-color: var(--accent); background: var(--accent-soft); }
  .year-group > h2 { position: static; background: none; }
}
@media (max-width: 640px) {
  .topics { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .a-link { grid-template-columns: 62px minmax(0, 1fr); padding: .85rem; }
  .a-go { display: none; }
  .a-list { padding-left: 1.1rem; }
  .a-item::before { left: calc(-1.1rem - 6px); }
  .cta-row .btn, .cta-row .btn-ghost { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait::before, .float-chip, .marquee-track, .nf::before, .nf::after, .nf-zero, .nf-zero::after, .caret { animation: none !important; }
}

/* ---------- Görseli olmayan kartlar için yer tutucu kapak ---------- */
.thumb .ph {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px;
  font-family: var(--mono); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent);
  background:
    radial-gradient(80% 90% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(70% 80% at 10% 100%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .thumb .ph { transform: scale(1.06); }

/* Derinlik sınırından sonra "@Ad" ile belirtilen yanıtlar */
.c-mention { font-weight: 700; color: var(--accent); }
.c-mention:hover { text-decoration: underline; }
