/**
 * FullCator 2.0 — Design Tokens
 *
 * Single canonical source of truth for colors, spacing, typography,
 * radius, shadows and layout variables. Every Shell and module document
 * loads this file first.
 */

:root {
  /* Brand */
  --fc-primary: #0056b3;
  --fc-primary-hover: #003d80;
  --fc-primary-active: #002b5c;
  --fc-primary-subtle: #e7effd;
  --fc-on-primary: #ffffff;

  /* Canvas / surfaces */
  --fc-bg: #f5f6f7;
  --fc-surface: #ffffff;
  --fc-surface-alt: #f8f9fa;
  --fc-surface-raised: #ffffff;

  /* Text */
  --fc-text: #222222;
  --fc-text-muted: #6c757d;
  --fc-text-on-primary: #ffffff;

  /* Borders */
  --fc-border: #dee2e6;
  --fc-border-subtle: #e9ecef;
  --fc-divider: #dee2e6;

  /* Status */
  --fc-danger: #dc3545;
  --fc-danger-bg: #f8d7da;
  --fc-danger-text: #721c24;
  --fc-danger-border: #f5c2c7;

  --fc-success: #28a745;
  --fc-success-bg: #d4edda;
  --fc-success-text: #155724;
  --fc-success-border: #c3e6cb;

  --fc-warning: #f59e0b;
  --fc-warning-bg: #fff3cd;
  --fc-warning-text: #856404;
  --fc-warning-border: #ffeeba;

  --fc-info: #0056b3;
  --fc-info-bg: #cff4fc;
  --fc-info-text: #055160;
  --fc-info-border: #b6effb;

  /* Radius */
  --fc-radius-sm: 4px;
  --fc-radius: 8px;
  --fc-radius-lg: 12px;

  /* Shadow */
  --fc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --fc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --fc-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Layout */
  --fc-topbar-height: 60px;
  --fc-sidebar-width: 240px;
  --fc-sidebar-collapsed: 64px;
  --fc-dev-width: 340px;

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

  /* Typography */
  --fc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fc-font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --fc-text-xs: 0.75rem;
  --fc-text-sm: 0.85rem;
  --fc-text-base: 0.95rem;
  --fc-text-lg: 1.125rem;
  --fc-text-xl: 1.25rem;

  /* Animation */
  --fc-transition: 0.15s ease;
  --fc-focus-ring: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

/* Optional dark theme: tokens are prepared, but full dark UI is not implemented in Phase 2A. */
html[data-theme="dark"],
@media (prefers-color-scheme: dark) {
  :root {
    --fc-bg: #0d1117;
    --fc-surface: #161b22;
    --fc-surface-alt: #1f242c;
    --fc-surface-raised: #21262d;
    --fc-text: #e6edf3;
    --fc-text-muted: #8b949e;
    --fc-border: #30363d;
    --fc-border-subtle: #21262d;
    --fc-primary-subtle: #1c3966;
    --fc-focus-ring: 0 0 0 3px rgba(48, 128, 248, 0.3);
  }
}
