/* ===== Luuci Guard — ortak tasarım sistemi (koyu, Steam esintili) ===== */
:root {
  --bg: #070b11;
  --bg-2: #0b121b;
  --panel: #111a25;
  --panel-2: #16212f;
  --panel-3: #1c2a3b;
  --line: #22324a;
  --line-2: #2c405c;
  --text: #e6edf5;
  --muted: #8ea2b8;
  --dim: #5f748c;
  --accent: #66c0f4;
  --accent-2: #1a9fff;
  --accent-glow: rgba(102, 192, 244, .35);
  --ok: #8bc34a;
  --ok-bg: rgba(139, 195, 74, .12);
  --warn: #f0b542;
  --warn-bg: rgba(240, 181, 66, .12);
  --bad: #f2555a;
  --bad-bg: rgba(242, 85, 90, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(26, 159, 255, .16), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(102, 192, 244, .08), transparent 60%),
    linear-gradient(180deg, #0a1018 0%, var(--bg) 55%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-2); color: #fff; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Düğmeler ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { background: var(--panel-3); border-color: #3a5577; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible, .input:focus-visible, .chip:focus-visible, .card-game:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  border-color: transparent; color: #04121e;
  background: linear-gradient(135deg, #7fd0ff, var(--accent-2));
  box-shadow: 0 8px 24px rgba(26, 159, 255, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, #95d8ff, #3aaeff); box-shadow: 0 10px 30px rgba(26, 159, 255, .4); }
.btn-ok { border-color: transparent; color: #0d1a05; background: linear-gradient(135deg, #a5d76a, #6fae2f); }
.btn-danger { border-color: rgba(242, 85, 90, .4); color: #ffb3b5; background: var(--bad-bg); }
.btn-danger:hover { background: rgba(242, 85, 90, .2); border-color: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255,255,255,.04); color: var(--text); border-color: transparent; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Form ===== */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field small { color: var(--dim); font-size: 12px; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(102, 192, 244, .15); background: #0d1620; }
.input::placeholder { color: var(--dim); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--muted); font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-2); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===== Kart / panel ===== */
.card {
  background: linear-gradient(180deg, rgba(22, 33, 47, .92), rgba(17, 26, 37, .92));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
.card-pad { padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 16px; }

/* ===== Rozet ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border: 1px solid transparent; }
.badge-new { background: linear-gradient(135deg, #ffcf5a, #ff8a3d); color: #2b1400; }
.badge-online { background: rgba(102, 192, 244, .15); color: var(--accent); border-color: rgba(102, 192, 244, .35); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(139, 195, 74, .35); }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(240, 181, 66, .35); }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(242, 85, 90, .35); }
.badge-special { background: linear-gradient(135deg, #c18cff, #7a4dff); color: #fff; border-color: transparent; }
.badge-dim { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line-2); }

/* ===== Bildirim (toast) ===== */
.toasts { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: #142131; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  animation: toastIn .35s var(--ease);
}
.toast.ok { border-color: rgba(139,195,74,.5); }
.toast.err { border-color: rgba(242,85,90,.5); }
.toast .t-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent-2); color: #fff; }
.toast.ok .t-ico { background: var(--ok); color: #0d1a05; }
.toast.err .t-ico { background: var(--bad); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ===== Modal ===== */
.modal-back {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(3, 6, 10, .72); backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: linear-gradient(180deg, #172434, #111a25); border: 1px solid var(--line-2);
  border-radius: 18px; box-shadow: var(--shadow); animation: pop .3s var(--ease);
}
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: inherit; z-index: 1; }
.modal-head h2 { margin: 0; font-size: 18px; flex: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.x-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.x-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ===== Sekmeler ===== */
.tabs { display: flex; gap: 6px; margin: 22px 0 18px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.tab .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent-2); color: #fff; font-size: 11px; display: grid; place-items: center; }

/* ===== Boş durum / iskelet ===== */
.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.skel { background: linear-gradient(90deg, #131d29 0%, #1a2738 50%, #131d29 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; background: var(--warn-bg); border: 1px solid rgba(240,181,66,.3); color: #f3d79a; }
.notice.info { background: rgba(102,192,244,.08); border-color: rgba(102,192,244,.3); color: #bfe3fa; }
.notice.bad { background: var(--bad-bg); border-color: rgba(242,85,90,.35); color: #ffc4c6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
