/* ============================================================
   THAMUR — shared design system
   Single source of truth for colors, type, and core components.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* surfaces — Zombotron-inspired minimal dark theme */
  --bg:            #0a0e1a;
  --surface-1:     #121829;
  --surface-2:     #1b2438;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* text — high contrast */
  --text:          #f5f7fc;
  --text-dim:      #c7cce0;
  --text-faint:    #8a93a6;

  /* accents — bright, distinct */
  --accent:        #00e5ff;
  --accent-2:      #b896ff;
  --accent-3:      #10b981;
  --accent-glow:   rgba(0,229,255,0.12);
  --grad:          linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-success:  linear-gradient(135deg, var(--accent-3), #06b6d4);
  --danger:        #ff4757;
  --success:       #10b981;
  --warning:       #f59e0b;
  --gold:          #fbbf24;

  /* shape */
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 7px;
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);

  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Space Grotesk', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
::selection { background: var(--accent-glow); color: #fff; }
html { scroll-behavior: smooth; }

/* ── Aurora backdrop ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.aurora::before, .aurora::after {
  content: ''; position: absolute; width: 55vmax; height: 55vmax;
  border-radius: 50%; filter: blur(130px); opacity: 0.16;
}
.aurora::before { background: var(--accent);   top: -18vmax; left: -12vmax; }
.aurora::after  { background: var(--accent-2); bottom: -20vmax; right: -12vmax; }

/* ── Layout ── */
.container { max-width: 820px; margin: 0 auto; padding: 28px 18px 80px; }

.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 26px; border-bottom: 1px solid var(--border);
  background: rgba(8,10,18,0.72); backdrop-filter: blur(14px);
}
.app-header nav a { color: var(--text-dim); font-size: 13.5px; margin-left: 22px; transition: color .18s; }
.app-header nav a:hover { color: var(--accent); }

.brand {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-size: 20px;
}

/* ── Buttons (improved contrast and feedback) ── */
.btn {
  font-family: var(--font); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 11px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #0a0e1a;
  box-shadow: 0 6px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all .2s cubic-bezier(0.23,1,0.320,1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn:active { transform: translateY(0); }
.btn-primary { /* alias of base */ }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--text-dim);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,229,255,0.05);
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b7a, #ff4757);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,71,87,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,71,87,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-success {
  background: var(--grad-success);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16,185,129,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16,185,129,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Inputs ── */
.input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text); padding: 11px 14px;
  font-size: 14px; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── Cards ── */
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
}
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 14px;
}
.muted { color: var(--text-faint); font-size: 13px; }

/* ── Badges (improved contrast) ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 6px; border: 1px solid;
}
.badge-admin {
  color: #fff;
  border-color: #ff4757;
  background: linear-gradient(135deg, rgba(255,71,87,0.25), rgba(255,71,87,0.15));
  box-shadow: inset 0 0 10px rgba(255,71,87,0.15);
}
.badge-mod {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,229,255,0.15));
  box-shadow: inset 0 0 10px rgba(0,229,255,0.15);
}
.badge-level {
  color: #1a1a1a;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), rgba(251,191,36,0.7));
  box-shadow: inset 0 0 10px rgba(251,191,36,0.2);
}
.badge-cw {
  color: #fff;
  border-color: var(--accent-2);
  background: linear-gradient(135deg, rgba(184,150,255,0.25), rgba(184,150,255,0.15));
  box-shadow: inset 0 0 10px rgba(184,150,255,0.15);
}

/* ── Icons (SVG-based, styled) ── */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.2em; height: 1.2em; flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2; fill: none; }
.icon.filled svg { fill: currentColor; stroke: none; }
.icon.sm { width: 1em; height: 1em; }
.icon.lg { width: 1.4em; height: 1.4em; }

/* ── Motion ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .45s cubic-bezier(.2,.7,.3,1) both; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3046; }
