/* ═══════════════════════════════════════════
   TopSEO Global Design Tokens
   Theme: OLED Nebula (Premium Monochrome)
   Framework: Anti-Generic Design
═══════════════════════════════════════════ */

:root {
  /* Surfaces & Backgrounds (Zero-Weight / OLED Black) */
  --bg-primary: #030303;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(20, 20, 22, 0.6);
  --bg-elevated: rgba(30, 30, 34, 0.8);
  --bg-surface: #0a0a0a;
  
  /* Borders (Razor-thin glassmorphism) */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.3);
  
  /* Brand Accents (Monochrome Silver instead of Vivid Neons) */
  --accent: #f8fafc;
  --accent-hover: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-muted: rgba(255, 255, 255, 0.05);
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);

  /* Antigravity Physics */
  --ease-antigravity: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-magnetic: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ═══════════════════════════════════════════
   Variavista brand tokens — CLIENT PORTAL ONLY
   Scoped to body.portal so the admin (OLED silver)
   :root above is never touched. Flips the silver
   --accent to brand blue in ONE place.
═══════════════════════════════════════════ */
body.portal {
  --vv-aubergine: #3C2E42;
  --vv-blue: #38A1DB;
  --vv-pink: #EC74FC;
  --vv-yellow: #FFE100; /* SOLO CTA */
  --vv-blue-rgb: 56, 161, 219;
  --vv-pink-rgb: 236, 116, 252;
  --vv-aubergine-rgb: 60, 46, 66;
  --vv-pos: #34d399;
  --vv-neg: #fb7185;
  --vv-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Brand flip: silver → Variavista blue (marca) */
  --accent: var(--vv-blue);
  --accent-hover: #5cb7e6;
  --accent-glow: rgba(56, 161, 219, 0.15);

  font-family: 'Kanit', 'Inter', -apple-system, sans-serif;
}

/* Base resets requiring the tokens universally */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Particle Loader Component - Anti-Generic high-fidelity loader */
.particle-loader {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.particle-loader span {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: particleFloat 1.4s var(--ease-antigravity) infinite both;
  opacity: 0.8;
  box-shadow: 0 0 8px var(--accent-glow);
}

.particle-loader span:nth-child(1) { animation-delay: -0.32s; }
.particle-loader span:nth-child(2) { animation-delay: -0.16s; }
.particle-loader span:nth-child(3) { animation-delay: 0s; }

@keyframes particleFloat {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}
