/* ============================================================
   CONVENTITY — BASE  (reset + tipografi + bileşenler)
   tokens.css'e bağımlı. Sayfa CSS'i bunun üzerine kurulur.
   Karakter: berrak (1px saç çizgileri, çizgiyle yapı,
   tabular-nums), cam yalnız üst katmanlarda (§6).
   ============================================================ */

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--pf); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pf); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--gold); color: var(--brand-ink); }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- akışkan tipografi (clamp) ---- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
h1 { font-family: var(--font-display); font-weight: 400; line-height: 1.1;  font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: .01em; }
h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 var(--sp-4); }
em { font-style: italic; font-family: var(--font-display); font-weight: 400; }

/* mono etiket (eyebrow) */
.eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pf);
}
.eyebrow--gold { color: var(--gold); }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---- düğmeler ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--pf) 45%, var(--line-2)); text-decoration: none; }
.btn-primary { background: var(--pf); color: #fff; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 12.5px; }

/* pill / rozet */
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--paper-2); color: var(--ink-2);
}
.badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--r-pill);
  color: var(--pf); background: var(--pf-glow);
  border: 1px solid color-mix(in srgb, var(--pf) 30%, transparent);
}
.badge--gold { color: var(--warn); background: color-mix(in srgb, var(--gold) 16%, transparent);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent); }

/* ---- kart (cam DEĞİL — okunabilirlik önce) ---- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-1);
}
.hairline { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }

/* ---- formlar ---- */
label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px var(--sp-3);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pf); background: var(--paper); }
textarea { min-height: 88px; resize: vertical; }
::placeholder { color: var(--muted); opacity: .8; }

/* ---- tablo ---- */
.table-wrap { border: 1px solid var(--line-2); border-radius: var(--r-md);
  overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--paper); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 11px 16px; border-bottom: 1.5px solid var(--line-2); }
table.grid td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
table.grid tr:last-child td { border-bottom: 0; }

/* ---- cam yardımcı sınıfı (YALNIZ sticky bar/drawer/modal) ---- */
.glass {
  background: var(--glass-surface);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--nav-bg); }   /* opak yedek */
}
@media (max-width: 720px) { :root { --glass-blur: 6px; } }  /* mobilde blur yarıya */

/* ---- UNCLASSIFIED sınıflandırma şeridi (nötr) ---- */
.classbar {
  background: var(--brand-ink); color: #DBE2F0; text-align: center;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .28em;
  font-weight: 600; text-transform: uppercase; padding: 3px 0;
}

/* ---- erişim ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
