:root {
  /* Colors */
  --color-primary: #1e293b;
  --color-primary-dark: #0f172a;
  --color-primary-light: #334155;
  --color-primary-foreground: #fafafa;
  --color-secondary: #f2f2f2;
  --color-secondary-foreground: #1e293b;
  --color-success: #10b981;
  --color-warning: #7b1fa2;
  --color-error: #ef4444;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-inverse: #ffffff;
  --color-bg: #fafafa;
  --color-bg-alt: #f5f5f5;
  --color-border: #e5e5e5;
  --color-input: #e5e5e5;
  --color-ring: #7b1fa2;
  
  /* Accent color (from v0-3d design) - purple/black accent */
  --color-accent: #7b1fa2;
  --color-accent-foreground: #fafafa;
  --color-accent-light: rgba(123, 31, 162, 0.1);
  --color-accent-border: rgba(123, 31, 162, 0.2);
  
  /* Muted colors */
  --color-muted: #f5f5f5;
  --color-muted-foreground: #808080;
  
  /* Card colors */
  --color-card: #ffffff;
  --color-card-foreground: #1e293b;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 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-size-4xl: 2.25rem; /* 36px */
  --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;

  /* 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 */

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: var(--spacing-lg);
  --header-height: 4rem;
  --footer-height: 6rem;

  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-width: 1px;

  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

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

  /* Breakpoints (for reference in JS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Z-index layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Dark mode support */
[data-theme="dark"] {
  --color-primary: #fafafa;
  --color-primary-dark: #e5e5e5;
  --color-primary-light: #ffffff;
  --color-primary-foreground: #0f172a;
  --color-secondary: #334155;
  --color-secondary-foreground: #fafafa;
  --color-success: #10b981;
  --color-warning: #7b1fa2;
  --color-error: #ef4444;
  --color-text: #fafafa;
  --color-text-light: #94a3b8;
  --color-text-inverse: #1e293b;
  --color-bg: #1a1a1a;
  --color-bg-alt: #262626;
  --color-border: #404040;
  --color-input: #404040;
  --color-ring: #7b1fa2;
  
  /* Accent color (same in dark mode) */
  --color-accent: #7b1fa2;
  --color-accent-foreground: #1a1a1a;
  --color-accent-light: rgba(123, 31, 162, 0.15);
  --color-accent-border: rgba(123, 31, 162, 0.3);
  
  /* Muted colors */
  --color-muted: #262626;
  --color-muted-foreground: #a3a3a3;
  
  /* Card colors */
  --color-card: #262626;
  --color-card-foreground: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #fafafa;
    --color-primary-dark: #e5e5e5;
    --color-primary-light: #ffffff;
    --color-primary-foreground: #0f172a;
    --color-secondary: #334155;
    --color-secondary-foreground: #fafafa;
    --color-success: #10b981;
    --color-warning: #7b1fa2;
    --color-error: #ef4444;
    --color-text: #fafafa;
    --color-text-light: #94a3b8;
    --color-text-inverse: #1e293b;
    --color-bg: #1a1a1a;
    --color-bg-alt: #262626;
    --color-border: #404040;
    --color-input: #404040;
    --color-ring: #7b1fa2;
    
    /* Accent color */
    --color-accent: #7b1fa2;
    --color-accent-foreground: #1a1a1a;
    --color-accent-light: rgba(123, 31, 162, 0.15);
    --color-accent-border: rgba(123, 31, 162, 0.3);
    
    /* Muted colors */
    --color-muted: #262626;
    --color-muted-foreground: #a3a3a3;
    
    /* Card colors */
    --color-card: #262626;
    --color-card-foreground: #fafafa;
  }
}

/* Dark mode specific overrides */
[data-theme="dark"] .admin-status-published {
  background: #064e3b;
  color: #6ee7b7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-status-published {
    background: #064e3b;
    color: #6ee7b7;
  }
}

[data-theme="dark"] .admin-status-review {
  background: #78350f;
  color: #fcd34d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-status-review {
    background: #78350f;
    color: #fcd34d;
  }
}

[data-theme="dark"] .admin-translation-completed {
  background: #064e3b;
  color: #6ee7b7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-translation-completed {
    background: #064e3b;
    color: #6ee7b7;
  }
}

[data-theme="dark"] .admin-translation-failed {
  background: #7f1d1d;
  color: #fca5a5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .admin-translation-failed {
    background: #7f1d1d;
    color: #fca5a5;
  }
}
