/* ============================================================
   MONEY FOR NOTHING — Design Tokens
   Premium dark-mode palette with glassmorphism accents
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ─── Color Palette ─── */

  /* Backgrounds */
  --bg-primary:       hsl(225, 25%, 6%);
  --bg-secondary:     hsl(225, 22%, 10%);
  --bg-tertiary:      hsl(225, 20%, 14%);
  --bg-elevated:      hsl(225, 18%, 18%);

  /* Glass */
  --glass-bg:         rgba(255, 255, 255, 0.03);
  --glass-bg-hover:   rgba(255, 255, 255, 0.06);
  --glass-border:     rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.14);
  --glass-blur:       20px;

  /* Accents */
  --accent-profit:    hsl(145, 80%, 50%);
  --accent-profit-dim: hsl(145, 60%, 30%);
  --accent-profit-bg: hsla(145, 80%, 50%, 0.10);

  --accent-purple:    hsl(265, 90%, 65%);
  --accent-purple-dim: hsl(265, 70%, 40%);
  --accent-purple-bg: hsla(265, 90%, 65%, 0.10);

  --accent-blue:      hsl(210, 100%, 60%);
  --accent-blue-dim:  hsl(210, 80%, 35%);
  --accent-blue-bg:   hsla(210, 100%, 60%, 0.10);

  --accent-gold:      hsl(45, 95%, 55%);
  --accent-gold-dim:  hsl(45, 70%, 30%);
  --accent-gold-bg:   hsla(45, 95%, 55%, 0.10);

  --accent-danger:    hsl(0, 85%, 60%);
  --accent-danger-dim: hsl(0, 65%, 35%);
  --accent-danger-bg: hsla(0, 85%, 60%, 0.10);

  --accent-warning:   hsl(35, 95%, 55%);
  --accent-warning-bg: hsla(35, 95%, 55%, 0.10);

  /* Text */
  --text-primary:     hsl(0, 0%, 95%);
  --text-secondary:   hsl(0, 0%, 65%);
  --text-tertiary:    hsl(0, 0%, 45%);
  --text-disabled:    hsl(0, 0%, 30%);
  --text-inverse:     hsl(225, 25%, 6%);

  /* Borders */
  --border-subtle:    rgba(255, 255, 255, 0.06);
  --border-default:   rgba(255, 255, 255, 0.10);
  --border-strong:    rgba(255, 255, 255, 0.18);

  /* ─── Typography ─── */
  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:        'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* Font Sizes (fluid scale) */
  --text-xs:          0.75rem;    /* 12px */
  --text-sm:          0.8125rem;  /* 13px */
  --text-base:        0.875rem;   /* 14px */
  --text-md:          1rem;       /* 16px */
  --text-lg:          1.125rem;   /* 18px */
  --text-xl:          1.25rem;    /* 20px */
  --text-2xl:         1.5rem;     /* 24px */
  --text-3xl:         1.875rem;   /* 30px */
  --text-4xl:         2.25rem;    /* 36px */
  --text-5xl:         3rem;       /* 48px */

  /* Font Weights */
  --weight-light:     300;
  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-tight:    1.2;
  --leading-snug:     1.35;
  --leading-normal:   1.5;
  --leading-relaxed:  1.65;

  /* ─── Spacing ─── */
  --space-1:          0.25rem;
  --space-2:          0.5rem;
  --space-3:          0.75rem;
  --space-4:          1rem;
  --space-5:          1.25rem;
  --space-6:          1.5rem;
  --space-8:          2rem;
  --space-10:         2.5rem;
  --space-12:         3rem;
  --space-16:         4rem;
  --space-20:         5rem;

  /* ─── Borders & Radius ─── */
  --radius-sm:        0.375rem;
  --radius-md:        0.5rem;
  --radius-lg:        0.75rem;
  --radius-xl:        1rem;
  --radius-2xl:       1.25rem;
  --radius-full:      9999px;

  /* ─── Shadows ─── */
  --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:        0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg:        0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl:        0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-profit: 0 0 20px hsla(145, 80%, 50%, 0.15);
  --shadow-glow-purple: 0 0 20px hsla(265, 90%, 65%, 0.15);
  --shadow-glow-blue:   0 0 20px hsla(210, 100%, 60%, 0.15);
  --shadow-glow-danger: 0 0 20px hsla(0, 85%, 60%, 0.15);

  /* ─── Transitions ─── */
  --ease-default:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:          cubic-bezier(0.4, 0, 1, 1);
  --ease-out:         cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:    150ms;
  --duration-normal:  250ms;
  --duration-slow:    400ms;
  --duration-slower:  600ms;

  /* ─── Layout ─── */
  --sidebar-width:    260px;
  --sidebar-collapsed: 72px;
  --header-height:    64px;
  --content-max-width: 1400px;

  /* ─── Z-Index Scale ─── */
  --z-base:           1;
  --z-dropdown:       100;
  --z-sticky:         200;
  --z-overlay:        300;
  --z-modal:          400;
  --z-toast:          500;

  /* ─── Gradients ─── */
  --gradient-profit:  linear-gradient(135deg, hsl(145, 80%, 50%), hsl(165, 70%, 45%));
  --gradient-purple:  linear-gradient(135deg, hsl(265, 90%, 65%), hsl(285, 80%, 55%));
  --gradient-blue:    linear-gradient(135deg, hsl(210, 100%, 60%), hsl(230, 90%, 55%));
  --gradient-gold:    linear-gradient(135deg, hsl(45, 95%, 55%), hsl(30, 90%, 50%));
  --gradient-danger:  linear-gradient(135deg, hsl(0, 85%, 60%), hsl(15, 80%, 55%));
  --gradient-dark:    linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  --gradient-glass:   linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}
