/* Celtt Blog — Pure Dark Slate, Fibonacci ölçeği (4·8·13·21·34·55).
   Her blok tipi (.b-*) scripts/build-blog.mjs içindeki bir render fonksiyonuna karşılık gelir.
   Yeni blok eklemek: render fonksiyonu + burada bir .b-<ad> kuralı + content/blog/README.md. */

:root {
  --bg: #000000;
  --panel: #090b10;
  --panel-hover: #0e1219;
  --text: #e2e8f0;
  --text-muted: #8a94a6;
  --text-white: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --cyan: #0dc0df;
  --slate: #34496e;
  --success: #166534;
  --danger: #7a2f34;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 13px; --s4: 21px; --s5: 34px; --s6: 55px;
  --r1: 8px; --r2: 13px; --r3: 21px;
  --read-max: 720px;
  --list-max: 1100px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg.icon-mono { filter: grayscale(100%); }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text-white); }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }

/* ── Üst bar (kapsam izolasyonu: yalnızca .site-* sınıfları) ───────────── */
.site-header-wrapper {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-navbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: var(--s3) var(--s4);
  flex-wrap: nowrap; white-space: nowrap;
}
.site-brand-link { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; }
.site-brand-emblem { height: 32px; width: auto; aspect-ratio: 1303/1538; object-fit: contain; }
.site-brand-img { height: 26px; width: auto; object-fit: contain; }
/* Marka logosu renkli kalır (design-system.css ile aynı); gri filtre yalnızca simgelere uygulanır. */
.site-brand-link img { filter: none; }
.site-nav-links { display: flex; align-items: center; gap: var(--s2); }
.site-nav-link {
  color: var(--text-muted); font-size: 0.94rem; font-weight: 500; text-decoration: none;
  padding: var(--s2); border-radius: var(--r1);
}
.site-nav-link:hover, .site-nav-link.active { color: var(--text-white); }
.site-nav-score-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #5a78a6; display: inline-block;
  margin-right: 6px; box-shadow: 0 0 5px rgba(90, 120, 166, 0.6); vertical-align: middle;
}
.site-nav-link-score:hover .site-nav-score-dot { background: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.95); }
.site-nav-actions { display: flex; align-items: center; gap: var(--s2); }
.btn-header {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 var(--s3);
  border-radius: var(--r1); font-size: 0.84rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
}
.btn-header:hover { border-color: var(--border-hover); color: var(--text-white); }
.btn-header img { width: 14px; height: 14px; object-fit: contain; }
.lang-picker { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 var(--s3);
  font: 600 0.82rem var(--font-body); color: var(--text-muted);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r1); cursor: pointer;
}
.lang-btn:hover { color: var(--text-white); border-color: var(--border-hover); }
.lang-menu {
  position: absolute; top: calc(100% + 4px); right: 0; min-width: 130px;
  background: var(--panel); border: 1px solid var(--border-hover); border-radius: var(--r1);
  padding: var(--s1); display: none; flex-direction: column; gap: 2px; z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.lang-menu.show { display: flex; }
.lang-item {
  display: flex; justify-content: space-between; padding: var(--s2) 10px; border-radius: var(--s1);
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.lang-item:hover, .lang-item.active { background: rgba(255, 255, 255, 0.08); color: var(--text-white); }
.site-menu-btn {
  display: none; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r1);
  color: var(--text); cursor: pointer;
}
.site-mobile-drawer {
  display: none; flex-direction: column; gap: var(--s1);
  padding: var(--s3) var(--s4) var(--s4); background: var(--bg); border-bottom: 1px solid var(--border);
}
.site-mobile-drawer.show { display: flex; }
.site-mobile-drawer a { color: var(--text); text-decoration: none; padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-weight: 500; }

/* ── Sayfa kabuğu ─────────────────────────────────────────────────────── */
.blog-wrap { max-width: var(--list-max); margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }
.article-wrap { max-width: var(--read-max); margin: 0 auto; padding: var(--s5) var(--s4) var(--s6); }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 0.84rem; color: var(--text-muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text-white); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* Montserrat Bold Italic başlık standardı */
.page-title, .article-title {
  font-family: var(--font-heading); font-style: italic; font-weight: 700;
  color: var(--text-white); text-align: left; letter-spacing: -0.01em;
}
.page-title { font-size: clamp(1.8rem, 3.5vw, 3.2rem); line-height: 1.1; }
.page-lede { color: var(--text-muted); font-size: 1.05rem; margin-top: var(--s3); }

/* Tek ana görsel: makale hero + kart küçük resmi (AI ile üretilmiş fotoğraf; gri filtre uygulanmaz) */
.b-hero { margin: var(--s4) 0 0; border: 1px solid var(--border); border-radius: var(--r3); overflow: hidden; background: var(--panel); }
.b-hero img, .post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; filter: none; }
.b-hero figcaption { padding: var(--s2) var(--s3); font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.post-thumb { display: block; border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }

/* ── Dizin: yazı kartları ─────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.post-card {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4);
  background: rgba(9, 11, 16, 0.95); border: 1px solid var(--border); border-radius: var(--r3);
  text-decoration: none; color: var(--text);
}
.post-card:hover { border-color: rgba(13, 192, 223, 0.35); background: #0a0e16; }
.post-card h2 { font: 700 1.15rem/1.3 var(--font-heading); color: var(--text-white); }
.post-card p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); font-size: 0.8rem; color: var(--text-muted); }
.chip {
  display: inline-block; padding: var(--s1) var(--s2); border-radius: var(--s1);
  border: 1px solid rgba(13, 192, 223, 0.2); color: var(--cyan);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── Makale ───────────────────────────────────────────────────────────── */
.article-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; margin: var(--s3) 0; }
.article-lede { font-size: 1.12rem; color: var(--text); margin-top: var(--s3); }
.article-meta { margin-top: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--border); }

.toc {
  margin: var(--s4) 0; padding: var(--s4); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r2);
}
.toc-title { font: 600 0.8rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s3); }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: var(--s2); }
.toc li { counter-increment: toc; font-size: 0.94rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--text-muted); margin-right: var(--s3); font-variant-numeric: tabular-nums; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--cyan); }

.prose { font-size: 1.04rem; line-height: 1.7; }
.prose > * + * { margin-top: var(--s4); }
.prose h2, .prose h3 { font-family: var(--font-heading); color: var(--text-white); line-height: 1.25; scroll-margin-top: 55px; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; margin-top: var(--s5); }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: var(--s4); }
.prose strong { color: var(--text-white); font-weight: 600; }
.prose ul, .prose ol { padding-left: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.prose li::marker { color: var(--text-muted); }

/* b-answer: sayfanın tek cümlelik doğrudan cevabı */
.b-answer { font-size: 1.2rem; line-height: 1.55; color: var(--text-white); }

/* b-pair: iki kavramı yan yana karşılaştır */
.b-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); }
.b-pair > div { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r2); background: var(--panel); }
.b-pair strong { display: block; color: var(--text-white); margin-bottom: var(--s2); }
.b-pair span { display: block; font-size: 0.94rem; line-height: 1.55; color: var(--text-muted); }

/* b-summary: "Kısaca" kutusu */
.b-summary { padding: var(--s4); border: 1px solid rgba(13, 192, 223, 0.2); border-radius: var(--r2); background: var(--panel); box-shadow: inset 0 0 10px rgba(13, 192, 223, 0.11); }
.b-summary .b-label { color: var(--cyan); }
.b-label { font: 600 0.78rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s3); display: block; }
.b-summary ul { font-size: 0.98rem; line-height: 1.6; }

/* b-callout: info | warn */
.b-callout { padding: var(--s3) var(--s4); border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--r1); background: var(--panel); font-size: 0.98rem; line-height: 1.65; }
.b-callout.info { border-left-color: var(--slate); }
.b-callout.warn { border-left-color: var(--danger); }
.b-callout .b-label { color: var(--text-muted); margin-bottom: var(--s1); }

/* b-table */
.b-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r2); background: var(--panel); }
.b-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.45; }
.b-table caption { text-align: left; padding: var(--s3) var(--s4); color: var(--text-muted); font-size: 0.82rem; caption-side: bottom; border-top: 1px solid var(--border); }
.b-table th { text-align: left; padding: var(--s3) var(--s4); color: var(--text-white); font-weight: 600; background: var(--panel-hover); border-bottom: 1px solid var(--border); white-space: nowrap; }
.b-table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); vertical-align: top; }
.b-table tr:last-child td { border-bottom: 0; }

/* b-stats: büyük sayı kartları */
.b-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); }
.b-stat { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r2); background: var(--panel); }
.b-stat strong { display: block; font: 700 1.5rem/1.2 var(--font-heading); color: var(--text-white); font-variant-numeric: tabular-nums; }
.b-stat span { display: block; margin-top: var(--s1); font-size: 0.84rem; line-height: 1.4; color: var(--text-muted); }

/* b-faq */
.b-faq details { border: 1px solid var(--border); border-radius: var(--r1); background: var(--panel); padding: 0 var(--s4); }
.b-faq details + details { margin-top: var(--s2); }
.b-faq summary { cursor: pointer; padding: var(--s3) 0; font-weight: 600; color: var(--text-white); list-style: none; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after { content: "+"; float: right; color: var(--text-muted); }
.b-faq details[open] summary::after { content: "–"; }
.b-faq details p { padding-bottom: var(--s3); font-size: 0.98rem; line-height: 1.65; }

/* b-cta + birincil buton (4 eksenli mat cyan gradient) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 55px; padding: 0 var(--s4);
  border-radius: var(--r1); border: 1px solid rgba(13, 192, 223, 0.2); color: var(--text-white);
  font: 600 0.94rem var(--font-body); text-decoration: none; cursor: pointer;
  background:
    linear-gradient(to right, rgba(13, 192, 223, 0.14), transparent 55%),
    linear-gradient(to left, rgba(13, 192, 223, 0.08), transparent 55%),
    linear-gradient(to bottom, rgba(13, 192, 223, 0.11), transparent 55%),
    linear-gradient(to top, rgba(13, 192, 223, 0.08), transparent 55%),
    #090b10;
  box-shadow: inset 0 0 10px rgba(13, 192, 223, 0.11);
}
.btn-primary:hover { background: #0a0e16; border-color: rgba(13, 192, 223, 0.35); color: var(--text-white); }
.btn-secondary { display: inline-flex; align-items: center; min-height: 55px; padding: 0 var(--s4); border-radius: var(--r1); border: 1px solid var(--border); color: var(--text); text-decoration: none; font: 500 0.94rem var(--font-body); }
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text-white); }
.b-cta { padding: var(--s5) var(--s4); border: 1px solid var(--border); border-radius: var(--r3); background: var(--panel); text-align: left; }
.b-cta h2 { margin: 0 !important; font-size: 1.35rem !important; }
.b-cta p { margin-top: var(--s3); color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
.b-cta .b-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3); }

/* b-sources */
.b-sources { font-size: 0.86rem; line-height: 1.6; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: var(--s4); }
.b-sources .b-label { color: var(--text-muted); }
.b-sources ul { gap: var(--s1); }

.disclaimer { margin-top: var(--s5); font-size: 0.84rem; line-height: 1.6; color: var(--text-muted); }

.related { margin-top: var(--s6); }
.related h2 { font: 700 1.2rem var(--font-heading); color: var(--text-white); }
.related .post-grid { margin-top: var(--s4); }

/* ── Altbilgi ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: var(--s6); padding: var(--s5) var(--s4); }
.footer-meta {
  max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s3); font-size: 0.82rem; color: var(--text-muted);
}
.footer-links a { color: var(--text-muted); text-decoration: none; margin-right: var(--s3); }
.footer-links a:hover { color: var(--text-white); }

@media (max-width: 1024px) {
  .site-nav-links, .site-nav-actions .btn-header { display: none; }
  .site-menu-btn { display: inline-flex; }
}
@media (max-width: 767px) {
  .blog-wrap, .article-wrap { padding: var(--s4) var(--s3) var(--s5); }
  .site-navbar { padding: var(--s3); }
  .prose { font-size: 1rem; }
  .b-table th, .b-table td { padding: var(--s2) var(--s3); }
}

/* Klavye / yüksek frekans: animasyon yok */
* { transition: none !important; animation: none !important; }
