/* ================================================
   SHARED — Variables et styles communs à toutes
   les pages du projet (game, panel, admin, stream)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --color-bg:      #01010F;
  --gold:          #C9A84C;
  --gold-bright:   #F0D080;
  --gold-dim:      rgba(201, 168, 76, 0.15);
  --gold-line:     rgba(201, 168, 76, 0.28);
  --gold-glow:     rgba(201, 168, 76, 0.10);
  --accent-red:    #FF4D6A;
  --text-primary:  rgba(255, 255, 255, 0.90);
  --text-muted:    rgba(255, 255, 255, 0.40);
  --border:        rgba(201, 168, 76, 0.20);
  --font-display:  'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-main:     'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--color-bg);
  font-family: var(--font-main);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ── Bouton gold standard ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--gold);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-line);
}
.btn-outline:hover {
  background: var(--gold-dim);
  color: var(--gold-bright);
}

/* ── Card ── */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 30px;
  background: var(--gold);
  opacity: 0.7;
}

/* ── Badge statut ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.badge-active  { background: rgba(80, 200, 120, 0.15); color: #50C878; border: 1px solid rgba(80,200,120,0.30); }
.badge-warning { background: rgba(201, 168, 76, 0.15); color: var(--gold); border: 1px solid var(--gold-line); }
.badge-danger  { background: rgba(255, 77, 106, 0.15); color: var(--accent-red); border: 1px solid rgba(255,77,106,0.30); }

/* ── Input ── */
.input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
.input::placeholder { color: var(--text-muted); }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
