/* ══════════════════════════════════════════════════════════════
   PulseAI Design System — Fintech Violet-Black Theme
   Bold violet + deep black gradient, neon red/cyan accents, glassmorphism
   ══════════════════════════════════════════════════════════════ */

:root {
  /* ── Core palette — Deep violet-black with neon red accents ── */
  --background: 250 20% 4%;
  --foreground: 250 15% 95%;

  --card: 250 25% 8%;
  --card-foreground: 250 15% 95%;

  --popover: 250 25% 8%;
  --popover-foreground: 250 15% 95%;

  /* Electric violet primary */
  --primary: 270 85% 65%;
  --primary-foreground: 0 0% 100%;

  /* Neon red accent (secondary) */
  --secondary: 0 90% 60%;
  --secondary-foreground: 0 0% 100%;

  --muted: 250 20% 12%;
  --muted-foreground: 250 12% 50%;

  /* Cyan accent for contrast */
  --accent: 195 90% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 250 20% 14%;
  --input: 250 20% 14%;
  --ring: 270 85% 65%;

  --radius: 0.875rem;

  /* ── Neon glow colors ── */
  --neon-red: 0 90% 55%;
  --neon-violet: 270 100% 70%;
  --neon-cyan: 195 100% 55%;

  /* ── Sidebar tokens ── */
  --sidebar-background: 250 25% 5%;
  --sidebar-foreground: 250 12% 60%;
  --sidebar-primary: 270 85% 65%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 250 20% 10%;
  --sidebar-accent-foreground: 250 15% 95%;
  --sidebar-border: 250 20% 12%;
  --sidebar-ring: 270 85% 65%;

  /* ── Extended palette ── */
  --success: 145 70% 50%;
  --success-foreground: 0 0% 100%;
  --warning: 45 100% 55%;
  --warning-foreground: 0 0% 10%;
  --info: 270 85% 65%;
  --info-foreground: 0 0% 100%;

  /* ── Score colors ── */
  --score-high: 145 70% 50%;
  --score-medium: 45 100% 55%;
  --score-low: 0 84% 60%;

  /* ── Gradients ── */
  --gradient-primary: linear-gradient(135deg, hsl(270 85% 65%), hsl(300 80% 65%));
  --gradient-secondary: linear-gradient(135deg, hsl(0 90% 55%), hsl(15 90% 60%));
  --gradient-accent: linear-gradient(135deg, hsl(195 90% 55%), hsl(270 85% 65%));
  --gradient-dark: linear-gradient(180deg, hsl(250 25% 7%), hsl(250 20% 3%));

  /* ── Glass properties ── */
  --glass-bg: hsl(250 25% 8% / 0.6);
  --glass-border: hsl(0 90% 55% / 0.15);
  --glass-blur: 16px;

  /* ── Shadows ── */
  --shadow-glow: 0 0 20px hsl(270 85% 65% / 0.3);
  --shadow-glow-red: 0 0 20px hsl(0 90% 55% / 0.2);
  --shadow-card: 0 4px 24px hsl(0 0% 0% / 0.4), 0 0 1px hsl(0 90% 55% / 0.1);
  --shadow-neon: 0 0 10px hsl(0 90% 55% / 0.15), 0 0 40px hsl(270 85% 65% / 0.08);
}

/* ── Light mode ── */
.light {
  --background: 260 25% 97%;
  --foreground: 250 20% 10%;

  --card: 0 0% 100%;
  --card-foreground: 250 20% 10%;

  --popover: 0 0% 100%;
  --popover-foreground: 250 20% 10%;

  --primary: 270 85% 55%;
  --primary-foreground: 0 0% 100%;

  --secondary: 0 85% 55%;
  --secondary-foreground: 0 0% 100%;

  --muted: 255 20% 94%;
  --muted-foreground: 255 15% 40%;

  --accent: 195 85% 42%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 55%;
  --destructive-foreground: 0 0% 100%;

  --border: 255 15% 88%;
  --input: 255 15% 88%;
  --ring: 270 85% 55%;

  --neon-red: 0 85% 50%;
  --neon-violet: 270 85% 55%;
  --neon-cyan: 195 85% 42%;

  --sidebar-background: 255 15% 96%;
  --sidebar-foreground: 255 15% 35%;
  --sidebar-primary: 270 85% 55%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 255 15% 92%;
  --sidebar-accent-foreground: 250 20% 10%;
  --sidebar-border: 255 15% 88%;
  --sidebar-ring: 270 85% 55%;

  --glass-bg: hsl(0 0% 100% / 0.7);
  --glass-border: hsl(0 85% 50% / 0.12);
  --glass-blur: 12px;

  --shadow-glow: 0 0 20px hsl(270 85% 55% / 0.15);
  --shadow-glow-red: 0 0 15px hsl(0 85% 50% / 0.1);
  --shadow-card: 0 4px 20px hsl(0 0% 0% / 0.06);
  --shadow-neon: 0 0 8px hsl(0 85% 50% / 0.08), 0 0 30px hsl(270 85% 55% / 0.05);
}
