/**
 * Design Tokens & Base Styles
 * Industrial Parts R Us Inc 2 - Dark Modern Theme
 */

:root {
  /* ================================
     COLOR SYSTEM - Dark Industrial
     ================================ */

  /* Primary: Bright Orange Accent */
  --nc-color-primary: #ff6600;
  --nc-color-primary-hover: #ff8533;
  --nc-color-primary-dark: #cc5200;

  /* Secondary: Dark Charcoal */
  --nc-color-secondary: #1a1a1a;
  --nc-color-secondary-hover: #2d2d2d;

  /* Accent: Bright Green for Status */
  --nc-color-accent: #00d084;
  --nc-color-accent-hover: #00f094;

  /* Surface Colors */
  --nc-color-surface: #0d0d0d;
  --nc-color-surface-alt: #1a1a1a;
  --nc-color-surface-elevated: #262626;
  --nc-color-surface-card: #1f1f1f;

  /* Text Colors */
  --nc-color-text: #ffffff;
  --nc-color-text-muted: #a0a0a0;
  --nc-color-text-dark: #666666;

  /* Border Colors */
  --nc-color-border: #333333;
  --nc-color-border-light: #404040;

  /* Status Colors */
  --nc-color-success: #00d084;
  --nc-color-warning: #ffb800;
  --nc-color-error: #ff4444;
  --nc-color-info: #4da6ff;

  /* Gradients */
  --nc-gradient-primary: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
  --nc-gradient-hero: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
  --nc-gradient-overlay: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.8) 100%);
  --nc-gradient-card: linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 100%);

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

  --nc-font-heading: 'Rajdhani', sans-serif;
  --nc-font-body: 'Inter', system-ui, sans-serif;

  /* Font Sizes - Responsive using clamp() */
  --nc-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --nc-text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --nc-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --nc-text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --nc-text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --nc-text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --nc-text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --nc-text-4xl: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  --nc-text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
  --nc-text-6xl: clamp(3.75rem, 3rem + 3vw, 5rem);

  /* Font Weights */
  --nc-font-light: 300;
  --nc-font-normal: 400;
  --nc-font-medium: 500;
  --nc-font-semibold: 600;
  --nc-font-bold: 700;

  /* Line Heights */
  --nc-leading-tight: 1.2;
  --nc-leading-snug: 1.375;
  --nc-leading-normal: 1.5;
  --nc-leading-relaxed: 1.625;
  --nc-leading-loose: 2;

  /* ================================
     SPACING
     ================================ */

  --nc-space-1: 0.25rem;
  --nc-space-2: 0.5rem;
  --nc-space-3: 0.75rem;
  --nc-space-4: 1rem;
  --nc-space-5: 1.25rem;
  --nc-space-6: 1.5rem;
  --nc-space-8: 2rem;
  --nc-space-10: 2.5rem;
  --nc-space-12: 3rem;
  --nc-space-16: 4rem;
  --nc-space-20: 5rem;
  --nc-space-24: 6rem;

  /* ================================
     LAYOUT
     ================================ */

  --nc-container-width: 1400px;
  --nc-container-padding: var(--nc-space-6);
  --nc-section-padding: clamp(3rem, 5vw, 6rem);

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

  --nc-radius-sm: 0.25rem;
  --nc-radius-base: 0.5rem;
  --nc-radius-lg: 0.75rem;
  --nc-radius-xl: 1rem;
  --nc-radius-2xl: 1.5rem;
  --nc-radius-full: 9999px;

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

  --nc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --nc-shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --nc-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --nc-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --nc-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --nc-shadow-orange: 0 10px 30px -5px rgba(255, 102, 0, 0.4);
  --nc-shadow-green: 0 10px 30px -5px rgba(0, 208, 132, 0.3);

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

  --nc-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --nc-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --nc-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --nc-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

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

  --nc-z-dropdown: 1000;
  --nc-z-sticky: 1020;
  --nc-z-fixed: 1030;
  --nc-z-drawer: 1040;
  --nc-z-overlay: 1050;
  --nc-z-modal: 1060;
  --nc-z-toast: 1070;
}

/* ================================
   CSS RESET & BASE STYLES
   ================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--nc-font-body);
  font-size: var(--nc-text-base);
  line-height: var(--nc-leading-normal);
  color: var(--nc-color-text);
  background-color: var(--nc-color-surface);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--nc-font-heading);
  font-weight: var(--nc-font-bold);
  line-height: var(--nc-leading-tight);
  color: var(--nc-color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: var(--nc-text-5xl); }
h2 { font-size: var(--nc-text-4xl); }
h3 { font-size: var(--nc-text-3xl); }
h4 { font-size: var(--nc-text-2xl); }
h5 { font-size: var(--nc-text-xl); }
h6 { font-size: var(--nc-text-lg); }

p {
  margin-bottom: var(--nc-space-4);
  color: var(--nc-color-text-muted);
}

a {
  color: var(--nc-color-primary);
  text-decoration: none;
  transition: color var(--nc-transition-fast);
}

a:hover {
  color: var(--nc-color-primary-hover);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ================================
   ACCESSIBILITY
   ================================ */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: var(--nc-space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--nc-color-surface-elevated);
  color: var(--nc-color-text);
  border: 2px solid var(--nc-color-primary);
  z-index: var(--nc-z-modal);
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  z-index: var(--nc-z-modal);
}

.skip-link:focus {
  position: fixed;
  top: var(--nc-space-4);
  left: var(--nc-space-4);
  padding: var(--nc-space-4) var(--nc-space-6);
  background: var(--nc-color-primary);
  color: var(--nc-color-surface);
  border-radius: var(--nc-radius-base);
  text-decoration: none;
  font-weight: var(--nc-font-semibold);
}

/* ================================
   FOCUS STYLES
   ================================ */

:focus-visible {
  outline: 2px solid var(--nc-color-primary);
  outline-offset: 2px;
}

/* ================================
   REDUCED MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
