/* ClipLocalizer AI Studio — Design Tokens
 * Direction A "Clear Studio" (recommended) is the default theme.
 * Direction B "Night Desk" is available as [data-direction="b"] for palette/type comparison only.
 * Source of truth for developers: ../../docs/tokens.json (kept in sync with this file).
 */
:root {
  /* ---------- Typography ---------- */
  --font-display: "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --font-subtitle: "Inter", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --text-2xs: 11px;  --lh-2xs: 16px;
  --text-xs: 12px;   --lh-xs: 16px;
  --text-sm: 13px;   --lh-sm: 20px;
  --text-md: 14px;   --lh-md: 22px;
  --text-lg: 16px;   --lh-lg: 24px;
  --text-xl: 20px;   --lh-xl: 28px;
  --text-2xl: 24px;  --lh-2xl: 32px;
  --text-3xl: 32px;  --lh-3xl: 38px;
  --text-4xl: 44px;  --lh-4xl: 48px;
  --text-5xl: 60px;  --lh-5xl: 62px;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --tracking-tight: -0.02em; --tracking-label: 0.06em;

  /* ---------- Space (4px base) ---------- */
  --space-0: 0; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px; --space-24: 96px;

  /* ---------- Radius / elevation ---------- */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15, 17, 21, 0.06), 0 0 0 1px rgba(15, 17, 21, 0.04);
  --shadow-2: 0 4px 12px rgba(15, 17, 21, 0.08), 0 0 0 1px rgba(15, 17, 21, 0.05);
  --shadow-3: 0 16px 40px rgba(15, 17, 21, 0.16), 0 0 0 1px rgba(15, 17, 21, 0.06);
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #2F49D1;

  /* ---------- Color: neutrals (light chrome) ---------- */
  --color-bg: #F6F7F9;
  --color-surface: #FFFFFF;
  --color-surface-2: #F0F2F5;
  --color-surface-3: #E7EAEF;
  --color-line: #E3E6EB;
  --color-line-strong: #CDD2DA;
  --color-ink: #0F1115;
  --color-ink-2: #2A2F38;
  --color-muted: #5B6270;
  --color-disabled: #9AA1AD;

  /* ---------- Color: brand accent (Signal Vermilion) ---------- */
  --color-accent: #C2410C;         /* fills with white text: 5.18:1 */
  --color-accent-hover: #A8380A;
  --color-accent-soft: #FFF1EA;
  --color-accent-ink: #9A3412;     /* text on accent-soft: 6.62:1 */
  --color-accent-bright: #FF6A3D;  /* non-text only: playhead, focus marks on dark stage */

  /* ---------- Color: AI Assistant identity (Cobalt) ---------- */
  --color-ai: #2F49D1;             /* 7.01:1 on white */
  --color-ai-hover: #2439B0;
  --color-ai-soft: #EEF1FD;
  --color-ai-line: #C9D1F7;

  /* ---------- Color: semantic ---------- */
  --color-success: #1E7A46; --color-success-soft: #E8F5EE;
  --color-warning: #8A5A00; --color-warning-soft: #FFF6E0;
  --color-danger: #B42318;  --color-danger-soft: #FDECEA;
  --color-info: #2F49D1;    --color-info-soft: #EEF1FD;

  /* ---------- Color: video stage (always dark, for colour-accurate preview) ---------- */
  --stage-bg: #0E1014;
  --stage-surface: #171A20;
  --stage-surface-2: #20242C;
  --stage-line: #2C313B;
  --stage-ink: #F2F4F7;
  --stage-muted: #A6ADBB;
  --track-video: #3B4352;
  --track-subtitle: #4057D6;
  --track-card: #B4530E;
  --track-music: #227A55;
  --track-cut: repeating-linear-gradient(135deg, rgba(255,255,255,0.10) 0 6px, transparent 6px 12px);

  /* ---------- Layout ---------- */
  --sidebar-w: 240px;
  --editor-left-w: 380px;
  --editor-right-w: 300px;
  --topbar-h: 56px;
  --content-max: 1200px;
  --marketing-max: 1160px;

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;

  /* ---------- Z-index ---------- */
  --z-sticky: 10; --z-drawer: 40; --z-dialog: 60; --z-toast: 80; --z-review: 100;
}
