/* berkalparslan.github.io — blog stili
   Ana sayfayla aynı token'lar; tema anahtarı ortak: "bb-theme".
   Bu dosyayı hem /blog/ listesi hem tek tek yazılar kullanır. */

:root {
  color-scheme: light;
  --bg: #f4f4f7;
  --bg-deep: #ececf1;
  --surface: #ffffff;
  --text: #14141a;
  --subtle: #6a6a75;
  --faint: #9a9aa6;
  --border: #e3e3ea;
  --border-strong: #d2d2dc;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, .10);
  --violet: #7c5cff;
  --mint: #14b8a6;
  --code-bg: #f2f2f6;
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --aurora-1: rgba(0, 113, 227, .22);
  --aurora-2: rgba(124, 92, 255, .18);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0e;
  --bg-deep: #060608;
  --surface: #15151a;
  --text: #f3f3f7;
  --subtle: #9d9daa;
  --faint: #6d6d7a;
  --border: #26262e;
  --border-strong: #34343e;
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, .14);
  --violet: #9d84ff;
  --mint: #2dd4bf;
  --code-bg: #1b1b21;
  --aurora-1: rgba(0, 113, 227, .26);
  --aurora-2: rgba(124, 92, 255, .22);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Ana sayfadakinin sakin hâli — yazı okunurken dikkat dağıtmasın. */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 90% 50% at 50% -15%, var(--bg) 0%, var(--bg-deep) 100%);
}
.aurora i {
  position: absolute; display: block; border-radius: 50%; filter: blur(100px);
}
.aurora i:nth-child(1) {
  width: 44vw; height: 44vw; min-width: 300px; min-height: 300px;
  left: -10vw; top: -14vw; background: var(--aurora-1);
}
.aurora i:nth-child(2) {
  width: 36vw; height: 36vw; min-width: 260px; min-height: 260px;
  right: -8vw; top: -8vw; background: var(--aurora-2);
}

header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.header-inner {
  max-width: 720px; margin: 0 auto; padding: 0 24px; height: 58px;
  display: flex; align-items: center; gap: 14px;
}

.brand {
  font-size: 16px; font-weight: 700; letter-spacing: -.3px;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center;
}
/* gap yerine margin — gap, "Bam" metin düğümüyle <span>Tech</span>
   arasına da boşluk koyuyordu. */
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none; margin-right: 8px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.brand span {
  background: linear-gradient(90deg, var(--accent), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.header-inner nav { display: flex; gap: 4px; margin-left: auto; }
.header-inner nav a {
  font-size: 13.5px; font-weight: 500; color: var(--subtle);
  text-decoration: none; padding: 6px 11px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.header-inner nav a:hover {
  color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent);
}

.theme-toggle {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--subtle); font-size: 13px; line-height: 1; cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

main { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

.page-title {
  font-size: clamp(30px, 6vw, 44px); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px;
}
.page-lede { font-size: 17px; color: var(--subtle); margin-bottom: 44px; max-width: 54ch; }


/* ── Dil ─────────────────────────────────────────────────── */
/* Metinler .tr / .en ile ikişer yazılır; kökteki data-lang seçer.
   Tek dilli yazılarda bu sınıflar hiç kullanılmaz, sorun olmaz. */
:root[data-lang="tr"] .en { display: none; }
:root[data-lang="en"] .tr { display: none; }
span.tr, span.en { display: inline; }
:root[data-lang="tr"] span.en,
:root[data-lang="en"] span.tr { display: none; }

.lang-toggle {
  flex: none; height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--subtle); font: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; line-height: 1; cursor: pointer;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Yazının hangi dilde olduğunu listede göstermek için. */
.lang-badge {
  font-family: -apple-system, sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--subtle) 14%, transparent);
  color: var(--subtle);
}

/* ── Yazı listesi ────────────────────────────────────────── */
.post-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.post-item a {
  display: block; text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: transform .18s, border-color .18s;
}
.post-item a:hover { transform: translateY(-2px); border-color: var(--accent); }

.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  letter-spacing: .02em; margin-bottom: 7px;
}
.tag {
  font-family: -apple-system, sans-serif; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
}
.post-item h2 {
  font-size: 19px; font-weight: 650; letter-spacing: -.02em;
  line-height: 1.3; margin-bottom: 6px;
}
.post-item p { font-size: 14.5px; color: var(--subtle); line-height: 1.6; }

.empty-note {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--faint); font-size: 14.5px;
}

/* ── Tek yazı ────────────────────────────────────────────── */
article.post-body { max-width: 68ch; }
article.post-body h1 {
  font-size: clamp(28px, 5.5vw, 40px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px;
}
article.post-body h2 {
  font-size: 21px; font-weight: 650; letter-spacing: -.02em;
  margin: 2.4rem 0 .6rem;
}
article.post-body h3 { font-size: 17px; font-weight: 650; margin: 1.8rem 0 .4rem; }
article.post-body p { margin-bottom: 1.1rem; font-size: 16.5px; }
article.post-body ul, article.post-body ol { margin: 0 0 1.1rem 1.3rem; }
article.post-body li { margin: .35rem 0; font-size: 16.5px; }
article.post-body a { color: var(--accent); text-underline-offset: 3px; }
article.post-body img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }

article.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px; margin: 1.4rem 0;
  color: var(--subtle); font-style: italic;
}

article.post-body code {
  font-family: var(--mono); font-size: .88em;
  background: var(--code-bg); padding: 2px 6px; border-radius: 5px;
}
article.post-body pre {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; overflow-x: auto;
  margin-bottom: 1.2rem; font-size: 13.5px; line-height: 1.6;
}
article.post-body pre code { background: none; padding: 0; }

article.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.post-header-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  margin-bottom: 34px;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--subtle); text-decoration: none;
  margin-bottom: 26px;
}
.back-link:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px 42px; text-align: center;
  font-size: 13px; color: var(--faint); line-height: 1.9;
}
footer a { color: var(--subtle); text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  main { padding: 36px 20px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
