/* CBA Core — ortak görünüm: marka paketi (Gece zemin, Beyaz yazı, tek kırmızı vurgu).
   Camgöbeği ve amber yalnız ekran yazılarında: camgöbeği = CBA Core'un ekranı, amber = klavyenin ekranı. */

/* Yazı tipi: Archivo — SIL Open Font License 1.1 (fonts/OFL.txt), ticari kullanımı ücretsiz; sitenin kendi dosyalarından.
   Bütün sitede bu yazı tipi; yalnız "CBA CORE" yazısı uygulamanın açılış ekranındaki gibi sistem yazı tipinde (.brand). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0C0C0E;     /* Gece */
  --panel: #141417;
  --line: #26262c;
  --text: #F5F5F7;   /* Beyaz */
  --ink: #111113;    /* Siyah — açık zemin üstündeki yazı */
  --muted: #9d9da6;
  --red: #E4002B;    /* CBA Kırmızı — tek kırmızı */
  --cyan: #00e5ff;   /* yalnız CBA Core ekran yazıları */
  --amber: #ffb826;  /* yalnız klavye ekran yazıları */
  --core-top: #FFF299;                    /* "CORE" altın geçişi — uygulamanın açılış ekranındaki gibi, yukarıdan aşağı */
  --core-bottom: #D98C00;
  --radius: 14px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;   /* yalnız "CBA CORE" yazısı */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }

/* Dil: betik seçilen dili <html>'e yazar, öbür dil gizlenir. Betik çalışmazsa iki dil alt alta görünür. */
html[data-active-lang="tr"] [data-lang="en"],
html[data-active-lang="en"] [data-lang="tr"] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  padding: 8px 14px; border-radius: 8px;
  background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { left: 12px; }

/* Üst şerit */
.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(12, 12, 14, .88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

/* Logo + yazı: işaret solda (marka sayfasındaki yerleşim); Gizlilik ve Destek'te ana sayfaya bağlantı. "CBA CORE" yazısı
   uygulamanın açılış ekranıyla birebir: sistem yazı tipi (Apple cihazlarda SF Pro), en kalın ağırlık, harf aralığı yazı boyunun
   .014 / .17'si; "CBA" Beyaz, "CORE" altın ve yukarıdan aşağı geçişli; parıltı yok (açılış ekranında da yok) */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: auto; height: 32px; }
.brand .word { font: 900 16px/1 var(--font-system); letter-spacing: calc(.014em / .17); margin-right: calc(-.014em / .17); }
.brand .word b { font-weight: inherit; }
.brand .word span { color: var(--core-bottom); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand .word span {
    background: linear-gradient(180deg, var(--core-top), var(--core-bottom));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.lang { display: flex; gap: 6px; }
.lang a {
  min-width: 46px; padding: 9px 12px;
  font: 600 13px/1 var(--font); font-stretch: 125%; letter-spacing: .1em; text-align: center; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
}
.lang a:hover { color: var(--text); border-color: var(--muted); }
.lang a[aria-current="true"] { color: var(--ink); background: var(--text); border-color: var(--text); }

/* Metin */
main { padding-bottom: 8px; }
html:not([data-active-lang]) article + article { margin-top: 72px; padding-top: 8px; border-top: 1px solid var(--line); }
h1 { font: 560 clamp(32px, 7vw, 46px)/1.1 var(--font); letter-spacing: -.02em; margin: 48px 0 10px; }
h2 { font: 600 22px/1.3 var(--font); letter-spacing: -.01em; margin: 48px 0 12px; }
h2::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--red); }
h3 { font: 600 18px/1.35 var(--font); margin: 30px 0 8px; color: var(--text); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 8px 0; }
li::marker { color: var(--muted); }
strong { font-weight: 650; color: var(--text); }

.meta { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.lead {
  margin: 0 0 8px; padding: 18px 20px;
  font-size: 19px; line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius);
}

/* Ekran yazıları: camgöbeği = CBA Core'un ekranı, amber = klavyenin ekranı */
.ui, .kbd {
  padding: 1px 7px;
  font: 600 .84em/1.5 var(--font); letter-spacing: .02em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ui { white-space: nowrap; color: var(--cyan); background: rgba(0, 229, 255, .08); border: 1px solid rgba(0, 229, 255, .3); }
.kbd { color: var(--amber); background: rgba(255, 184, 38, .08); border: 1px solid rgba(255, 184, 38, .3); }

/* Kutular */
.card { margin: 28px 0; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card > :last-child { margin-bottom: 0; }
.label { margin: 0 0 4px; font: 600 11px/1.2 var(--font); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mail { margin: 0 0 12px; font-size: clamp(22px, 5.5vw, 28px); font-weight: 700; overflow-wrap: anywhere; }
.mail a { text-decoration-thickness: 2px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 7px 14px; font-size: 15px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; }
.toc a:hover { border-color: var(--red); }

/* Sık sorulanlar */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 40px 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font: 400 24px/1 var(--font); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; color: var(--muted); }
.faq details > div { padding: 0 0 14px; }
.faq details > div > :last-child { margin-bottom: 0; }

.more { margin-top: 28px; color: var(--muted); }

/* Alt şerit */
.foot {
  margin-top: 80px;
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; line-height: 1.6;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.foot p { margin: 0; max-width: 62ch; }
html:not([data-active-lang]) .foot [data-lang] + [data-lang] { margin-top: 24px; }

/* "Sayfa bulunamadı" (404) */
.bulunamadi h1 { margin-bottom: 24px; }
.bulunamadi main { padding-bottom: 80px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { margin-top: 36px; }
  .lead { font-size: 17px; padding: 16px; }
  .card { padding: 18px; }
}
@media (max-width: 360px) {
  .brand { gap: 10px; }
  .brand img { height: 28px; }
  .brand .word { font-size: 14px; }
}
