/* Garajinn ortak arayüz kiti — belirteçler TEK yerde (kaynak: docs/tasarim/tedarikci/*.dc.html).
   Yazı tipleri yerel (fonts/, OFL), ikonlar yerel (icons/, Phosphor MIT). */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  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; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  /* Renk */
  --g-ink: #0E1526;            /* metin, kenar çubuğu zemini */
  --g-ink-2: #3A4256;
  --g-muted: #5B6478;
  --g-subtle: #8A93A5;
  --g-bg: #F3F5FA;             /* sayfa zemini */
  --g-surface: #FFFFFF;
  --g-surface-2: #F7F9FC;
  --g-line: #E6EAF1;           /* kart çizgisi */
  --g-line-2: #E1E6EF;
  --g-line-strong: #D5DCE8;    /* ikincil buton, alan çizgisi */
  --g-primary: #1E63E0;
  --g-primary-hover: #164FC4;
  --g-primary-soft: #E6EEFC;
  --g-success: #17683A;  --g-success-soft: #E3F4EA;
  --g-warning: #9A4A06;  --g-warning-soft: #FFF1E0;  --g-warning-accent: #E8791E;
  --g-danger: #B42318;   --g-danger-soft: #FDECEA;
  --g-info: #0B6E83;     --g-info-soft: #E0F3F7;
  --g-side-w: 236px;  /* kenar çubuğu genişliği */
  --g-side-bg: #0E1526;  --g-side-active: #1C2B4B;  --g-side-box: #16213A;
  --g-side-text: #C3CCDF; --g-side-title: #7C8AA8; --g-side-muted: #A9B5CE; --g-side-sub: #93A3C4; --g-side-icon: #6FA0FF;
  /* Yazı */
  --g-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g-font-display: "Manrope", var(--g-font);
  --g-text-xs: 12px; --g-text-sm: 13px; --g-text-md: 14px; --g-text-lg: 15px; --g-text-xl: 18px; --g-text-2xl: 26px;
  /* Yarıçap */
  --g-r-sm: 9px; --g-r-md: 10px; --g-r-lg: 12px; --g-r-xl: 14px; --g-r-2xl: 16px; --g-r-pill: 999px;
  /* Boşluk */
  --g-s-1: 4px; --g-s-2: 8px; --g-s-3: 12px; --g-s-4: 16px; --g-s-5: 20px; --g-s-6: 24px; --g-s-7: 28px; --g-s-8: 32px;
  /* Gölge */
  --g-shadow-primary: 0 6px 14px rgba(30, 99, 224, 0.22);
  --g-focus: 0 0 0 3px rgba(30, 99, 224, 0.35);
  /* Hareket (yalnız prefers-reduced-motion: no-preference altında kullanılır; en çok 200 ms, ease-out) */
  --g-dur-fast: 60ms; --g-dur: 180ms;
  --g-touch: 44px;  /* telefonda en küçük dokunma hedefi (düğme, menü, form alanı) */
  --g-text-input-touch: 16px;  /* telefonda yazılı alan: 16 px'ten küçükse iOS sayfayı yakınlaştırır */
  --g-print-ink: #000; --g-print-paper: #fff;  /* yazdırma: siyah üzerine beyaz, arka plan rengi yok */
  --g-dur-flash: 1000ms;  /* eylem vurgusu (C-1, ürün sahibi): ~1 sn toplam — kısa bekleyiş, sonra söner (son %80'i) */
  --g-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--g-bg); color: var(--g-ink); font-family: var(--g-font); font-size: var(--g-text-md); line-height: 1.45; }
a { color: var(--g-primary); }
a:hover { color: var(--g-primary-hover); }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--g-focus); border-radius: var(--g-r-sm); }
.g-icon { flex: none; vertical-align: middle; }
.g-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Kabuk ---- */
/* Koyu sütun kabuğun zemininde: sayfa ne kadar uzun olursa olsun aşağıya dek koyu (kenar çubuğu yapışkan, görünür yükseklikte
   ve menü uzunsa kendi içinde kayar). */
.g-shell { min-height: 100vh; display: flex; background: linear-gradient(to right, var(--g-side-bg) var(--g-side-w), transparent var(--g-side-w)); }
.g-sidebar { flex: 0 0 var(--g-side-w); background: var(--g-side-bg); padding: 22px 14px 20px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.g-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; text-decoration: none; }
.g-brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--g-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--g-font-display); font-size: 19px; font-weight: 800; }
.g-brand-text { display: flex; flex-direction: column; gap: 1px; }
.g-brand-name { font-family: var(--g-font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.2px; color: #fff; }
.g-brand-sub { font-size: var(--g-text-xs); font-weight: 600; color: var(--g-side-sub); }
.g-sidebar-nav { display: flex; flex-direction: column; gap: 22px; }
.g-sidebar-spacer { flex-grow: 1; }
.g-nav-section { display: flex; flex-direction: column; gap: 4px; }
.g-nav-title { padding: 0 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--g-side-title); }
.g-nav-item { height: 42px; padding: 0 12px; border-radius: var(--g-r-md); color: var(--g-side-text); display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.g-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.g-nav-item.active { background: var(--g-side-active); color: #fff; }
.g-nav-item.active .g-icon { color: var(--g-side-icon); }
.g-nav-label { flex-grow: 1; }
.g-nav-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--g-primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.g-side-box { border-radius: var(--g-r-xl); background: var(--g-side-box); padding: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--g-side-muted); font-size: 12.5px; line-height: 1.45; }
.g-side-box-title { font-size: var(--g-text-sm); font-weight: 700; color: #fff; }
.g-side-box a { color: #8DB4FF; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.g-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.g-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 32px; background: var(--g-surface); border-bottom: 1px solid var(--g-line-2); }
.g-content { width: 100%; max-width: 1240px; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 20px; }

/* ---- Sayfa başlığı ---- */
.g-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.g-page-head-text { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.g-eyebrow { font-size: var(--g-text-sm); font-weight: 600; color: var(--g-muted); }
.g-page-title { font-size: var(--g-text-2xl); font-weight: 800; letter-spacing: -0.4px; }
.g-accent-bar { width: 28px; height: 4px; border-radius: 2px; background: var(--g-primary); }

/* ---- Kart ---- */
.g-card { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-r-2xl); padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.g-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.g-card-titles { display: flex; flex-direction: column; gap: 4px; }
.g-card-title { font-size: 16px; font-weight: 800; }
.g-card-sub { margin: 0; font-size: var(--g-text-sm); color: var(--g-muted); }

/* ---- Buton ---- */
.g-btn { height: 42px; padding: 0 16px; border-radius: var(--g-r-lg); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: var(--g-text-md); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.g-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.g-btn-primary { background: var(--g-primary); color: #fff; box-shadow: var(--g-shadow-primary); padding: 0 18px; }
.g-btn-primary:hover:not(:disabled) { background: var(--g-primary-hover); color: #fff; }
.g-btn-secondary { background: var(--g-surface); color: var(--g-ink); border-color: var(--g-line-strong); }
.g-btn-secondary:hover:not(:disabled) { background: var(--g-surface-2); color: var(--g-ink); }
.g-btn-danger { background: var(--g-surface); color: var(--g-danger); border-color: #F1C4BF; }
.g-btn-danger:hover:not(:disabled) { background: var(--g-danger-soft); color: var(--g-danger); }
.g-btn-ghost { background: transparent; color: var(--g-ink-2); }
.g-btn-ghost:hover:not(:disabled) { background: var(--g-surface-2); color: var(--g-ink); }
.g-btn-block { width: 100%; height: 48px; font-size: var(--g-text-lg); }

/* ---- Form alanı ---- */
.g-field { display: flex; flex-direction: column; gap: 6px; }
.g-label { font-size: var(--g-text-sm); font-weight: 700; color: var(--g-ink-2); }
.g-input { height: 44px; padding: 0 14px; border: 1px solid var(--g-line-strong); border-radius: var(--g-r-lg); background: var(--g-surface); font-family: inherit; font-size: var(--g-text-lg); color: var(--g-ink); width: 100%; }
.g-input::placeholder { color: var(--g-subtle); }
.g-input:focus { outline: none; border-color: var(--g-primary); box-shadow: var(--g-focus); }
.g-input-code { font-variant-numeric: tabular-nums; letter-spacing: 3px; font-size: 18px; font-weight: 700; }
.g-field-error .g-input { border-color: var(--g-danger); }
.g-help { margin: 0; font-size: var(--g-text-xs); color: var(--g-muted); }
.g-error { margin: 0; font-size: var(--g-text-xs); font-weight: 600; color: var(--g-danger); display: flex; gap: 6px; align-items: center; }
.g-form { display: flex; flex-direction: column; gap: 16px; }

/* ---- Bildirim, durum, boş ---- */
.g-tone-neutral { background: var(--g-surface-2); color: var(--g-ink-2); }
.g-tone-info { background: var(--g-info-soft); color: var(--g-info); }
.g-tone-success { background: var(--g-success-soft); color: var(--g-success); }
.g-tone-warning { background: var(--g-warning-soft); color: var(--g-warning); }
.g-tone-danger { background: var(--g-danger-soft); color: var(--g-danger); }
.g-toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--g-r-lg); font-size: var(--g-text-md); font-weight: 600; }
.g-toast-body { flex: 1; }
.g-toast.g-hidden { opacity: 0; }
.g-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--g-r-pill); font-size: var(--g-text-xs); font-weight: 700; white-space: nowrap; }
.g-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 12px; }
.g-empty-icon { width: 52px; height: 52px; border-radius: var(--g-r-2xl); background: var(--g-primary-soft); color: var(--g-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.g-empty-title { margin: 0; font-size: var(--g-text-lg); font-weight: 800; }
.g-empty-text { margin: 0; color: var(--g-muted); max-width: 420px; }
.g-qr { width: 180px; height: 180px; padding: 8px; border: 1px solid var(--g-line); border-radius: var(--g-r-lg); background: #fff; }
.g-qr svg { width: 100%; height: 100%; display: block; }

/* ---- Giriş düzeni (ortalanmış kart) ---- */
.g-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.g-auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.g-auth-brand { display: flex; align-items: center; gap: 11px; }
.g-auth-brand .g-brand-name { color: var(--g-ink); }
.g-auth-brand .g-brand-sub { color: var(--g-muted); }

/* ---- Hareket: yalnız kullanıcı hareketi azaltmayı SEÇMEMİŞSE (reduce'da hiçbiri yok). Dolgu modu yok: animasyon hiç
   çalışmasa da öğe görünür. Dönüşüm (transform) yerleşimi kaydırmaz. ---- */
@media (prefers-reduced-motion: no-preference) {
  .g-btn { transition: background-color var(--g-dur) var(--g-ease-out), border-color var(--g-dur) var(--g-ease-out),
    color var(--g-dur) var(--g-ease-out), box-shadow var(--g-dur) var(--g-ease-out), transform var(--g-dur-fast) var(--g-ease-out); }
  .g-btn:active:not(:disabled) { transform: translateY(1px); }
  .g-toast { animation: g-enter var(--g-dur) var(--g-ease-out); transition: opacity var(--g-dur) var(--g-ease-out); }
  .g-card { animation: g-fade var(--g-dur) var(--g-ease-out); }
}
@keyframes g-enter { from { opacity: 0; transform: translateY(-6px); } }
@keyframes g-fade { from { opacity: 0; } }

/* ---- Telefon genişliği ---- */
@media (max-width: 900px) {
  .g-shell { flex-direction: column; background: none; }
  .g-sidebar { flex: none; position: static; height: auto; gap: 14px; padding: 14px 16px; }
  .g-sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .g-nav-title, .g-sidebar-spacer { display: none; }
  .g-nav-section { flex-direction: row; flex-wrap: wrap; }
  .g-topbar { padding: 12px 16px; }
  .g-content { padding: 20px 16px 40px; }
  .g-side-box { display: none; }
  .g-btn, .g-nav-item, .g-input { min-height: var(--g-touch); }
  .g-input:not(.g-input-code) { font-size: var(--g-text-input-touch); }
}
