/* ═══════════════════════════════════════════════════════════════════════
   ASON Kimlik — sunum katmanı (ason tasarım sistemi · tek-aksan Apple dili)
   Tüm renk/ölçü/yarıçap/tipografi bir token'dan gelir; ham hex/px GÖMÜLMEZ.
   Derinlik = yüzey rengi + 1px hairline + scrim. Gölge YOK. 500 ağırlık YOK.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   YAZI TİPLERİ — ortak ason yazı yüzü (Outfit · IBM Plex Sans · IBM Plex Mono)
   Dosyalar DEPODA: web/public/fonts/ → sunucuda /assets/fonts/… ile sunulur.
   Dış CDN YOK (CSP font-src 'self'). Türkçe için latin + latin-ext ŞART:
     ı (U+0131) · ç ö ü → latin   |   ğ ş İ Ğ Ş (U+0100+) → latin-ext
   Alt-küme başına AYRI @font-face + unicode-range; kayan yüz font-display:swap.
   Outfit ve IBM Plex Sans değişken (variable) yüzlerdir → tek dosya, ağırlık
   aralığı 400–700. IBM Plex Mono ağırlık başına ayrı dosyadır (400, 500).
   unicode-range değerleri Google css2 çıktısıyla birebir (panel/app/fonts.ts).
   ═══════════════════════════════════════════════════════════════════════ */

/* Outfit · latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-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;
}
/* Outfit · latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Sans · latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-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;
}
/* IBM Plex Sans · latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono · latin · 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400.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;
}
/* IBM Plex Mono · latin · 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500.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;
}
/* IBM Plex Mono · latin-ext · 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-ext-400.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono · latin-ext · 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-ext-500.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* Aksan — TEK etkileşimli renk (marka mavisi) */
  --primary:        #4f63e0;
  --primary-focus:  #3f52d6;
  --on-primary:     #ffffff;

  /* Ink — açık yüzeyde metin (saf siyah değil) */
  --ink:            #1d1d1f;
  --ink-muted-80:   #333333;
  --ink-muted-48:   #7a7a7a;

  /* Yüzeyler */
  --canvas:           #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl:    #fafafc;

  /* Hairline / ayraç */
  --hairline:     #e0e0e0;
  --divider-soft: #f0f0f0;

  /* Durum — YALNIZ durum, süsleme değil */
  --danger:  #ff3b30;
  --success: #34c759;
  --warning: #ff9500;

  /* Yarıçap ölçeği */
  /* Sekil olcegi — MUTLAK px. Yuzde KULLANILMAZ.
     🔴 2026-09-09 GERI ALINDI: bes token 22.37% yapilmisti; canlida UC
     kirilma olculdu — (1) elips (input 7.3:1) (2) pill/daire kaybi (35 kural)
     (3) yaricap ICERIGE BAGLI DEGISKEN oldu (.navLink kisa etiketle 12px,
     uzun etiketle 25px): sinif-basina-sabit deger ornek-basina-degiskene dondu.
     Yuzde yaricap yatay ekseni GENISLIGE, dikeyi YUKSEKLIGE cozer (CSS BG L3 5.1).
     22.37% iOS SIMGE izgarasinin tanimidir, yalniz 1:1 kare tuvalde gecerli ->
     asagidaki --radius-squircle token'ina TASINDI (kullanici niyeti korunuyor). */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;
  /* iOS simge orani — YALNIZ aspect-ratio:1/1 KARE yuzeyde kullanilir
     (uygulama/modul simge dosemesi, logo mark kutusu, kare amblem).
     🔴 Dugme · input · kart · cip · nav · nokta BU TOKEN'I KULLANMAZ.
     Kullanan her kural AYNI kuralda aspect-ratio:1/1 beyan ETMEK ZORUNDA. */
  --radius-squircle: 22.37%;

  /* Boşluk ölçeği */
  --space-xxs:  2px;
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   12px;
  --space-base: 16px;
  --space-lg:   20px;
  --space-xl:   24px;
  --space-xxl:  32px;
  --space-xxxl: 48px;

  /* Tipografi — ortak ason yazı yüzü, ağırlık merdiveni 400/600/700 */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
  --text-micro:    11px;
  --text-caption:  13px;
  --text-callout:  15px;
  --text-body:     17px;
  --text-headline: 20px;
  --text-title3:   28px;
  --text-title2:   40px;

  --motion: 180ms ease-out;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas-parchment);
  color: var(--ink);
  font: 400 var(--text-body)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Kart: açık kanvas üzerinde beyaz yüzey (derinlik = yüzey + hairline) ── */
.card {
  width: min(100% - var(--space-xl) * 2, 27rem);
  margin: var(--space-xxxl) auto var(--space-xl);
  padding: var(--space-xl);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}

/* ── Marka kilidi: mavi ok + "ason" kelime-işareti ── */
/* 🔵 KULLANICI KARARI: MARKA LOGOSU = verilen SİYAH ason görseli (mavi ok + siyah
   "ason" kelime-işareti), kart üstünde ORTALANMIŞ. "ason" METİN olarak YAZILMAZ —
   gerçek logo görseli (/assets/logo.png) kullanılır, font logotipi DEĞİL. */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--space-xxl);
}
.brand__logo { display: block; height: 44px; width: auto; }

/* ── Başlık ritmi ── */
h2 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-title3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sub {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-callout);
  font-weight: 400;
  color: var(--ink-muted-48);
  line-height: 1.45;
}
strong { font-weight: 600; }

/* ── Alan etiketi + metin girişleri ── */
label {
  display: block;
  margin: var(--space-base) 0 var(--space-xs);
  font-size: var(--text-callout);
  font-weight: 600;
  color: var(--ink);
}
input[type=email],
input[type=password],
input[type=text] {
  width: 100%;
  padding: var(--space-md) var(--space-base);
  font-family: inherit;
  font-size: var(--text-body);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: border-color var(--motion);
}
input[type=email]::placeholder,
input[type=password]::placeholder,
input[type=text]::placeholder { color: var(--ink-muted-48); }
input[type=email]:focus,
input[type=password]:focus,
input[type=text]:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Birincil eylem: tam-genişlik pill CTA ── */
button,
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  font-family: inherit;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.25;
  color: var(--on-primary);
  text-align: center;
  text-decoration: none;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--motion), background-color var(--motion);
}
button:hover,
.action:hover { background: var(--primary-focus); }
button:active,
.action:active { transform: scale(0.97); background: var(--primary-focus); }
button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* Klavye odağı: yalnız 2px primary-focus halkası (sistemin tek 2px yeri) */
a:focus-visible,
button:focus-visible,
.action:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 2px;
}

/* ── Durum blokları ── */
.error,
.notice {
  margin: 0 0 var(--space-base);
  padding: var(--space-md) var(--space-base);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: var(--text-callout);
  line-height: 1.4;
}
.error  { border-color: var(--danger);  color: var(--danger); }
.notice { border-color: var(--primary); color: var(--primary); }

/* ── İnce/yardımcı metin ── */
.muted {
  margin-top: var(--space-base);
  color: var(--ink-muted-48);
  font-size: var(--text-caption);
  line-height: 1.45;
}
.muted a { color: var(--primary); text-decoration: none; }
.muted a:hover { text-decoration: underline; }
.muted-inline { color: var(--ink-muted-48); font-size: var(--text-caption); }
.mono { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--ink); }
code { font-family: var(--font-mono); font-size: var(--text-callout); word-break: break-all; }

/* ── Rozet: parchment çip ── */
.badge {
  display: inline-block;
  padding: var(--space-xxs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
  font-size: var(--text-caption);
  font-weight: 600;
  vertical-align: middle;
}

/* ── QR (iki adımlı doğrulama kurulumu) ── */
.qr {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-lg);
  padding: var(--space-sm);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

/* ── Yedek kodlar: parchment kod karoları ── */
.codes {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.codes li {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-callout);
  letter-spacing: 0.02em;
  text-align: center;
  background: var(--canvas-parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

/* ── ALTCHA bot doğrulaması ── */
.captcha { margin-top: var(--space-base); }
.captcha-baslik {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-callout);
  font-weight: 600;
  color: var(--ink);
}
.captcha-durum { margin: 0; font-size: var(--text-caption); color: var(--ink-muted-48); }
.captcha-durum[data-durum="hata"] { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════════════
   Hesabım (account) — daha yoğun: parchment zemin, gruplu beyaz kartlar
   ═══════════════════════════════════════════════════════════════════════ */
.card:has(.panel) {
  max-width: 40rem;
  width: min(100% - var(--space-xl) * 2, 40rem);
  margin: var(--space-xxl) auto var(--space-xl);
  padding: 0;
  background: transparent;
  border: 0;
}
.panel {
  margin-top: var(--space-base);
  padding: var(--space-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.panel h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 600;
  color: var(--ink);
}
.panel .sub { margin-bottom: var(--space-md); }

/* Gruplu satır listesi (üyelik / oturum / davet) — pearl yüzey, yumuşak ayraç */
.plain {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
  background: var(--surface-pearl);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.plain li {
  padding: var(--space-md) var(--space-base);
  border-top: 1px solid var(--divider-soft);
  font-size: var(--text-callout);
  line-height: 1.5;
}
.plain li:first-child { border-top: 0; }

/* Satır içi ikincil eylem — tam-genişlik pill değil, kompakt */
.plain button {
  width: auto;
  margin: var(--space-sm) 0 0;
  padding: var(--space-sm) var(--space-base);
  font-size: var(--text-callout);
}

/* ═══════════════════════════════════════════════════════════════════════
   Kök `/` — YALNIZ LOGO (id kimlik sağlayıcı; doğrudan ziyaretçiye işlev yok)
   ═══════════════════════════════════════════════════════════════════════ */
.id-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--space-xl);
}
.id-root__logo { width: 96px; height: auto; }
