/* bahadirdogru.com
   Renk ve ölçü değişkenleri netsis. / tsoft.bahadirdogru.com ile aynıdır;
   alt sitelerden birinde değişirse burada da değiştirin. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-code: #f3f4f6;
  --fg: #1f2328;
  --fg-muted: #59636e;
  --border: #d1d9e0;
  --accent: #0b63ce;
  --accent-soft: #ddf4ff;
  --warn-bg: #fff8c5;
  --warn-border: #d4a72c;
  --radius: 8px;
  --top-h: 56px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(31, 35, 40, .06), 0 8px 24px rgba(31, 35, 40, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --bg-soft: #151b23; --bg-code: #1b222c; --fg: #e6edf3; --fg-muted: #9198a1;
    --border: #30363d; --accent: #4493f8; --accent-soft: #12263f; --warn-bg: #2b2411; --warn-border: #9e6a03;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --bg-soft: #151b23; --bg-code: #1b222c; --fg: #e6edf3; --fg-muted: #9198a1;
  --border: #30363d; --accent: #4493f8; --accent-soft: #12263f; --warn-bg: #2b2411; --warn-border: #9e6a03;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--bg); padding: 6px 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--fg-muted); }
.mark { flex: none; color: var(--accent); }

/* üst çubuk (alt sitelerle aynı yükseklik ve çizgi) */
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: var(--bg); border-bottom: 1px solid var(--border); }
.top-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg-muted); font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--bg-soft); color: var(--fg); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.theme-btn { flex: none; border: 1px solid var(--border); background: var(--bg-soft); color: var(--fg); border-radius: var(--radius);
  height: 36px; min-width: 36px; font-size: 16px; cursor: pointer; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; border: 1px solid var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: var(--bg); color: var(--fg); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
:root[data-theme="dark"] .btn:not(.ghost) { color: #0d1117; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost) { color: #0d1117; } }

/* ana sayfa */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border);
  background: radial-gradient(1200px 400px at 85% -10%, var(--accent-soft), transparent 70%); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.eyebrow a { color: inherit; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; }
.lede { margin: 0 0 24px; max-width: 680px; font-size: 1.15rem; color: var(--fg-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.band { padding: 48px 0; }
.band + .band { border-top: 1px solid var(--border); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: 1.35rem; }
.sec-head p { margin: 0; color: var(--fg-muted); font-size: 14.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* site kartları: alt alan adları */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0 0 24px; }
.site-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.site-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.site-top { display: flex; align-items: center; gap: 12px; }
.site-top strong { display: block; font-size: 1.05rem; }
.site-top small { display: block; color: var(--accent); font-size: 13px; }
.site-sum { color: var(--fg-muted); font-size: 14.5px; flex: 1; }
.site-tag { align-self: flex-start; font-size: 12px; color: var(--fg-muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; }

/* depo kartları (alt sitelerdeki .card ile aynı biçim) */
.repos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 24px; }
.repo { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); color: var(--fg); }
.repo:hover { border-color: var(--accent); text-decoration: none; }
.repo strong { color: var(--accent); }
.repo span { font-size: 14px; color: var(--fg-muted); flex: 1; }
.repo small { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); margin-top: 6px; }

/* yazı listeleri */
.list { list-style: none; margin: 0 0 24px; padding: 0; }
.list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list li[hidden] { display: none; }
.list li:last-child { border-bottom: 0; }
.list a { color: var(--fg); min-width: 0; }
.list a:hover { color: var(--accent); text-decoration: none; }
.list .t { font-weight: 550; }
.list .d { display: block; font-size: 14px; color: var(--fg-muted); margin-top: 2px; }
.list .when { flex: none; font-size: 13px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.filter { width: 100%; max-width: 420px; height: 36px; margin: 8px 0 12px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft); color: var(--fg); font: inherit; font-size: 14px; }
.filter:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--bg); }

/* sayfa ve yazı tipografisi (alt sitelerdeki article ile aynı) */
.page-head { padding: 40px 0 8px; }
.page-head h1 { margin: 0 0 10px; font-size: 2.1rem; line-height: 1.2; letter-spacing: -.01em; }
.page-head .meta { margin: 0; color: var(--fg-muted); font-size: 14px; }
.prose { padding-bottom: 32px; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.prose h2.year { border: 0; margin: 32px 0 4px; font-size: 1.1rem; color: var(--fg-muted); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose h4 { font-size: 1rem; margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li + li { margin-top: 4px; }
.prose blockquote, .callout { margin: 0 0 16px; padding: 10px 16px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.callout { margin: 8px 0 24px; font-size: 15px; }
.prose code { font-family: var(--mono); font-size: .875em; background: var(--bg-code); padding: .15em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.prose pre { margin: 0 0 16px; padding: 14px 16px; overflow: auto; background: var(--bg-code); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.55; position: relative; }
.prose pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.prose .highlighter-rouge .highlight { background: none; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.prose img { border-radius: var(--radius); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.prose th, .prose td { padding: 7px 10px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.prose th { background: var(--bg-soft); font-weight: 650; }
.prose .langs { color: var(--fg-muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.tags span { font-size: 12.5px; color: var(--fg-muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px; }
.copy-btn { position: absolute; top: 6px; right: 6px; font: 12px var(--font); padding: 2px 8px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg); color: var(--fg-muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 56px; }
.pager a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); font-weight: 600; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager a span { display: block; font-size: 12.5px; font-weight: 400; color: var(--fg-muted); margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }

/* kod renklendirme (rouge), iki temada da okunur */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: var(--fg-muted); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt, .highlight .kc { color: #cf222e; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd, .highlight .se, .highlight .sh { color: #0a3069; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh { color: #0550ae; }
.highlight .nf, .highlight .fm, .highlight .nc { color: #8250df; }
.highlight .nb, .highlight .bp, .highlight .na { color: #953800; }
:root[data-theme="dark"] .highlight .k, :root[data-theme="dark"] .highlight .kd, :root[data-theme="dark"] .highlight .kn, :root[data-theme="dark"] .highlight .kr, :root[data-theme="dark"] .highlight .kt, :root[data-theme="dark"] .highlight .kc { color: #ff7b72; }
:root[data-theme="dark"] .highlight .s, :root[data-theme="dark"] .highlight .s1, :root[data-theme="dark"] .highlight .s2, :root[data-theme="dark"] .highlight .sb, :root[data-theme="dark"] .highlight .sd, :root[data-theme="dark"] .highlight .se, :root[data-theme="dark"] .highlight .sh { color: #a5d6ff; }
:root[data-theme="dark"] .highlight .m, :root[data-theme="dark"] .highlight .mi, :root[data-theme="dark"] .highlight .mf, :root[data-theme="dark"] .highlight .mh { color: #79c0ff; }
:root[data-theme="dark"] .highlight .nf, :root[data-theme="dark"] .highlight .fm, :root[data-theme="dark"] .highlight .nc { color: #d2a8ff; }
:root[data-theme="dark"] .highlight .nb, :root[data-theme="dark"] .highlight .bp, :root[data-theme="dark"] .highlight .na { color: #ffa657; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .highlight .k, :root:not([data-theme="light"]) .highlight .kd, :root:not([data-theme="light"]) .highlight .kn, :root:not([data-theme="light"]) .highlight .kr, :root:not([data-theme="light"]) .highlight .kt, :root:not([data-theme="light"]) .highlight .kc { color: #ff7b72; }
  :root:not([data-theme="light"]) .highlight .s, :root:not([data-theme="light"]) .highlight .s1, :root:not([data-theme="light"]) .highlight .s2, :root:not([data-theme="light"]) .highlight .sb, :root:not([data-theme="light"]) .highlight .sd, :root:not([data-theme="light"]) .highlight .se, :root:not([data-theme="light"]) .highlight .sh { color: #a5d6ff; }
  :root:not([data-theme="light"]) .highlight .m, :root:not([data-theme="light"]) .highlight .mi, :root:not([data-theme="light"]) .highlight .mf, :root:not([data-theme="light"]) .highlight .mh { color: #79c0ff; }
  :root:not([data-theme="light"]) .highlight .nf, :root:not([data-theme="light"]) .highlight .fm, :root:not([data-theme="light"]) .highlight .nc { color: #d2a8ff; }
  :root:not([data-theme="light"]) .highlight .nb, :root:not([data-theme="light"]) .highlight .bp, :root:not([data-theme="light"]) .highlight .na { color: #ffa657; }
}

/* altbilgi */
.foot { margin-top: 24px; padding: 32px 0 40px; border-top: 1px solid var(--border); background: var(--bg-soft); font-size: 14px; color: var(--fg-muted); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.foot p { margin: 8px 0 0; }
.foot .social { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-h { margin: 0 0 8px !important; font-weight: 650; color: var(--fg); }
.foot-sites ul { list-style: none; margin: 0; padding: 0; }
.foot-sites li + li { margin-top: 6px; }
.foot-sites a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); }
.foot-sites a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .two { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 40px; }
  .page-head { padding-top: 28px; }
  .page-head h1 { font-size: 1.7rem; }
  .foot-in { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (max-width: 640px) {
  .brand span { display: none; }
  .top-in { gap: 8px; }
  .nav a { padding: 6px 8px; font-size: 14.5px; }
  .foot .brand span { display: inline; }
  .list li { flex-direction: column; gap: 2px; }
  .sites { grid-template-columns: 1fr; }
}
