/**
 * Cyberpunk Theme - Core Variables
 * HashMonkey Mining Pool Frontend
 */

:root {
  /* Primary color palette */
  --cyber-primary: #00ff9f;         /* Electric Blue - main highlight */
  --cyber-primary-dim: #00cc80;     /* Dimmed version for hover states */
  --cyber-primary-bright: #40ffb5;  /* Brighter version for focus states */
  
  /* Secondary colors */
  --cyber-secondary: #b967ff;       /* Neon Purple - secondary highlight */
  --cyber-secondary-dim: #9a4ddb;   /* Dimmed version for hover states */
  --cyber-secondary-bright: #d48fff; /* Brighter version for focus states */
  
  /* Background colors */
  --cyber-background: #1a1a1a;      /* Main dark background */
  --cyber-background-darker: #000000; /* Darker variant for contrast */
  --cyber-background-lighter: #2a2a2a; /* Lighter variant for cards and elements */
  --cyber-gradient-dark: linear-gradient(45deg, #1a1a1a, #2a2a2a); /* Standard background gradient */
  
  /* Accent colors */
  --cyber-accent: #ff71ce;          /* Neon Pink - accent highlight */
  --cyber-warning: #fffb96;         /* Cyber Yellow - warnings/alerts */
  --cyber-error: #ff4747;           /* Cyber Red - errors */
  --cyber-success: #01ffc3;         /* Cyber Green - success states */
  --cyber-info: #01cdfe;            /* Cyber Blue - information states */
  
  /* UI element colors */
  --cyber-border: #30423a;          /* Border color for cards and elements */
  --cyber-border-glow: #00ff9f33;   /* Glow color for borders */
  --cyber-text: #ffffff;            /* Primary text color */
  --cyber-text-muted: #aaaaaa;      /* Secondary/muted text color */
  --cyber-text-dim: #777777;        /* Dimmed text color */
  
  /* Data visualization colors */
  --chart-color-1: var(--cyber-primary);
  --chart-color-2: var(--cyber-secondary);
  --chart-color-3: var(--cyber-accent);
  --chart-color-4: var(--cyber-info);
  --chart-color-5: #fffb96;
  
  /* Effort color coding */
  --effort-excellent: #01ffc3;      /* Very lucky (<50%) */
  --effort-good: #40d6ff;           /* Lucky (50-80%) */
  --effort-average: #b967ff;        /* Normal (80-120%) */
  --effort-poor: #ff71ce;           /* Unlucky (120-200%) */
  --effort-bad: #ff4747;            /* Very unlucky (>200%) */
  
  /* Typography */
  --font-main: 'Share Tech Mono', monospace;  /* Main text */
  --font-headers: 'Orbitron', sans-serif;     /* Headers */
  --font-data: 'JetBrains Mono', monospace;   /* Data displays */
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-large: 18px;
  --font-size-xlarge: 24px;
  --font-size-xxlarge: 32px;
  
  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Border radius */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  
  /* Effects */
  --glow-small: 0 0 5px var(--cyber-primary);
  --glow-medium: 0 0 10px var(--cyber-primary);
  --glow-large: 0 0 20px var(--cyber-primary);
  --glow-text: 0 0 4px var(--cyber-primary);
  
  /* Line effects */
  --scanline-opacity: 0.15;
  --scanline-speed: 6s;
  
  /* Animations */
  --duration-fast: 0.15s;
  --duration-medium: 0.25s;
  --duration-slow: 0.5s;
  --timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Card and component styling */
  --card-padding: var(--space-lg);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --card-border: 1px solid var(--cyber-border);
  
  /* Z-index layers */
  --z-index-background: -1;
  --z-index-default: 1;
  --z-index-floating: 10;
  --z-index-modal: 100;
  --z-index-tooltip: 1000;
  
  /* Grid settings */
  --grid-gap: var(--space-md);
  --grid-columns-desktop: 12;
  --grid-columns-tablet: 8;
  --grid-columns-mobile: 4;
  
  /* Base Colors */
  --bg-color: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-color: #ffffff;
  --text-muted: #888888;
  --border-color: #333333;
  
  /* Accent Colors */
  --accent-color: #00ff9f;
  --accent-hover: #00cc7f;
  
  /* Status Colors */
  --success-color: #00ff9f;
  --warning-color: #ffcc00;
  --error-color: #ff4444;
  --error-bg: rgba(255, 68, 68, 0.1);
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Z-index */
  --z-index-base: 1;
  --z-index-floating: 100;
  --z-index-modal: 1000;
  --z-index-tooltip: 1100;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  /* Typography */
  --font-sans: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-loose: 2;
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1rem;
  
  /* Grid */
  --grid-gap: 1rem;
  --grid-columns: 12;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  
  /* Dashboard Specific */
  --dashboard-header-height: 60px;
  --dashboard-sidebar-width: 250px;
  --dashboard-content-padding: 2rem;
  --dashboard-card-spacing: 1.5rem;
  --dashboard-border-radius: 8px;
  --dashboard-transition: 0.3s ease;
  
  /* Animation Durations */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  
  /* Animation Timing Functions */
  --timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Glow Effects */
  --glow-text: 0 0 10px var(--accent-color);
  --glow-border: 0 0 10px var(--accent-color);
  --glow-bg: 0 0 20px rgba(0, 255, 159, 0.1);
  
  /* Button Gradients */
  --cyber-gradient-button: linear-gradient(135deg, var(--cyber-background-lighter), var(--cyber-background));
  --cyber-gradient-button-hover: linear-gradient(135deg, var(--cyber-background), var(--cyber-background-lighter));
  --cyber-gradient-hover: linear-gradient(135deg, var(--cyber-background-lighter), var(--cyber-background));
  
  /* Additional UI Elements */
  --cyber-dark: #000000;
  --cyber-background-darker: #0a0a0a;
  
  /* RGB values for rgba() usage */
  --cyber-primary-rgb: 0, 255, 159;
  --cyber-secondary-rgb: 185, 103, 255;
  --cyber-accent-rgb: 255, 113, 206;
  --cyber-success-rgb: 1, 255, 195;
  --cyber-warning-rgb: 255, 251, 150;
  --cyber-error-rgb: 255, 71, 71;
  
  /* Gradient definitions */
  --cyber-gradient: linear-gradient(135deg, var(--cyber-background-lighter), var(--cyber-background));
  --cyber-gradient-hover: linear-gradient(135deg, var(--cyber-background), var(--cyber-background-lighter));
}

/* Dark mode adjustments if needed */
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode is default, no adjustments needed */
  }
}

/* Light mode - not recommended for cyberpunk theme, but added for accessibility */
@media (prefers-color-scheme: light) {
  :root {
    --cyber-background: #f0f0f0;
    --cyber-background-darker: #d8d8d8;
    --cyber-background-lighter: #ffffff;
    --cyber-text: #1a1a1a;
    --cyber-text-muted: #555555;
    --cyber-text-dim: #777777;
    --cyber-border: #bbbbbb;
    /* Other light theme adjustments */
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion) {
  :root {
    --duration-fast: 0;
    --duration-medium: 0;
    --duration-slow: 0;
    --scanline-speed: 0s;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --cyber-primary: #00ff9f;
    --cyber-primary-dim: #00ff9f;
    --cyber-primary-bright: #00ff9f;
    --cyber-secondary: #ffffff;
    --cyber-border: #ffffff;
    --cyber-text: #ffffff;
    --glow-small: none;
    --glow-medium: none;
    --glow-large: none;
    --glow-text: none;
  }
}

