/* ============================================
   brave new art — CSS Variables & Design System
   ============================================
   
   BRAND COLORS (STRICT):
   - Red: #FF0000 (primary accent, interactive elements)
   - Black: #0D0D0D (backgrounds, dark surfaces)
   - White: #FFFFFF (text, light surfaces)
   
   NO BLUES, CYANS, OR OFF-BRAND COLORS
   ============================================ */

:root {
  /* ===== COLORS ===== */
  
  /* Primary Palette */
  --color-primary: #FF0000;
  --color-black: #0D0D0D;
  --color-white: #FFFFFF;
  
  /* Semantic Colors */
  --color-background: var(--color-black);
  --color-surface: #0D0D0D;
  --color-text-primary: var(--color-white);
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-text-muted: rgba(255, 255, 255, 0.3);
  --color-accent: var(--color-primary);
  --color-border: var(--color-primary);
  --color-border-subtle: rgba(255, 0, 0, 0.2);
  
  /* Interactive States */
  --color-hover: #FF0000;
  --color-active: #FF0000;
  --color-focus: var(--color-primary);
  --color-disabled: rgba(255, 255, 255, 0.3);
  
  /* Overlays & Shadows */
  --color-overlay: rgba(13, 13, 13, 0.8);
  --color-shadow: rgba(0, 0, 0, 0.5);
  
  
  /* ===== TYPOGRAPHY ===== */
  
  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --font-display: var(--font-sans);
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-5xl: 4rem;      /* 64px */
  --font-size-6xl: 5rem;      /* 80px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.4;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  
  
  /* ===== SPACING ===== */
  
  /* Spacing Scale (based on 8px grid) */
  --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 */
  --space-32: 8rem;    /* 128px */
  
  /* Semantic Spacing */
  --spacing-section: var(--space-32);
  --spacing-container: var(--space-20);
  --spacing-card: var(--space-8);
  --spacing-content: var(--space-6);
  --spacing-element: var(--space-4);
  --spacing-tight: var(--space-2);
  
  
  /* ===== LAYOUT ===== */
  
  /* Container Widths */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container-full: 100%;
  
  /* Breakpoints (for media queries) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Z-Index Layers */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-notification: 800;
  --z-max: 999;
  
  
  /* ===== BORDERS ===== */
  
  /* Border Widths */
  --border-width-thin: 1px;
  --border-width-base: 2px;
  --border-width-thick: 3px;
  --border-width-heavy: 4px;
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-base: 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;
  
  
  /* ===== SHADOWS ===== */
  
  --shadow-sm: 0 1px 2px 0 var(--color-shadow);
  --shadow-base: 0 4px 6px -1px var(--color-shadow);
  --shadow-md: 0 10px 15px -3px var(--color-shadow);
  --shadow-lg: 0 20px 25px -5px var(--color-shadow);
  --shadow-xl: 0 25px 50px -12px var(--color-shadow);
  --shadow-2xl: 0 35px 60px -15px var(--color-shadow);
  --shadow-inner: inset 0 2px 4px 0 var(--color-shadow);
  --shadow-none: none;
  
  /* Red Glow Effects */
  --glow-sm: 0 0 10px rgba(255, 0, 0, 0.3);
  --glow-base: 0 0 20px rgba(255, 0, 0, 0.4);
  --glow-lg: 0 0 30px rgba(255, 0, 0, 0.5);
  --glow-xl: 0 0 40px rgba(255, 0, 0, 0.6);
  
  
  /* ===== TRANSITIONS & ANIMATIONS ===== */
  
  /* Durations */
  --duration-instant: 0s;
  --duration-fast: 0.15s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.7s;
  --duration-slowest: 1s;
  
  /* Easing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* Common Transitions */
  --transition-colors: color var(--duration-base) var(--ease-in-out),
                       background-color var(--duration-base) var(--ease-in-out),
                       border-color var(--duration-base) var(--ease-in-out);
  --transition-opacity: opacity var(--duration-base) var(--ease-in-out);
  --transition-transform: transform var(--duration-base) var(--ease-out);
  --transition-all: all var(--duration-base) var(--ease-in-out);
  --transition-shadow: box-shadow var(--duration-base) var(--ease-in-out);
  
  
  /* ===== OPACITY LEVELS ===== */
  
  --opacity-disabled: 0.4;
  --opacity-inactive: 0.6;
  --opacity-hover: 0.8;
  --opacity-active: 1;
  
  
  /* ===== BLUR EFFECTS ===== */
  
  --blur-sm: 4px;
  --blur-base: 8px;
  --blur-md: 12px;
  --blur-lg: 16px;
  --blur-xl: 24px;
}


/* ===== RESPONSIVE OVERRIDES ===== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --font-size-3xl: 3rem;    /* 48px */
    --font-size-4xl: 3.5rem;  /* 56px */
    --font-size-5xl: 4.5rem;  /* 72px */
    --font-size-6xl: 6rem;    /* 96px */
    
    --spacing-section: var(--space-24);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --font-size-4xl: 4rem;    /* 64px */
    --font-size-5xl: 5rem;    /* 80px */
    --font-size-6xl: 7rem;    /* 112px */
  }
}


/* ===== UTILITY CLASSES ===== */

/* Typography Utilities */
.text-primary { color: var(--color-text-primary) !important; }
.text-secondary { color: var(--color-text-secondary) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.text-accent { color: var(--color-accent) !important; }

/* Background Utilities */
.bg-black { background-color: var(--color-black) !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-surface { background-color: var(--color-surface) !important; }
.bg-accent { background-color: var(--color-accent) !important; }

/* Border Utilities */
.border-accent { border-color: var(--color-border) !important; }
.border-subtle { border-color: var(--color-border-subtle) !important; }

/* Spacing Utilities */
.mt-section { margin-top: var(--spacing-section) !important; }
.mb-section { margin-bottom: var(--spacing-section) !important; }
.py-section { padding-top: var(--spacing-section) !important; padding-bottom: var(--spacing-section) !important; }

/* Shadow Utilities */
.shadow-base { box-shadow: var(--shadow-base) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.glow-base { box-shadow: var(--glow-base) !important; }
.glow-lg { box-shadow: var(--glow-lg) !important; }

/* Transition Utilities */
.transition-colors { transition: var(--transition-colors) !important; }
.transition-all { transition: var(--transition-all) !important; }
.transition-transform { transition: var(--transition-transform) !important; }


/* ===== DARK MODE OVERRIDES (if ever needed) ===== */

@media (prefers-color-scheme: light) {
  /* brave new art is dark by design — no light mode overrides */
}
