/* berkalparslan.github.io — ortak stil
   Ana sayfa kendi stilini içinde taşıyor (tek dosya kalsın diye).
   Bu dosya alt sayfalar içindir: gizlilik, destek, uygulama sayfaları. */

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --subtle: #6e6e73;
  --border: #e5e5ea;
  --accent: #0071e3;
  --radius: 18px;
}

.theme-toggle {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--subtle);
  font-size: 14px; line-height: 1;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Koyu tema sistem tercihinden değil, kullanıcının seçiminden gelir.
   Varsayılan açık; seçim localStorage'da "bb-theme" altında. */
:root[data-theme="dark"] {
  color-scheme: dark;
    --bg: #0d0d0f;
    --surface: #16161a;
    --text: #f2f2f7;
    --subtle: #9a9aa2;
    --border: #2a2a30;
  --accent: #4da3ff;
}

* { 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.65;
  -webkit-font-smoothing: antialiased;
}

header {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.header-inner nav { display: flex; gap: 18px; font-size: 14px; }
.header-inner nav a { color: var(--accent); text-decoration: none; }
.header-inner nav a:hover { text-decoration: underline; }

main { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 .5rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.5rem 0 .35rem; }
p, ul, ol { margin-bottom: .85rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: .3rem 0; }
a { color: var(--accent); }

.updated { color: var(--subtle); font-size: .9rem; margin-bottom: 1.5rem; }
.lede { font-size: 1.05rem; color: var(--subtle); margin-bottom: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  margin-left: 8px;
  vertical-align: middle;
}

.list-links { list-style: none; padding: 0; }
.list-links li { margin: 0 0 12px; }
.list-links a { font-weight: 600; text-decoration: none; }
.list-links a:hover { text-decoration: underline; }
.list-links span { display: block; color: var(--subtle); font-size: .92rem; font-weight: 400; }

hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

.lang-note {
  font-size: .85rem;
  color: var(--subtle);
  border-left: 3px solid var(--border);
  padding-left: 12px;
  margin-bottom: 2rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--subtle);
}

footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  main { padding: 28px 18px 56px; }
  h1 { font-size: 1.65rem; }
}
