/*
 * ClawPad Web Demo -- Design Tokens
 * Default theme: Starry Night
 *
 * Variable names mirror the PWA token convention (theme.js).
 * Override per-theme via data-theme selectors in themes.css.
 */

:root {
  /* ── UI Surface ─────────────────────────────── */
  --bg: #0B1020;
  --sidebar-bg: #12192C;
  --surface: #1A2338;
  --line: #24314A;

  /* ── Text ───────────────────────────────────── */
  --ink: #F4F2E8;
  --ink-raw: #F4F2E8;
  --ink-soft: #C9C1A9;
  --ink-soft-raw: #C9C1A9;
  --ink-muted: #8B846F;
  --ink-muted-raw: #8B846F;
  --brand: #F2C94C;
  --ink-on-brand: #0B1020;
  --text-shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.3);
  --text-shadow-muted: 0 1px 0 rgba(0, 0, 0, 0.22);

  /* ── Interactive ────────────────────────────── */
  --hover-bg: #202B42;
  --active-bg: #27334C;
  --selection-bg: #3A4C6B;

  /* ── Chat ───────────────────────────────────── */
  --chat-header: #12192C;
  --chat-bg: #0B1020;
  --bubble-user: #253955;
  --bubble-user-text: #F4F2E8;
  --bubble-ai: #161E2E;
  --bubble-ai-text: #F4F2E8;
  --timestamp: #C9C1A9;

  /* ── Input ──────────────────────────────────── */
  --input-bg: #1F283D;
  --input-border: #24314A;
  --input-text: #F4F2E8;
  --input-placeholder: #C9C1A9;
  --input-focus: #F2C94C;

  /* ── Buttons ────────────────────────────────── */
  --btn-primary: #E0B84A;
  --btn-primary-hover: #F2D36B;
  --btn-primary-text: #0B1020;
  --btn-secondary: #1A2338;
  --btn-secondary-hover: #202B42;
  --btn-secondary-text: #F4F2E8;
  --btn-danger: #E45C5C;
  --btn-danger-hover: #F07A7A;
  --btn-danger-text: #0B1020;
  --icon-color: #C1B9A1;
  --icon-hover: #E8E6DC;

  /* ── Status ─────────────────────────────────── */
  --ok: #3CCF7A;
  --warn: #E8A840;
  --danger: #E45C5C;
  --info: #F2C94C;

  /* ── Computed ───────────────────────────────── */
  --bloom-a: rgba(242, 201, 76, 0.08);
  --bloom-b: rgba(242, 201, 76, 0.04);
  --shadow: rgba(11, 16, 32, 0.5);
  --shadow-light: rgba(11, 16, 32, 0.25);

  /* ── Glassmorphism ──────────────────────────── */
  --glass-bg: rgba(18, 25, 44, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 16px;
  --glass-bg-heavy: rgba(18, 25, 44, 0.88);

  /* ── Gradients ──────────────────────────────── */
  --gradient-brand: linear-gradient(135deg, #F2C94C 0%, #E8A840 100%);
  --gradient-surface: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  --gradient-user-bubble: linear-gradient(135deg, #253955 0%, #1E3048 100%);
  --gradient-body: linear-gradient(180deg, #0F1628 0%, #0B1020 40%, #080C18 100%);

  /* ── Enhanced Shadows ───────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 4px 24px rgba(242, 201, 76, 0.2), 0 0 8px rgba(242, 201, 76, 0.1);

  /* ── Radius System ──────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* ── Spacing ────────────────────────────────── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* ── Font Stacks ────────────────────────────── */
  --font-sans: 'Inter', 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
}
