/* ============================================
   Design Tokens / CSS Variables — Bright Modern (Poki-style)
   ============================================ */

:root {
  /* Primary — Poki Purple */
  --cg-primary: #6147ff;
  --cg-primary-dark: #4c35e0;
  --cg-primary-light: #7c63ff;
  --cg-primary-subtle: rgba(97, 71, 255, 0.10);
  --cg-accent: #ff5c39;
  --cg-accent-2: #00c853;
  --cg-accent-3: #ffb300;

  /* Backgrounds */
  --cg-bg-primary: #f0f2f7;
  --cg-bg-secondary: #ffffff;
  --cg-bg-tertiary: #e4e7f0;
  --cg-bg-card: #ffffff;
  --cg-bg-hover: #f5f4ff;
  --cg-bg-sidebar: #ffffff;

  /* Text */
  --cg-text-primary: #0f1923;
  --cg-text-secondary: #374151;
  --cg-text-tertiary: #6b7280;
  --cg-text-muted: #9ca3af;

  /* Borders */
  --cg-border: #dde1ea;
  --cg-border-light: #eaecf2;

  /* Status */
  --cg-success: #00c853;
  --cg-warning: #ffb300;
  --cg-error: #ff4444;

  /* Typography */
  --cg-font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cg-font-size-xs: 11px;
  --cg-font-size-sm: 13px;
  --cg-font-size-base: 15px;
  --cg-font-size-md: 15px;
  --cg-font-size-lg: 17px;
  --cg-font-size-xl: 20px;
  --cg-font-size-2xl: 24px;
  --cg-font-size-3xl: 30px;
  --cg-font-size-4xl: 38px;

  --cg-font-weight-normal: 400;
  --cg-font-weight-medium: 500;
  --cg-font-weight-semibold: 600;
  --cg-font-weight-bold: 700;

  --cg-line-height-tight: 1.25;
  --cg-line-height-normal: 1.5;
  --cg-line-height-relaxed: 1.7;

  /* Spacing */
  --cg-spacing-xs: 4px;
  --cg-spacing-sm: 8px;
  --cg-spacing-md: 16px;
  --cg-spacing-lg: 24px;
  --cg-spacing-xl: 32px;
  --cg-spacing-2xl: 48px;
  --cg-spacing-3xl: 64px;

  /* Border Radius — rounder for playful feel */
  --cg-radius-sm: 6px;
  --cg-radius-md: 10px;
  --cg-radius-lg: 14px;
  --cg-radius-xl: 18px;
  --cg-radius-full: 9999px;

  /* Shadows */
  --cg-shadow-sm: 0 1px 3px rgba(97, 71, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --cg-shadow-md: 0 4px 12px rgba(97, 71, 255, 0.10), 0 2px 4px rgba(0, 0, 0, 0.05);
  --cg-shadow-lg: 0 8px 24px rgba(97, 71, 255, 0.13), 0 3px 8px rgba(0, 0, 0, 0.07);
  --cg-shadow-xl: 0 12px 40px rgba(97, 71, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --cg-transition-fast: 120ms ease;
  --cg-transition-base: 200ms ease;
  --cg-transition-slow: 320ms ease;
  --cg-transition-theme: 300ms ease;

  /* Layout */
  --cg-header-height: 52px;
  --cg-tab-bar-height: 48px;
  --cg-container-max-width: 1600px;
  --cg-sidebar-width: 200px;
}

/* ============================================
   Dark Theme
   ============================================ */

[data-theme='dark'] {
  --cg-bg-primary: #0f1117;
  --cg-bg-secondary: #1a1d27;
  --cg-bg-tertiary: #242736;
  --cg-bg-card: #1a1d27;
  --cg-bg-hover: #252840;
  --cg-bg-sidebar: #13151f;

  --cg-text-primary: #eef0f6;
  --cg-text-secondary: #b0b8cc;
  --cg-text-tertiary: #7a84a0;
  --cg-text-muted: #515a73;

  --cg-border: #2a2e3e;
  --cg-border-light: #1f2232;

  --cg-primary-subtle: rgba(97, 71, 255, 0.18);

  --cg-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --cg-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.25);
  --cg-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3);
  --cg-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.35);
}
