/* ================================================================
   BASE.CSS — Design Tokens, Reset, Global Defaults
   Synapse · Product of Synaptix Technologies · Built by Gurnoor Singh
   ================================================================ */

/* ── Design Token System ── */
:root {
  /* Backgrounds & Surfaces */
  --bg: #020408;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.08);
  --surface3: rgba(255, 255, 255, 0.12);

  /* Primary Palette */
  --blue: #0ea5e9;
  --blue-glow: rgba(14, 165, 233, 0.12);
  --purple: #6366f1;
  --purple-glow: rgba(99, 102, 241, 0.12);
  --magenta: #d946ef;

  /* Extended Palette */
  --cyan: #0ea5e9;
  --orange: #f97316;
  --green: #10b981;
  --red: #ef4444;
  --gold: #f59e0b;

  /* Text */
  --text: #f3f4f6;
  --text-secondary: #9ca3af;
  --dim: #6b7280;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Glow Presets (Soft deep drop shadows instead of neon glows for minimalist aesthetic) */
  --gb: 0 8px 30px rgba(0, 0, 0, 0.45);
  --gp: 0 8px 30px rgba(0, 0, 0, 0.45);
  --gm: 0 8px 30px rgba(0, 0, 0, 0.45);

  /* Typography — New Premium Stack */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-wide: 'Syncopate', sans-serif;

  /* Legacy aliases (backwards compat) */
  --fd: var(--font-display);
  --fb: var(--font-body);
  --fm: var(--font-mono);
  --fw: var(--font-wide);

  /* Spacing Scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Transition Easings */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Smooth Scrolling ── */
html {
  scroll-behavior: smooth;
}

/* ── Body Defaults ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) var(--bg);
}

/* ── Selection Styling ── */
::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

/* ── Accessibility: Screen Reader Only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Image Defaults ── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* ── Link Reset ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── List Reset ── */
ul,
ol {
  list-style: none;
}

/* ── Button Reset ── */
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Input Reset ── */
input,
textarea,
select {
  font: inherit;
}

/* ── High-Tech Cybernetic Cockpit Range Sliders ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  height: 32px; /* Large touch/drag track zone */
  display: flex;
  align-items: center;
}

input[type="range"]:focus {
  outline: none;
}

/* Chrome, Safari, Edge, Opera Track */
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease-smooth);
}

/* Chrome, Safari, Edge, Opera Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-top: -6px; /* (Track height / 2) - (Thumb height / 2) */
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background-color 0.25s;
  position: relative;
  z-index: 10;
}

/* Thumb Hover & Active states */
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}

input[type="range"]:hover::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Firefox Track */
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s var(--ease-smooth);
}

/* Firefox Thumb */
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background-color 0.25s;
  cursor: pointer;
  box-sizing: border-box;
}

/* Firefox Thumb Hover & Active */
input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.15);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
}

input[type="range"]:hover::-moz-range-track {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}


