/**
 * CSS Custom Properties (Variables)
 * Design tokens for the Keyboard Layout Builder
 */

:root {
  /* Colors - Primary */
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #60a5fa;

  /* Colors - Secondary */
  --color-secondary: #64748b;
  --color-secondary-dark: #475569;
  --color-secondary-light: #94a3b8;

  /* Colors - Tertiary */
  --color-tertiary: #6b7280;
  --color-tertiary-dark: #4b5563;
  --color-tertiary-light: #9ca3af;

  /* Colors - Backgrounds */
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #f1f5f9;
  --color-bg-darker: #e2e8f0;

  /* Colors - Text */
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-dark: #1e293b;

  /* Colors - Borders */
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  --color-border-light: #f1f5f9;

  /* Colors - Keys */
  --color-key-bg: #f8fafc;
  --color-key-bg-hover: #f1f5f9;
  --color-key-bg-active: #e2e8f0;
  --color-key-border: #cbd5e1;
  --color-key-text: #0f172a;
  --color-key-modifier: #dbeafe;
  --color-key-special: #fef3c7;
  --color-key-layer: #d1fae5;

  /* Spacing */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  --spacing-2xl: 3rem;    /* 48px */
  --spacing-3xl: 4rem;    /* 64px */

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', monospace;
  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 1rem;     /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-2xl: 1.5rem;  /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-tooltip: 60;

  /* Key Dimensions */
  --key-size: 56px;
  --key-gap: 6px;
  --key-border-radius: 6px;

  /* Modal */
  --modal-max-width: 600px;
  --modal-max-width-lg: 800px;
  --modal-padding-lg: 2rem;
}

/* Dark Mode (optional - can be enabled later) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-dark: #334155;
    --color-bg-darker: #475569;

    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-light: #64748b;
    --color-text-dark: #e2e8f0;

    --color-border: #475569;
    --color-border-dark: #64748b;
    --color-border-light: #334155;

    --color-key-bg: #1e293b;
    --color-key-bg-hover: #334155;
    --color-key-bg-active: #475569;
    --color-key-border: #64748b;
    --color-key-text: #f8fafc;
  }
}
