/* Gemeinsame Basis für den Pixel-/Minecraft-Look — von der öffentlichen
   Streamer-Seite (streamers.css) UND vom Streamer-Portal (portal.css)
   genutzt, damit beide exakt dieselbe Optik wie die OBS-Overlays
   (overlays/stats.html, overlays/events.html) haben. Muss VOR streamers.css
   bzw. portal.css eingebunden werden. */

@import url('https://fonts.googleapis.com/css2?family=Tiny5&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Tiny5 ist ein waschechter Pixel-Font (für sehr kleine Raster gedacht) —
   sieht bei großen, kurzen Überschriften/Badges/Buttons gut aus, ist aber
   bei Fließtext/Formularen/Tabellen kaum lesbar. Deshalb zwei Font-Stacks:
   --font-display (Tiny5) nur für kurze, große/dekorative Texte, --font-body
   (JetBrains Mono) für ALLES was man tatsächlich lesen/eingeben muss. */
:root {
  --font-display: 'Tiny5', 'Courier New', monospace;
  --font-body:    'JetBrains Mono', 'Courier New', monospace;
  --wood-bg:      #0c0a08;
  --panel-bg:     #1a120a;
  --panel-bg2:    #14100a;
  --gold:         #c8a84b;
  --gold-bright:  #f5d060;
  --gold-outline: #6b4c1e;
  --green:        #a3c77a;
  --green-outline:#2a5a1e;
  --red:          #e05555;
  --red-outline:  #6b1e1e;
  --yellow:       #e0b555;
  --yellow-outline:#6b551e;
  --blue:         #6b9bd1;
  --blue-outline: #1e3a5a;
  --purple:       #a37bc7;
  --purple-outline:#4a2a5a;
  --tan:          #c8b89a;
  --tan-dim:      #7a6a52;
  --white:        #ffffff;
}

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

html, body {
  background: var(--wood-bg);
  color: var(--tan);
  font-family: var(--font-body);
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(200,168,75,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(163,199,122,0.05) 0%, transparent 55%),
    var(--wood-bg);
}

a { color: inherit; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--panel-bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-outline); border-radius: 0; }

.hidden { display: none !important; }
.text-muted { color: var(--tan-dim); }
.text-teal  { color: var(--green); }
.text-red   { color: var(--red); }
.text-yellow{ color: var(--yellow); }
.text-green { color: var(--green); }

@keyframes pixel-pulse {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0.35; }
}

/* ── Wooden-Panel-Baustein (identisch zu overlays/*.html) ── */
.pixel-panel {
  position: relative;
  background: var(--panel-bg);
  border: 4px solid var(--gold);
  outline: 2px solid var(--gold-outline);
  outline-offset: -6px;
  box-shadow: 0 0 0 1px #000, 4px 4px 0 #000;
}
.pixel-panel::before, .pixel-panel::after,
.pixel-panel .corner-bl, .pixel-panel .corner-br {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
}
.pixel-panel::before { top: 3px; left: 3px; }
.pixel-panel::after  { top: 3px; right: 3px; }
.pixel-panel .corner-bl { bottom: 3px; left: 3px; }
.pixel-panel .corner-br { bottom: 3px; right: 3px; }

/* ── Minecraft-Button-artiger Stein-Bezel (statt SaaS-Buttons) ── */
.pixel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #4a4a4a;
  border: none;
  box-shadow:
    inset 2px 2px 0 #6e6e6e,
    inset -2px -2px 0 #232323,
    0 0 0 1px #000;
  color: #e6e6e6;
  text-decoration: none;
  font-family: var(--font-display);
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
  transition: filter 0.1s;
}
.pixel-btn:hover:not(:disabled) { filter: brightness(1.25); }
.pixel-btn:active:not(:disabled) {
  box-shadow: inset -2px -2px 0 #6e6e6e, inset 2px 2px 0 #232323, 0 0 0 1px #000;
}
.pixel-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Sektions-Titel ("🔴 Live" / "⚙️ Einrichtung" usw.) ── */
.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-bright);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}
.section-title:first-of-type { margin-top: 0; }
.section-title .line { flex: 1; height: 1px; background: var(--gold-outline); }
