/**
 * Zyron CRM - CSS Variables & Design Tokens
 * Production-ready design system
 */

:root {
  /* Brand Colors (marka paleti: #D7263D / #171717 / #F4F0EB / #5C6670) */
  --color-primary: #D7263D;
  --color-primary-hover: #B81E31;
  --color-primary-light: rgba(215, 38, 61, 0.10);
  --color-primary-lighter: rgba(215, 38, 61, 0.06);

  /* Marka yardımcı renkleri (referans) */
  --brand-dark: #171717;
  --brand-surface: #F4F0EB;
  --brand-muted: #5C6670;

  /* Semantic Colors */
  --color-success: #16A34A;
  --color-success-light: rgba(22, 163, 74, 0.12);
  --color-warning: #D97706;
  --color-warning-light: rgba(217, 119, 6, 0.12);
  --color-danger: #EF4444;
  --color-danger-light: rgba(239, 68, 68, 0.15);
  --color-info: #3B82F6;
  --color-info-light: rgba(59, 130, 246, 0.15);

  /* Neutral Colors - Dark Theme */
  --color-bg: #0E0E0E;
  --color-surface-1: #161616;
  --color-surface-2: #1E1E1E;
  --color-surface-3: #272727;
  --color-surface-4: #333333;

  /* Text Colors */
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #A0A0A0;
  --color-text-tertiary: #666666;
  --color-text-muted: #3A3A3A;

  /* Border Colors */
  --color-border: #333333;
  --color-border-light: #3A3A3A;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* System mono stack — JetBrains Mono indirmeyi bıraktık (1 font ailesi az, ~50KB tasarruf) */
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --font-display: 'Poppins', var(--font-primary);

  /* Font Sizes */
  --text-xs: 10px;
  --text-sm: 11px;
  --text-base: 13px;
  --text-md: 14px;
  --text-lg: 15px;
  --text-xl: 17px;
  --text-2xl: 20px;
  --text-3xl: 26px;
  --text-4xl: 38px;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;

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

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Layout */
  --sidebar-width: 252px;
  --topbar-height: 54px;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-login: 800;
  --z-toast: 9999;
}

/* ========== LIGHT THEME ========== */
:root[data-theme="light"] {
  --color-bg: #F4F0EB;
  --color-surface-1: #FFFFFF;
  --color-surface-2: #FAF7F3;
  --color-surface-3: #F4F0EB;
  --color-surface-4: #E8E2DA;
  --color-text-primary: #171717;
  --color-text-secondary: #5C6670;
  --color-text-tertiary: #8A919B;
  --color-text-muted: #C9CED4;
  --color-border: #E2DDD4;
  --color-border-light: #EDE8E0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
}
