/* BASE.CSS - ScorePulse V9.1 Dark Glass */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg-base:        #080b14;
  --bg-mid:         #0d1117;
  --bg-card:        rgba(255,255,255,0.035);
  --bg-card-hover:  rgba(255,255,255,0.065);
  --bg-sidebar:     linear-gradient(180deg, #0e1020 0%, #09090f 100%);

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-bright:  rgba(255,255,255,0.12);
  --border-purple:  rgba(139,92,246,0.35);

  /* Purple */
  --purple:         #8b5cf6;
  --purple-bright:  #a78bfa;
  --purple-dim:     #4c1d95;
  --purple-glow:    rgba(139,92,246,0.3);

  /* Green */
  --green:          #10b981;
  --green-bright:   #34d399;
  --green-glow:     rgba(16,185,129,0.25);

  /* Red */
  --red:            #ef4444;
  --red-glow:       rgba(239,68,68,0.2);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim:       #475569;

  /* Fonts */
  --font-ui:        'Inter', sans-serif;
  --font-mono:      'Roboto Mono', monospace;
  --font-tactical:  'Audiowide', cursive;

  /* Layout */
  --sidebar-w:      248px;
  --radius:         8px;
  --radius-lg:      12px;
  --transition:     0.2s ease;

  /* Glass */
  --glass-bg:       rgba(255,255,255,0.04);
  --glass-border:   rgba(255,255,255,0.08);
  --glass-blur:     blur(16px);
}

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
}

/* Marca de água de fundo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../static/images/antigravity-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* Gradiente de cor por cima da marca de água */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(139,92,246,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(16,185,129,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#lock-overlay, .app-shell { position: relative; z-index: 1; }

img { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Welcome toast ────────────────────────────────────────────────────────── */
#welcome-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 15, 22, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.2), 0 4px 24px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  min-width: 280px;
}
#welcome-toast.wt-in  { opacity: 1; transform: translateY(0); }
#welcome-toast.wt-out { opacity: 0; transform: translateY(12px); }

.wt-icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(139,92,246,0.7));
}
.wt-body { display: flex; flex-direction: column; gap: 3px; }
.wt-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.wt-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
