/* ═══════════════════════════════════════════════
   shop.css — Globale CSS für alle Store-Seiten
   index.html · leaderboard.html · soundboard.html
   ═══════════════════════════════════════════════ */

/* ── Google Fonts + Icons ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wdth,wght@0,75..100,100..900;1,75..100,100..900&display=swap&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* ── Variablen & Reset ── */
:root {
  --accent: #00A3A3; --accent-dim: #007a7a;
  --gold: #f0c040; --bg: #09090f;
  --surface: rgba(209,213,219,0.05); --surface2: rgba(209,213,219,0.08);
  --border: #374151; --muted: #adadb8;
  --sidebar-w: 220px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #09090f; color: #efeff1;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}

/* ── Background Orbs ── */
body::before, body::after {
  content: ''; position: fixed; border-radius: 50%;
  pointer-events: none; z-index: -1;
  width: 700px; height: 700px; filter: blur(120px);
}
body::before { background: rgba(34,211,238,0.07); top: -100px; left: -100px; }
body::after  { background: rgba(232,121,249,0.07); bottom: -100px; right: -100px; }

/* ── Header ── */
.snav-header {
  position: sticky; top: 0; z-index: 50;
  background: #0d0f1a; border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 56px; display: flex; align-items: center; flex-shrink: 0;
}
.snav-header-inner { width: 100%; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.snav-logo { text-decoration: none; display: flex; align-items: center; }
.snav-logo-a { font-size: 20px; font-weight: 900; color: var(--accent); }
.snav-logo-sep { font-size: 16px; font-weight: 300; color: var(--muted); font-style: italic; }
.snav-logo-b { font-size: 20px; font-weight: 900; color: #efeff1; }

/* ── Coin / Prestige Badge ── */
.snav-coin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(240,192,64,0.1); border: 1px solid rgba(240,192,64,0.28);
  border-radius: 999px; padding: 4px 8px 4px 12px;
  font-weight: 700; font-size: 15px; color: var(--gold);
}
.snav-coin-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 2px 3px;
  color: rgba(240,192,64,0.5); border-radius: 50%;
  transition: color 0.15s, transform 0.4s; line-height: 1;
}
.snav-coin-refresh:hover { color: var(--gold); }
.snav-coin-refresh.spinning { animation: snav-spin 0.6s linear; }
@keyframes snav-spin { to { transform: rotate(360deg); } }
.snav-prestige-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(145,71,255,0.1); border: 1px solid rgba(145,71,255,0.25);
  border-radius: 999px; padding: 4px 10px;
  font-weight: 600; font-size: 13px; color: #bf94ff;
}
.snav-btn-twitch {
  display: inline-flex; align-items: center; gap: 7px;
  background: #9147ff; color: #fff; padding: 7px 16px;
  border-radius: 7px; border: none; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: background 0.15s; white-space: nowrap; text-decoration: none;
}
.snav-btn-twitch:hover { background: #772ce8; }

/* ── Offline Banner ── */
.snav-offline {
  display: none; background: rgba(229,57,53,0.12); border-bottom: 2px solid #e53935;
  padding: 8px 20px; text-align: center; font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; color: #ef9a9a; position: sticky; top: 56px; z-index: 40;
}
.snav-offline.show { display: block; }

/* ── Layout ── */
.snav-body { display: flex; flex: 1; min-height: 0; }
.snav-main { flex: 1; min-width: 0; }

/* ── Sidebar ── */
.snav-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  position: sticky; top: 56px; height: calc(100vh - 56px);
  overflow-y: auto; display: flex; flex-direction: column; padding: 12px 10px;
}
.snav-section {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; margin-top: 4px;
}
.snav-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: background 0.12s, color 0.12s;
  border: none; background: transparent; width: 100%; text-align: left; text-decoration: none;
}
.snav-item:hover { background: var(--surface2); color: #efeff1; }
.snav-item.active { background: rgba(0,163,163,0.14); color: var(--accent); }
.snav-item .sni-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.snav-item .sni-label { flex: 1; }
.snav-divider { height: 1px; background: var(--border); margin: 8px 4px; }

/* ── Toast ── */
.snav-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 18px; font-size: 14px;
  transform: translateY(60px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); pointer-events: none;
}
.snav-toast.show { transform: translateY(0); opacity: 1; }
.snav-toast.success { border-color: #00c851; }
.snav-toast.error   { border-color: #e53935; }

/* ── Footer ── */
footer {
  text-align: center; padding: 18px 20px; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--border); margin-top: auto;
}
footer a { color: var(--muted); margin: 0 8px; text-decoration: underline; }
footer a:hover, footer a.snav-footer-active { color: var(--accent); }

/* ── Shared Page Styles ── */
.main-content { padding: 28px 28px 40px; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.page-subtitle { color: var(--muted); font-size: 14px; }

.search-wrap { position: relative; max-width: 320px; margin-bottom: 20px; }
.search-wrap span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 11px 7px 32px;
  color: #efeff1; font-size: 13px; font-family: 'Roboto', sans-serif; outline: none;
  transition: border-color 0.15s;
}
.search-wrap input:focus { border-color: var(--accent); }

.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; color: var(--muted); }
.item-grid .loading-state, .item-grid .empty-state { grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ── Scroll-to-top ── */
#scroll-top-btn { display: flex; align-items: center; justify-content: center; }

/* ── Mobile Drawer ── */
@media (max-width: 700px) {
  .snav-sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4); background: #0d0f1a;
  }
  .snav-sidebar.open { transform: translateX(0); }
  .snav-drawer-backdrop { display: none; position: fixed; inset: 0; z-index: 199; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
  .snav-drawer-backdrop.show { display: block; }
  .snav-burger { display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: #efeff1; padding: 6px; border-radius: 6px; transition: background 0.15s; }
  .snav-burger:hover { background: var(--surface2); }
  .snav-coin-badge, .snav-prestige-badge, #snav-user-area { display: none !important; }
  .snav-logo-a, .snav-logo-b { font-size: 15px; }
  .snav-logo-sep { font-size: 13px; }
  .snav-drawer-user { padding: 14px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .snav-drawer-user-info { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
  .snav-drawer-user-info img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); flex-shrink: 0; }
  .snav-drawer-user-name { font-size: 14px; font-weight: 600; }
  .snav-drawer-coins { display: inline-flex; align-items: center; gap: 5px; background: rgba(240,192,64,0.1); border: 1px solid rgba(240,192,64,0.28); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 13px; color: var(--gold); margin-bottom: 6px; }
  .snav-drawer-prestige { display: inline-flex; align-items: center; gap: 4px; background: rgba(145,71,255,0.1); border: 1px solid rgba(145,71,255,0.25); border-radius: 999px; padding: 3px 9px; font-size: 12px; color: #bf94ff; margin-left: 6px; }
  .snav-drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
  .snav-drawer-actions a { font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; }
  .snav-drawer-login { padding: 14px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .main-content { padding: 16px 12px 32px; }
}
@media (min-width: 701px) {
  .snav-burger { display: none; }
  .snav-drawer-backdrop { display: none !important; }
  .snav-drawer-user { display: none; }
  .snav-drawer-login { display: none; }
}
