/* 
 * Shared CSS Variables for HeliosBinance Trading Platform - CYBERPUNK THEME
 * Centralizes colors, spacing, and other design tokens for consistency
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Military Command Center Font Stack */
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  --font-display: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
  --font-body: var(--font-display);
  /* Dedicated font for all numeric content - ensures consistency */
  --font-numbers: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  
  /* Military Grayscale Palette */
  --primary-gray: #e0e0e0;
  --primary-gray-bright: #f5f5f5;
  --primary-gray-dark: #cccccc;
  --primary-gray-dim: #999999;
  --primary-gray-muted: #777777;
  
  /* Muted Accent Colors - Only for Specific Use Cases */
  --accent-blue-muted: #5a7a9a;        /* Connect buttons, info */
  --accent-green-muted: #6a8a5a;       /* Long positions, positive values */
  --accent-red-muted: #a66666;         /* Short positions, negative values */
  
  /* Legacy color names for compatibility */
  --accent-blue: var(--primary-gray-dim);
  --accent-blue-bright: var(--primary-gray);
  --accent-blue-dark: var(--primary-gray-muted);
  --warning-orange: var(--accent-red-muted);
  --warning-red: var(--accent-red-muted);
  
  /* Status Colors - Military Grayscale with Muted Accents */
  --success-color: var(--accent-green-muted);     /* Positive/Long */
  --success-dark: #4a6a3a;
  --danger-color: var(--accent-red-muted);        /* Negative/Short */
  --danger-dark: #884444;
  --warning-color: var(--accent-red-muted);       /* Warnings */
  --warning-dark: #884444;
  --info-color: var(--accent-blue-muted);         /* Connect/Info buttons */
  --neutral-color: var(--primary-gray);           /* Default text/elements */
  
  /* Grayscale Palette - Command Center Theme */
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #9ca3af;
  --gray-300: #6b7280;
  --gray-400: #4b5563;
  --gray-500: #374151;
  --gray-600: #2d3748;
  --gray-700: #1a202c;
  --gray-800: #171923;
  --gray-900: #0f0f0f;
  
  /* Dark Military Command Theme */
  --text-primary: #ffffff;                      /* High contrast white text */
  --text-secondary: #e0e0e0;                    /* Secondary gray text */
  --text-muted: #999999;                        /* Muted gray text */
  --text-accent: var(--primary-gray);           /* Standard accent text */
  --text-positive: var(--accent-green-muted);   /* Positive numbers/long positions */
  --text-negative: var(--accent-red-muted);     /* Negative numbers/short positions */
  --text-info: var(--accent-blue-muted);        /* Info/connect elements */
  --panel-bg: rgba(31, 31, 31, 0.95);
  --border-color: #444444;
  --border-accent: var(--primary-gray-dark);
  --background-primary: #0a0a0a;
  --background-secondary: #1f1f1f;
  --background-tertiary: #2a2a2a;
  --base-bg: #000000;
  --surface-dark: #0f0f0f;
  --surface-medium: #1a1a1a;
  
  /* Spacing Scale */
  --space-px: 1px;
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* Legacy spacing aliases for backward compatibility */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-3);
  --space-lg: var(--space-4);
  --space-xl: var(--space-6);
  --space-2xl: var(--space-8);
  --space-3xl: var(--space-12);
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  
  /* Legacy font size aliases */
  --fs-xs: var(--text-xs);
  --fs-sm: var(--text-sm);
  --fs-base: var(--text-base);
  --fs-lg: var(--text-lg);
  --fs-xl: var(--text-xl);
  --fs-2xl: var(--text-2xl);
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius: 0.25rem;       /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-full: 9999px;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 10000;
  --z-toast-mobile: 10100;
  
  /* Military Command Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-gray-dark), var(--primary-gray));
  --gradient-success: linear-gradient(135deg, var(--success-color), var(--primary-gray-bright));
  --gradient-danger: linear-gradient(135deg, var(--danger-color), #ff6666);
  --gradient-warning: linear-gradient(135deg, var(--warning-color), #ffaa44);
  --gradient-dark: linear-gradient(135deg, var(--background-primary), var(--background-secondary));
  --gradient-panel: linear-gradient(135deg, rgba(31, 31, 31, 0.95), rgba(42, 42, 42, 0.95));
  
  /* Military Command Shadows & Effects */
  --glow-gray: 0 0 8px var(--primary-gray-dark), 0 0 16px var(--primary-gray-dim);
  --glow-blue: 0 0 8px var(--accent-blue-dark), 0 0 16px var(--accent-blue-dark);
  --glow-orange: 0 0 8px var(--warning-orange), 0 0 16px var(--warning-color);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.8), 0 6px 12px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.9), 0 10px 20px rgba(0, 0, 0, 0.7);
  --shadow-inner: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-panel: 0 0 0 1px rgba(68, 68, 68, 0.3), 0 2px 8px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-all: all var(--transition-base);
  
  /* Military Command Component Colors */
  --overlay-bg: rgba(0, 0, 0, 0.85);
  --modal-bg: rgba(15, 15, 15, 0.98);
  --tooltip-bg: rgba(31, 31, 31, 0.95);
  --notification-bg: rgba(26, 26, 26, 0.95);
  --panel-border: 1px solid #444444;
  --panel-border-active: 1px solid var(--primary-gray-dark);
  --button-border: 1px solid #555555;
  --button-border-active: 1px solid var(--primary-gray);
  --input-border: 1px solid #333333;
  --input-border-focus: 1px solid var(--primary-gray);
  --divider: 1px solid #2a2a2a;
  
  /* Military Grid Background (subtle) */
  --bg-grid: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 49px,
    rgba(68, 68, 68, 0.1) 50px
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 49px,
    rgba(68, 68, 68, 0.1) 50px
  );
  
  /* Compatibility with existing variables */
  --primary-color: var(--primary-gray);
  --accent-glow: var(--accent-blue);
  --glow-color: var(--primary-gray);
  --foreground-primary: var(--text-primary);
  --background-hover-secondary: rgba(68, 68, 68, 0.5);
  --lh-normal: 1.5;
  --primary-accent: var(--primary-gray);
}

/* Dark mode adjustments (if needed in future) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode specific overrides can go here */
  }
}
