/* Unbounded (OFL), siteden sunulur: Google Fonts'a istek yok (KVKK). Tek değişken dosya 600–700 ağırlıklarını kapsar;
   latin-ext yalnızca ğ/ş/İ gibi harfler sayfada geçince indirilir. */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/unbounded-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: 'Unbounded'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/unbounded-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; }

/* Apple HIG temelli ortak katman (apple-a/b/c/d kullanıyor).
   Kaynaklar: apple-design skill › references/hig/
   - typography.md: sistem fontu gövdede, en az 17px gövde / 11px alt sınır, ince ağırlık yok
   - color.md + dark-mode.md: açık + koyu görünüm, uygulamaya özel görünüm düğmesi yok
   - accessibility.md: metin 4.5:1, büyük/kalın metin 3:1, kontrol 44x44
   - buttons.md: basılma durumu, belirgin stil yalnızca ana eylemde
   - materials.md: cam efekti yalnızca yüzen kontrol katmanında (menü)
   - motion.md: hareket isteğe bağlı, Reduce Motion'a uyar */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, sans-serif;

  /* açık görünüm (kontrastlar beyaz / #f5f5f7 üzerinde ölçüldü) */
  --bg: #ffffff; --bg2: #f5f5f7; --surface: #ffffff; --media: #e8e8ed;
  --label: #1d1d1f;            /* 16.8:1 */
  --label2: #5f5f64;           /* 6.4:1 beyaz, 5.8:1 #f5f5f7 */
  --label3: #86868b;           /* 3.3:1, yalnızca 18px+ ya da kalın */
  --sep: rgba(0, 0, 0, .12);
  --fill: rgba(120, 120, 128, .14);
  --accent: #0066cc; --on-accent: #ffffff;   /* 5.6:1 */
  --live: #1b7a3a; --review: #b25000;        /* 5.4:1, 5.2:1 */
  --glass: rgba(255, 255, 255, .72); --glass-line: rgba(0, 0, 0, .08);
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
  --r-card: 20px; --r-ctl: 12px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg2: #111113; --surface: #1c1c1e; --media: #2a2a2e;
    --label: #f5f5f7;          /* 19.3:1 */
    --label2: #a1a1a6;         /* 8.2:1 siyah, 6.6:1 #1c1c1e */
    --label3: #86868b;         /* 5.8:1 */
    --sep: rgba(255, 255, 255, .14);
    --fill: rgba(120, 120, 128, .28);
    --accent: #2997ff; --on-accent: #000000; /* 7.0:1 */
    --live: #30d158; --review: #ff9f0a;      /* 8.4:1, 8.3:1 */
    --glass: rgba(28, 28, 30, .7); --glass-line: rgba(255, 255, 255, .1);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* rem tabanlı: tarayıcının yazı boyutu ayarı (Dynamic Type karşılığı) tüm metni büyütür */
body { font: 400 1.0625rem/1.47 var(--font); background: var(--bg); color: var(--label); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--label); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* yüzen menü: tek cam yüzey (materials.md › Liquid Glass yalnızca kontrol katmanında) */
.bar { position: fixed; top: 12px; left: 50%; translate: -50% 0; z-index: 50; width: min(1180px, 100% - 24px);
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 6px 6px 18px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.bar .brand { font: 600 1.125rem/1 var(--font-display); letter-spacing: -0.02em; margin-right: auto; padding: 10px 0; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: .9375rem; color: var(--label2); transition: background .2s, color .2s; }
.bar nav a:hover { background: var(--fill); color: var(--label); }

/* bölümlü kontrol: dil seçimi (görünüm değil, içerik dili) */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 12px; background: var(--fill); }
.seg button { min-width: 48px; min-height: 40px; border: 0; background: none; border-radius: 10px; font-size: .875rem; font-weight: 600; color: var(--label2); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.seg button:active { transform: scale(.96); }

/* düğmeler: başlık stili büyük harf, 44px, basılma durumu */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font-size: 1rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .12s, background .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn-prominent { background: var(--accent); color: var(--on-accent); }
.btn-prominent:hover { filter: brightness(1.08); }
.btn-plain { background: var(--fill); color: var(--label); }
.btn-plain:hover { filter: brightness(1.05); }
.btn-link { background: none; color: var(--accent); padding: 0 6px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* durum: renk + şekil + yazı (color.md › Inclusive color) */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; font-weight: 600; color: var(--label2); }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none; }
.status.review::before { background: none; border: 2px solid var(--review); width: 7px; height: 7px; }

/* form: etiket görünür, geri bildirim arayüzde (feedback.md, entering-data.md) */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--label2); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.input { flex: 1 1 240px; min-height: 48px; border-radius: var(--r-ctl); border: 1px solid var(--sep); background: var(--surface); padding: 0 16px; font-size: 1.0625rem; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--review); }
.hint { font-size: .875rem; color: var(--label2); min-height: 1.3em; }
.hint.ok { color: var(--live); font-weight: 600; }
.hint.err { color: var(--review); font-weight: 600; }

.foot { border-top: 1px solid var(--sep); padding: 28px 0 40px; font-size: .875rem; color: var(--label2); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--label); }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot a.mk { color: inherit; }
.foot a.mk:hover { color: var(--label); }

@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar .btn span.long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar { background: var(--bg2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --sep: rgba(127, 127, 127, .6); --label2: var(--label); --glass-line: var(--label); }
}
