/**
 * Photo Sphere Studio 3D - Universal Orbital Engine
 * main.css: Base styles, CSS variables, typography, canvas & slider reset
 */

:root {
  --brand-cyan: #00f0ff;
  --brand-violet: #8b5cf6;
  --brand-dark: #080a11;
  --brand-glass: rgba(13, 17, 29, 0.86);
  --brand-glass-border: rgba(255, 255, 255, 0.12);
  --brand-glass-glow: rgba(0, 240, 255, 0.25);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  background-color: var(--brand-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  color: #f1f5f9;
}

canvas#webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
}

/* Ergonomic touch sliders */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  height: 6px;
  border-radius: 9999px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.18);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--brand-cyan);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--brand-cyan);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.25);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
