/* ============================================================
   Brolla — Color tokens
   Purple is the signature, but reserved: lead with deep near-black
   indigo surfaces; spend accent purple only on what's focused,
   active, or interactive. "If everything is purple, nothing matters."
   ============================================================ */

:root {
  /* ---- Brand accent (the folder-play mark) ---- */
  --accent: #5d34fa;          /* Primary — buttons, active, focus · folder body */
  --accent-soft: #9d51fb;     /* Hover, links, glow tint · the folder tab */
  --accent-deep: #4a1fd6;     /* Gradient end */
  --accent-dim: rgba(93, 52, 250, 0.14); /* Tinted fills, chips */
  --accent-rgb: 93, 52, 250; /* @kind color */

  /* ---- Surfaces — dark (primary theme) ---- */
  --bg-0: #090e1a;            /* Canvas — app / page background */
  --bg-1: #0c0d20;            /* Surface — sidebar, card base */
  --bg-2: #14172f;            /* Elevated — inputs, hover targets */
  --bg-3: #1c2040;            /* Highest — active hover */

  /* ---- Text ---- */
  --text-0: #f5f7ff;          /* Headings, key copy */
  --text-1: #a3adc7;          /* Body, descriptions */
  --text-2: #6e7894;          /* Captions, meta */

  /* ---- Semantic / status ---- */
  --danger: #ff6b6b;          /* Destructive, errors */
  --danger-dim: rgba(255, 107, 107, 0.12);
  --success: #4ed08a;         /* Confirmation, success states */
  --success-dim: rgba(78, 208, 138, 0.12);

  /* ---- Lines ---- */
  --border: rgba(255, 255, 255, 0.07);   /* Hairline separators */
  --border-strong: rgba(255, 255, 255, 0.14);

  /* ---- Gradients ---- */
  --grad-brand: linear-gradient(135deg, #5d34fa, #4a1fd6); /* @kind color */   /* Active nav, primary buttons, the mark */
  --grad-surface: linear-gradient(180deg, #11132a, #0c0e1f); /* @kind color */ /* Cards & panels barely lift off canvas */
  --grad-ambient: radial-gradient(circle, rgba(93, 52, 250, 0.18), transparent 70%); /* @kind color */

  /* ---- Semantic aliases (theme-agnostic names) ---- */
  --surface-canvas: var(--bg-0);
  --surface-card: var(--bg-1);
  --surface-input: var(--bg-2);
  --surface-hover: var(--bg-3);
  --text-heading: var(--text-0);
  --text-body: var(--text-1);
  --text-muted: var(--text-2);
  --link: var(--accent-soft);
  --focus-ring: var(--accent);
}

/* ============================================================
   Light theme — daylight surfaces, accent purple unchanged,
   glows become subtle elevation shadows.
   Apply with  <html data-theme="light">  or  .theme-light
   ============================================================ */
[data-theme="light"],
.theme-light {
  --bg-0: #f4f5fa;
  --bg-1: #ffffff;
  --bg-2: #eef0f7;
  --bg-3: #e3e6f0;

  --text-0: #1a1f33;
  --text-1: #4a5170;
  --text-2: #8089a3;

  --border: rgba(20, 24, 45, 0.08);
  --border-strong: rgba(20, 24, 45, 0.16);

  --accent-dim: rgba(93, 52, 250, 0.10);
  --grad-surface: linear-gradient(180deg, #ffffff, #f7f8fc);
  --grad-ambient: radial-gradient(circle, rgba(93, 52, 250, 0.12), transparent 70%); /* @kind color */
}
