@import "tailwindcss";

@layer base {
  :root {
    color-scheme: dark;
    --bg-void: #06080c;
    --chassis: #0c1018;
    --chassis-elevated: #121824;
    --cyan-neon: #00f0ff;
    --amber-neon: #ff6b00;
    --crimson-neon: #ff1e56;
    --lime-neon: #22ff88;
  }

  html,
  body {
    background-color: var(--bg-void);
    color: #e6eef8;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
  }
}

/* Brushed dark obsidian hardware console chassis */
.dj-chassis {
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(0, 240, 255, 0.06), transparent 55%),
    radial-gradient(90% 70% at 88% 100%, rgba(255, 107, 0, 0.07), transparent 58%),
    linear-gradient(180deg, #101520 0%, #090c12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    0 24px 60px rgba(0, 0, 0, 0.65);
}

.dj-module {
  background: linear-gradient(180deg, rgba(20, 27, 39, 0.92) 0%, rgba(11, 15, 22, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.dj-recessed {
  background: linear-gradient(180deg, #06080d 0%, #0b1019 100%);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mandatory touch-safe surface for all DJ controls */
.touch-pad {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Tactile DJ hardware pad press */
.dj-pad-btn {
  transition: transform 75ms ease, box-shadow 120ms ease, border-color 120ms ease, background-color 120ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.dj-pad-btn:active,
.dj-pad-btn.is-active {
  transform: translateY(1px) scale(0.975);
}

/* Custom hardware BASS fader */
input[type="range"].bass-fader {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"].bass-fader::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b1320 0%, #00f0ff 45%, #ff6b00 80%, #ff1e56 100%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75);
}

input[type="range"].bass-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 30px;
  margin-top: -10px;
  border-radius: 7px;
  background: linear-gradient(180deg, #e2ecf8 0%, #94a3b8 50%, #cbd5e1 100%);
  border: 2px solid #090d14;
  box-shadow:
    0 0 14px rgba(0, 240, 255, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.65);
}

input[type="range"].bass-fader::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b1320 0%, #00f0ff 45%, #ff6b00 80%, #ff1e56 100%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.75);
}

input[type="range"].bass-fader::-moz-range-thumb {
  width: 24px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(180deg, #e2ecf8 0%, #94a3b8 50%, #cbd5e1 100%);
  border: 2px solid #090d14;
  box-shadow:
    0 0 14px rgba(0, 240, 255, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.65);
}

/* 💥 DROP Nuke Button styling */
.drop-nuke-btn {
  background: linear-gradient(135deg, #ff6b00 0%, #ff1e56 58%, #e11d48 100%);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.35),
    inset 0 -4px 10px rgba(90, 0, 20, 0.55),
    0 0 28px rgba(255, 30, 86, 0.45),
    0 10px 26px rgba(0, 0, 0, 0.6);
  transition: transform 70ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 120ms ease;
}

.drop-nuke-btn:hover {
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.42),
    inset 0 -4px 10px rgba(90, 0, 20, 0.55),
    0 0 40px rgba(255, 107, 0, 0.68),
    0 12px 30px rgba(0, 0, 0, 0.65);
}

.drop-nuke-btn:active,
.drop-nuke-btn.is-detonating {
  transform: scale(0.965);
  box-shadow:
    0 0 55px rgba(255, 107, 0, 0.95),
    0 0 90px rgba(255, 30, 86, 0.8);
}

/* Fullscreen Neon DROP Flash */
@keyframes dropFlashAnim {
  0% {
    opacity: 0;
  }
  12% {
    opacity: 0.72;
  }
  38% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
  }
}

.drop-flash-active {
  animation: dropFlashAnim 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Console Micro-Shake on DROP */
@keyframes consoleShakeAnim {
  0% { transform: translate3d(0, 0, 0); }
  12% { transform: translate3d(-5px, 4px, 0) rotate(-0.35deg); }
  25% { transform: translate3d(5px, -4px, 0) rotate(0.35deg); }
  38% { transform: translate3d(-4px, -3px, 0) rotate(-0.2deg); }
  52% { transform: translate3d(4px, 3px, 0) rotate(0.2deg); }
  68% { transform: translate3d(-2px, 2px, 0); }
  84% { transform: translate3d(2px, -1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.console-shake-active {
  animation: consoleShakeAnim 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Recording pulse dot */
@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.rec-dot-pulse {
  animation: recPulse 0.9s ease-in-out infinite;
}

/* Drag-over dropzone ring */
.drag-active {
  outline: 2px dashed #00f0ff;
  outline-offset: -4px;
  box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.18);
}
