/**
 * Revive Design Tokens
 * Single source of truth for colors, spacing, typography, and elevation.
 * All new UI should reference these variables.
 */

:root {
  /* Brand */
  --primary-color: #008B8B;
  --secondary-color: #005757;
  --accent-gold: #FFB703;
  --accent-color: #FFFFFF;

  /* Semantic */
  --color-success: #059669;
  --color-success-hover: #047857;
  --color-danger: #B87070;
  --color-danger-hover: #9A6363;
  --color-danger-soft: #F5EDED;
  --color-danger-border: #D4B4B4;
  --color-warning: #D97706;
  --color-warning-hover: #B45309;
  --color-info: #0284C7;
  --color-info-hover: #0369A1;

  /* Aliases used by components */
  --primary-hover: #006B6B;
  --secondary-hover: #004040;
  --danger-color: var(--color-danger);
  --danger-hover: var(--color-danger-hover);

  /* Surfaces */
  --background-color: rgba(255, 255, 255, 0.96);
  --card-background: #ffffff;
  --surface-elevated: #ffffff;
  --input-background: #ffffff;

  /* Text */
  --text-color: #1a1a1a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --text-highlight-color: #F0F8FF;
  --text-link: #4A7E86;
  --text-link-hover: #3A656C;

  /* Borders & shadows */
  --border-color: #e2e8f0;
  --input-border: #cbd5e1;
  --shadow-color: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-brand: 0 8px 24px rgba(0, 139, 139, 0.18);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Typography */
  --font-display: 'Forum', Georgia, serif;
  --font-body: 'Forum', 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.35s ease;

  /* Layout */
  --content-max-width: 1200px;
  --nav-height: 64px;
}

html.dark-theme,
body.dark-theme {
  --primary-color: #00A3A3;
  --secondary-color: #008080;
  --primary-hover: #00B8B8;
  --secondary-hover: #006666;
  --accent-color: #1a1a1a;
  --background-color: #1a1a1a;
  --card-background: #242424;
  --surface-elevated: #2a2a2a;
  --input-background: #2a2a2a;
  --text-color: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight-color: #B0E0E6;
  --text-link: #8FB8BC;
  --text-link-hover: #B7D4D6;
  --border-color: #334155;
  --input-border: #475569;
  --shadow-color: rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
  --color-danger: #C48888;
  --color-danger-hover: #D49696;
  --color-danger-soft: rgba(196, 136, 136, 0.15);
  --color-danger-border: rgba(196, 136, 136, 0.4);
}
