/* CSS Variables for CWG (Climate Watch Global) - Comprehensive Version */

:root {
  /* Color Palette */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  
  /* Core colors (from root variables.css) */
  --primary-hover: #2980b9;
  --primary-active: #1c6ea4;
  --selected-color: #2ecc71;
  --selected-hover: #27ae60;
  --danger-hover: #c82333;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #343a40;
  --bg-light: #f8f9fa;
  --input-bg: #2d3748;
  --input-bg-light: #ffffff;
  
  /* Theme backgrounds (from root variables.css) */
  --dark-bg: #1a1a2e;
  --dark-panel: #16213e;
  --dark-border: #0f3460;
  --dark-overlay: rgba(0, 0, 0, 0.2);
  --light-panel: #ffffff;
  --light-border: #e0e7ff;
  --light-overlay: rgba(0, 0, 0, 0.05);
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --text-muted-light: #6c757d;
  --text-dark: #212529;
  --text-muted-dark: rgba(0, 0, 0, 0.7);
  
  /* Border Colors */
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --border-dark: #495057;
  --border-color-light: #e9ecef;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;
  
  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-accent: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'Courier New', monospace;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xs: 0.75rem;
  --font-size-md: 1rem;
  --font-size-xl: 1.3rem;
  --font-size-xxl: 1.6rem;
  --line-height-base: 1.5;
  
  /* Border Radius */
  --border-radius: 0.375rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 0.5rem;
  --border-radius-small: 4px;
  --border-radius-large: 12px;
  --item-radius: 8px;
  --badge-radius: 50%;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
  --shadow-active: 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1);
  --primary-color-alpha: rgba(52, 152, 219, 0.2);
  
  /* Transitions */
  --transition-base: all 0.15s ease-in-out;
  --transition-fast: all 0.075s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
  --transition-speed: 0.3s;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-navbar: 1045;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-base: 1;
  --z-above: 10;
  --z-max: 9999;
  
  /* Button Sizes */
  --button-size: 48px;
  --button-size-mobile: 44px;
  --button-size-small: 40px;
  --button-size-xs: 36px;
  
  /* Touch Targets */
  --touch-target-min: 44px;
  --touch-target-small: 40px;
  --touch-target-xs: 36px;
  
  /* Layout Heights */
  --navbar-height: 70px; /* Estimated navbar height - will be calculated dynamically */
  --navbar-height-mobile: 60px; /* Smaller on mobile */
  
  /* Mobile Breakpoints */
  --mobile-xs: 360px;
  --mobile-sm: 480px;
  --mobile-md: 768px;
  --tablet: 1024px;
  --desktop: 1200px;
  
  /* Alert severity colors (from root variables.css) */
  --minor-color: #00FF00;
  --moderate-color: #FFA500;
  --severe-color: #FF0000;
  --extreme-color: #313131;
  --unknown-color: #666666;
  --total-color: #E8E8E8;
  
  /* Toggled Button States */
  --toggled-bg: #4CAF50;
  --toggled-hover: #45a049;
  --toggled-color: #fff;
  --toggled-border: #4CAF50;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --border-light: #333333;
}

/* Mobile-specific variables */
@media (max-width: 768px) {
  :root {
    --spacing-xs: 0.2rem;
    --spacing-sm: 0.4rem;
    --spacing-md: 0.8rem;
    --spacing-lg: 1.2rem;
    --font-size-sm: 0.8rem;
    --font-size-base: 0.9rem;
    --font-size-lg: 1rem;
    --border-radius: 0.3rem;
    --border-radius-sm: 0.2rem;
    --navbar-height: var(--navbar-height-mobile); /* Use mobile navbar height */
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.15rem;
    --spacing-sm: 0.3rem;
    --spacing-md: 0.6rem;
    --spacing-lg: 1rem;
    --font-size-sm: 0.75rem;
    --font-size-base: 0.85rem;
    --font-size-lg: 0.95rem;
    --border-radius: 0.25rem;
    --border-radius-sm: 0.15rem;
  }
}

@media (max-width: 360px) {
  :root {
    --spacing-xs: 0.1rem;
    --spacing-sm: 0.25rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 0.8rem;
    --font-size-sm: 0.7rem;
    --font-size-base: 0.8rem;
    --font-size-lg: 0.9rem;
    --border-radius: 0.2rem;
    --border-radius-sm: 0.1rem;
  }
} 