/* Portaki — Color tokens
   Source of truth: portaki-web/DESIGN.md §2, src/app/globals.css, public/design-handoff/shared.jsx
   Base tokens are raw hex/rgba; semantic aliases below map them to UI roles. */

:root {
  /* ── Base neutrals (ink scale) ───────────────────────────── */
  --ink-950: #09090b;   /* primary text, dark sidebar bg */
  --ink-900: #18181b;   /* dark surfaces, secondary sidebar bg */
  --ink-500: #71717a;   /* secondary text, labels, hints */
  --ink-400: #a1a1aa;   /* placeholders, tertiary text */
  --ink-100: #f4f4f5;   /* subtle fills, table headers */
  --ink-50:  #fafafa;   /* app/page background */
  --white:   #ffffff;   /* surface / card background */

  --line-1: rgba(9, 9, 11, 0.08);  /* card / input borders */
  --line-2: rgba(9, 9, 11, 0.05);  /* internal separators */
  --line-3: rgba(9, 9, 11, 0.14);  /* input borders (stronger) */

  /* ── Signature — Amber (single primary brand color) ─────── */
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --amber-soft: rgba(245, 158, 11, 0.08);
  --amber-dark: #a16207;      /* text-on-amber-tint */
  --amber-emphasis: #b45309;
  --amber-solid-hover: #d97706;

  /* ── Semantic accents ────────────────────────────────────── */
  --lime: #84cc16;            /* success / "live" / en cours */
  --lime-dark: #4d7c0f;
  --lime-dim: rgba(132, 204, 22, 0.14);

  --azure: #2b7fbf;           /* info / traveler / member role */
  --azure-dim: rgba(43, 127, 191, 0.12);

  --violet: #7c3aed;          /* concierge role */
  --violet-dim: rgba(124, 58, 237, 0.12);

  --orange: #ea580c;          /* maintenance role / warm accent */
  --orange-dim: rgba(234, 88, 12, 0.12);

  --red: #ef4444;             /* destructive UI actions */
  --red-dim: rgba(239, 68, 68, 0.1);

  --rouge: #b43e2e;           /* urgent/error toasts — guest-facing vocabulary, distinct from --red */
  --rouge-dim: rgba(180, 62, 46, 0.12);

  /* ── Dark sidebar (host dashboard chrome) ────────────────── */
  --sb-bg: #09090b;
  --sb-bg-2: #18181b;
  --sb-line: rgba(255, 255, 255, 0.06);
  --sb-text: #fafafa;
  --sb-mute: rgba(255, 255, 255, 0.55);
  --sb-hint: rgba(255, 255, 255, 0.38);
  --sb-active-bg: rgba(245, 158, 11, 0.12);
  --sb-hover-bg: rgba(255, 255, 255, 0.04);

  /* ── Semantic aliases — use these in components ──────────── */
  --color-bg-page: var(--ink-50);
  --color-bg-surface: var(--white);
  --color-bg-muted: var(--ink-100);
  --color-text: var(--ink-950);
  --color-text-muted: var(--ink-500);
  --color-text-hint: var(--ink-400);
  --color-border: var(--line-1);
  --color-border-md: var(--line-3);
  --color-primary: var(--amber);
  --color-on-primary: var(--ink-950);

  /* Glassmorphism — the system's primary surface treatment (cards, modals, sheets, nav) */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);

  /* Mesh background blobs — sit behind glass surfaces so translucency reads (never glass on flat white) */
  --mesh-blob-amber: rgba(245, 158, 11, 0.16);
  --mesh-blob-lime: rgba(132, 204, 22, 0.12);
  --mesh-blob-azure: rgba(43, 127, 191, 0.1);
}
