/**
 * Verketracker - Streamer Dashboard & Dark Minimal Design System (update-2)
 * Eliminates AI slop (blurred glows, nested cards, pill badges) in favor of crisp 1px borders, matte dark surfaces, and razor-sharp typography.
 */

:root {
  --bg-dark: #090a0f;
  --surface-card: #11131c;
  --surface-hover: #181b28;
  --surface-accent: #1e2230;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(244, 63, 94, 0.4);
  
  --accent-rose: #f43f5e;
  --accent-red: #ef4444;
  --accent-emerald: #10b981;
  --accent-purple: #9146ff;
  --accent-amber: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-body: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Base Reset & Typography --- */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e2230;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-rose);
}

/* --- Dashboard Cards (No Slop, Matte Finish) --- */
.dashboard-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-card-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-card-hover:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* --- Glass Panel Compatibility --- */
.glass-panel {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
}

/* --- Pulse Indicator --- */
.pulse-emerald {
  position: relative;
  display: inline-flex;
}
.pulse-emerald::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  background-color: var(--accent-emerald);
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* --- Toast Notifications (Fix & Polish) --- */
#verke-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.verke-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0f172a;
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #ffffff;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verke-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* --- Skeleton Loading Shimmer --- */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.06) 37%, rgba(255,255,255,0.02) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* --- Badges & Buttons --- */
.badge-game {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  border-radius: 0.5rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-dashboard {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.btn-dashboard:hover {
  background: var(--surface-hover);
  border-color: var(--border-color-hover);
  color: #ffffff;
}

/* --- High-Craft Matte Dashboard Transitions --- */
.social-card {
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.social-card:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

