/* ══════════════════════════════════════════════════════════════
   BLNK STUDIO — BLOG DESIGN SYSTEM
   Ana sitedeki (index.html) renk/tipografi diliyle birebir eşleşir.
   Blog sayfaları performans (Core Web Vitals = SEO sinyali) için
   ağır Three.js evrenini YÜKLEMEZ — hafif, statik bir arkaplan kullanır.
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #04040B;
  --bg2:       #0A0A16;
  --glass:     rgba(12,12,24,0.55);
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.16);
  --p1:        #7C6EF8;
  --p2:        #A78BFA;
  --gold:      #F0C040;
  --text:      #FFFFFF;
  --muted:     #B4BCCE;
  --muted2:    #56607A;
  --mono:      'JetBrains Mono', monospace;
  --r:         18px;
  --r2:        26px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* soft static backdrop — no WebGL, keeps blog pages fast & crawlable */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 15% 0%, rgba(124,110,248,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(240,192,64,0.08) 0%, transparent 60%),
    var(--bg);
}

::selection { background: rgba(124,110,248,0.4); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--p1); border-radius: 4px; }

a { color: inherit; }

/* ─── NAV (ana site ile aynı) ───────────────────────────────── */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4,4,11,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--p2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nav-logo em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  -webkit-text-fill-color: var(--muted2);
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
}
.nav-cta:hover { box-shadow: 0 0 30px rgba(124,110,248,0.35); transform: translateY(-1px); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ─── SHARED LAYOUT PRIMITIVES ──────────────────────────────── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-tag::before { content: '['; color: var(--muted2); }
.section-tag::after { content: ']'; color: var(--muted2); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(124,110,248,0.35); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: rgba(12,12,24,0.4);
  border: 1px solid var(--border2);
  border-radius: 100px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-secondary:hover { background: rgba(124,110,248,0.12); border-color: var(--p1); transform: translateY(-2px); }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted2);
  padding-top: 32px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--p2); }
.breadcrumb span[aria-current] { color: var(--gold); }

/* ─── BLOG INDEX (listing) ───────────────────────────────────── */
.blog-hero { padding: 56px 0 48px; }
.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.blog-hero p { font-size: 17px; color: var(--muted); max-width: 620px; line-height: 1.7; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding-bottom: 90px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s;
}
.post-card:hover { border-color: rgba(124,110,248,0.4); transform: translateY(-4px); }
.post-card .meta {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
}
.post-card .cat { color: var(--gold); }
.post-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.post-card p { font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; }
.post-card .read-more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--p2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── ARTICLE (single post) ──────────────────────────────────── */
.post-hero { padding: 40px 0 12px; max-width: 780px; }
.post-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 20px;
}
.post-hero .meta .cat { color: var(--gold); }
.post-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.post-hero .excerpt { font-size: 18px; color: var(--muted); line-height: 1.7; }

article.prose {
  max-width: 780px;
  padding: 36px 0 80px;
  font-size: 17px;
  line-height: 1.85;
  color: #DCE1EE;
}
article.prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 48px 0 18px;
}
article.prose h3 {
  font-family: 'Syne', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 34px 0 14px;
}
article.prose p { margin-bottom: 20px; }
article.prose ul, article.prose ol { margin: 0 0 20px 22px; }
article.prose li { margin-bottom: 10px; }
article.prose strong { color: #fff; font-weight: 600; }
article.prose a { color: var(--p2); text-decoration: underline; text-decoration-color: rgba(167,139,250,0.4); text-underline-offset: 3px; }
article.prose a:hover { color: var(--gold); }
article.prose blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  border-left: 2px solid var(--gold);
  background: var(--glass);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--muted);
}
article.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}
article.prose hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }
article.prose figure { margin: 28px 0; }
article.prose figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--border); }
article.prose figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted2);
  text-align: center;
}

.toc {
  padding: 22px 26px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin: 8px 0 36px;
  max-width: 780px;
}
.toc-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.toc a { font-size: 14px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--p2); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 44px; max-width: 780px; }
.tag-chip {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 780px;
  padding: 26px;
  margin-bottom: 60px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.author-box .av {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px;
}
.author-box .name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.author-box .role { font-size: 13px; color: var(--muted); }

.post-cta {
  max-width: 780px;
  margin-bottom: 90px;
  padding: 44px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,110,248,0.14) 0%, rgba(12,12,24,0.6) 60%, rgba(240,192,64,0.08) 100%);
  border: 1px solid rgba(124,110,248,0.3);
  border-radius: var(--r2);
}
.post-cta h3 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.post-cta p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ─── FOOTER (ana site ile aynı) ─────────────────────────────── */
footer {
  background: rgba(6,6,14,0.85);
  border-top: 1px solid var(--border);
  padding: 48px 5% 28px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted2); }
.footer-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-back:hover { color: #fff; }

@media (max-width: 640px) {
  .post-hero, article.prose, .toc, .tag-row, .author-box, .post-cta { max-width: 100%; }
}
