/**
 * Nitrado-Style Design System
 * Complete custom design tokens - ZERO WHMCS influence
 * Based on modern game server hosting platforms
 */

:root {
  /* ========================================
     BRAND COLORS - Gaming Platform Style
     ======================================== */

  /* Primary brand colors */
  --brand-primary: #3b82f6;           /* Blue */
  --brand-primary-hover: #2563eb;     /* Darker blue */
  --brand-primary-light: #60a5fa;     /* Lighter blue */

  --brand-secondary: #8b5cf6;         /* Purple */
  --brand-secondary-hover: #7c3aed;
  --brand-secondary-light: #a78bfa;

  /* Status colors */
  --status-online: #10b981;           /* Green - server online */
  --status-starting: #f59e0b;         /* Orange - server starting */
  --status-offline: #ef4444;          /* Red - server offline */
  --status-maintenance: #6b7280;      /* Gray - maintenance */

  /* Action colors */
  --action-success: #10b981;
  --action-warning: #f59e0b;
  --action-danger: #ef4444;
  --action-info: #3b82f6;

  /* ========================================
     DARK THEME BACKGROUNDS
     ======================================== */

  --bg-primary: #0f172a;              /* Main background */
  --bg-secondary: #1e293b;            /* Cards, panels */
  --bg-tertiary: #334155;             /* Elevated elements */
  --bg-hover: #475569;                /* Hover states */
  --bg-active: #64748b;               /* Active/pressed states */

  /* Overlay backgrounds */
  --bg-overlay: rgba(15, 23, 42, 0.95);
  --bg-modal: rgba(15, 23, 42, 0.98);
  --bg-tooltip: rgba(30, 41, 59, 0.98);

  /* ========================================
     TEXT COLORS
     ======================================== */

  --text-primary: #f1f5f9;            /* Primary text */
  --text-secondary: #cbd5e1;          /* Secondary text */
  --text-tertiary: #94a3b8;           /* Muted text */
  --text-disabled: #64748b;           /* Disabled text */
  --text-inverse: #0f172a;            /* Dark text on light bg */

  /* ========================================
     BORDER & DIVIDER COLORS
     ======================================== */

  --border-primary: #334155;
  --border-secondary: #475569;
  --border-hover: #64748b;
  --border-focus: var(--brand-primary);

  /* ========================================
     SPACING SYSTEM
     Based on 4px grid
     ======================================== */

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

  /* ========================================
     TYPOGRAPHY
     ======================================== */

  /* Font families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* 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 */
  --text-5xl: 3rem;                   /* 48px */
  --text-6xl: 3.75rem;                /* 60px */

  /* Font weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ========================================
     BORDER RADIUS
     ======================================== */

  --radius-sm: 0.375rem;              /* 6px */
  --radius-md: 0.5rem;                /* 8px */
  --radius-lg: 0.75rem;               /* 12px */
  --radius-xl: 1rem;                  /* 16px */
  --radius-2xl: 1.5rem;               /* 24px */
  --radius-full: 9999px;              /* Fully rounded */

  /* ========================================
     SHADOWS
     ======================================== */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

  /* Glow shadows for gaming aesthetic */
  --shadow-glow-primary: 0 0 20px rgba(59, 130, 246, 0.5);
  --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.5);
  --shadow-glow-danger: 0 0 20px rgba(239, 68, 68, 0.5);
  --shadow-glow-warning: 0 0 20px rgba(245, 158, 11, 0.5);

  /* ========================================
     TRANSITIONS
     ======================================== */

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================
     Z-INDEX LAYERS
     ======================================== */

  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ========================================
     BREAKPOINTS (for JavaScript)
     ======================================== */

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ========================================
     COMPONENT SPECIFIC
     ======================================== */

  /* Navigation */
  --nav-height: 72px;
  --nav-bg: var(--bg-secondary);
  --nav-border: var(--border-primary);

  /* Cards */
  --card-bg: var(--bg-secondary);
  --card-border: var(--border-primary);
  --card-padding: var(--space-6);
  --card-radius: var(--radius-lg);

  /* Buttons */
  --btn-padding-y: var(--space-3);
  --btn-padding-x: var(--space-6);
  --btn-padding-y-sm: var(--space-2);
  --btn-padding-x-sm: var(--space-4);
  --btn-padding-y-lg: var(--space-4);
  --btn-padding-x-lg: var(--space-8);
  --btn-radius: var(--radius-md);

  /* Forms */
  --input-bg: var(--bg-tertiary);
  --input-border: var(--border-primary);
  --input-padding-y: var(--space-3);
  --input-padding-x: var(--space-4);
  --input-radius: var(--radius-md);

  /* Progress bars */
  --progress-height: 8px;
  --progress-bg: var(--bg-tertiary);
  --progress-radius: var(--radius-full);

  /* Server cards */
  --server-card-padding: var(--space-6);
  --server-card-radius: var(--radius-lg);
  --server-status-size: 12px;
}

/* ========================================
   DARK THEME ENFORCEMENT
   ======================================== */

html {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

/* ========================================
   UTILITY: Color Mode Toggle
   (Future feature)
   ======================================== */

[data-theme="light"] {
  /* Light theme overrides would go here if needed */
  /* For now, we're dark-only like Nitrado */
}
