/* BeastSetup / BeastStudio ortak tasarım sistemi
   Site, panel, yönetim ve masaüstü uygulaması aynı dosyayı kullanır.
   Fontlar ./fonts altında, dışarıdan font yüklenmez. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap;
  src: url(fonts/bricolage-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; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap;
  src: url(fonts/bricolage-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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-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; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/manrope-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 {
  /* renk: soğuk beyaz zemin, lacivert mürekkep, tek mavi */
  --paper: #F4F7FD;
  --surface: #FFFFFF;
  --surface-2: #EAF0FC;
  --ink: #0A1430;
  --ink-2: #26324F;
  --muted: #4A5878;          /* beyaz üstünde 7.1:1 */
  --line: #DCE4F5;
  --line-strong: #B9C7E6;
  --blue: #1F4FE0;           /* ana renk, beyaz yazı 6.2:1 */
  --blue-hover: #1A43C4;
  --blue-press: #1538A6;
  --blue-2: #2F6BFF;
  --blue-3: #1234B0;
  --sky: #8FB4FF;
  --sky-soft: #DCE7FF;
  --live: #FF2E55;           /* sadece CANLI göstergesi */
  --ok: #138A52;  --ok-soft: #E2F5EB;
  --warn: #A35F00; --warn-soft: #FFF2DB;
  --bad: #C42347;  --bad-soft: #FDE6EB;
  --team-blue: #2F6BFF; --team-orange: #F08A24; --team-green: #22B573;

  /* yazı */
  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-text: "Manrope", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --t-xs: 13px; --t-sm: 14px; --t-body: 16px; --t-lead: 18px;
  --t-h4: 20px; --t-h3: 24px; --t-h2: clamp(30px, 2.2vw + 18px, 44px); --t-h1: clamp(40px, 4vw + 18px, 76px);

  /* biçim: iç içe yüzeylerde dış = iç + boşluk */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-border: 0 0 0 1px oklch(0 0 0 / .06), 0 1px 2px -1px oklch(0 0 0 / .06), 0 2px 4px 0 oklch(0 0 0 / .04);
  --shadow-border-hover: 0 0 0 1px oklch(0 0 0 / .08), 0 1px 2px -1px oklch(0 0 0 / .08), 0 2px 4px 0 oklch(0 0 0 / .06);
  --shadow-lift: 0 0 0 1px oklch(0.25 0.08 265 / .06), 0 12px 32px -12px oklch(0.25 0.12 265 / .28);
  --shadow-float: 0 0 0 1px oklch(0.25 0.08 265 / .06), 0 30px 60px -24px oklch(0.25 0.14 265 / .38);

  --wrap: 1200px; --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1); --dur: 160ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.6 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--ink); text-wrap: balance; font-variation-settings: "opsz" 96; }
h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h4 { font-size: var(--t-h4); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--blue-hover); } }
::selection { background: var(--sky-soft); }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* düğmeler */
.btn { --bh: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--bh); padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid transparent; font: 700 15px/1 var(--font-text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 90ms var(--ease), color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--icon-end { padding-inline-end: 18px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 0 oklch(1 0 0 / .18) inset, 0 6px 16px -8px oklch(0.45 0.2 265 / .7); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: transparent; box-shadow: var(--shadow-border); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--light { background: #fff; color: var(--blue-3); }
.btn--sm { --bh: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { --bh: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--blue-hover); color: #fff; }
  .btn--secondary:hover { box-shadow: var(--shadow-border-hover); background: #fbfcff; color: var(--ink); }
  .btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
  .btn--danger:hover { background: #a91d3c; color: #fff; }
  .btn--light:hover { background: var(--sky-soft); color: var(--blue-3); }
}
.btn--primary:active { background: var(--blue-press); }

/* form */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.field .hint { font-size: var(--t-xs); color: var(--muted); }
.field .err { font-size: var(--t-xs); color: var(--bad); font-weight: 600; }
.input, input[type=text].input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface);
  font: 500 15px/1.4 var(--font-text); color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: #8391b0; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.switch { position: relative; display: inline-flex; width: 40px; height: 24px; flex: none; }
.switch input { appearance: none; margin: 0; width: 40px; height: 24px; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: background var(--dur); }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform var(--dur) var(--ease); }
.switch input:checked { background: var(--blue); } .switch input:checked::after { transform: translateX(16px); }

/* yüzeyler */
.card { background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--shadow-border); padding: 24px; }
.card--flat { box-shadow: none; border-color: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 700 12.5px/1 var(--font-text); background: var(--sky-soft); color: var(--blue-3); white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); } .badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); } .badge--muted { background: var(--surface-2); color: var(--muted); }
.badge--live { background: var(--live); color: #fff; }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: live-dot 1.4s infinite; }
@keyframes live-dot { 50% { opacity: .3; } }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: var(--t-sm); font-weight: 600; background: var(--sky-soft); color: var(--blue-3); }
.alert--ok { background: var(--ok-soft); color: var(--ok); } .alert--bad { background: var(--bad-soft); color: var(--bad); } .alert--warn { background: var(--warn-soft); color: var(--warn); }

/* tablo */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); }
.table th { text-align: left; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
@media (hover: hover) { .table tbody tr:hover td { background: #f8faff; } }
.table-wrap { overflow-x: auto; overscroll-behavior: contain; }

/* marka */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo svg { width: 32px; height: 32px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
