@charset "utf-8";
/* Ravefish – Dark Mystic Club Style */

/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */

:root {
  --bg-main: radial-gradient(circle at 20% 0%, #17182b 0, #050711 45%, #000000 100%);
  --panel-bg: rgba(10, 11, 26, 0.92);
  --panel-border: rgba(152, 166, 255, 0.18);
  --accent: #7b6dff;
  --accent-soft: #a96dff;
  --accent-strong: #5c9dff;
  --text-main: #f5f6ff;
  --text-muted: #a4a7c9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 16px 40px;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------
   HEADLINE & TEXT
-------------------------------------------------- */

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(124, 135, 255, 0.7),
    0 0 32px rgba(0, 0, 0, 0.9);
}

p {
  max-width: 720px;
  margin: 0 auto 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

/* --------------------------------------------------
   CONTROLS / LAYOUT
-------------------------------------------------- */

/* Hauptlayout: links Controls, rechts Canvas */
.main-layout {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1600px;
}

/* Panel links */
.controls {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px 24px;
  border-radius: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  text-align: left;
  width: 260px;
  transform: translateX(40px);
  position: relative;
  overflow: hidden;
}

.control-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* kleine Überschriften im Panel (falls du h2 nutzt) */
.controls h2 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* „Geräte-Look“ Rahmen & Linie */
.controls::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(123, 109, 255, 0.25);
  box-shadow:
    0 0 30px rgba(123, 109, 255, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.controls::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(123, 109, 255, 0),
    rgba(123, 109, 255, 0.7),
    rgba(123, 109, 255, 0)
  );
  opacity: 0.35;
  pointer-events: none;
}

/* Section-Titel (Audioquelle, Visual-Modus) */
.controls strong {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4e6ff;
}

/* --------------------------------------------------
   SLIDERS
-------------------------------------------------- */

.slider-group {
  display: flex;
  flex-direction: column;
  min-width: 210px;
  text-align: left;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.slider-value {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Base range styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(92, 157, 255, 0.6),
    rgba(169, 109, 255, 0.25)
  );
  outline: none;
  cursor: pointer;
}

/* WebKit Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #e7e9ff 35%, #7b6dff 100%);
  border: none;
  box-shadow:
    0 0 0 4px rgba(123, 109, 255, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* Firefox Thumb */
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #e7e9ff 35%, #7b6dff 100%);
  border: none;
  box-shadow:
    0 0 0 4px rgba(123, 109, 255, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.8);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

input[type="range"]:active::-webkit-slider-thumb,
input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow:
    0 0 0 5px rgba(123, 109, 255, 0.5),
    0 4px 18px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

button {
  margin: 4px 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at 0% 0%, #313557 0, #141629 55%, #0b0c17 100%);
  color: #f5f6ff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.85);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease,
    filter 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 183, 255, 0.7);
  filter: brightness(1.05);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.95);
}

button:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.9);
}

/* Primary: Demo-Track */
#playDemoBtn {
  background: linear-gradient(135deg, #7b6dff, #a96dff);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Secondary: Live-Eingang */
#micBtn {
  background: radial-gradient(circle at 0% 0%, #1f2038 0, #101220 60%, #090a12 100%);
  border-color: rgba(123, 109, 255, 0.55);
}

/* Reset: Ghost */
#resetBtn {
  margin-top: 8px;
  align-self: stretch;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  background: transparent;
  border-style: dashed;
  border-color: rgba(164, 167, 201, 0.7);
  box-shadow: none;
}

#resetBtn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(173, 183, 255, 0.95);
}

/* aktive Buttons (wenn du per JS .is-active setzt) */
button.is-active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 0 24px rgba(169, 109, 255, 0.8);
}

/* --------------------------------------------------
   SELECT / DROPDOWN
-------------------------------------------------- */

/* geschlossenes Select */
select {
  margin-top: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(137, 146, 255, 0.5);
  background: radial-gradient(circle at 0% 0%, #2a2844 0, #141425 50%, #0c0c16 100%);
  color: #f5f6ff;
  font-size: 0.83rem;
  outline: none;
  cursor: pointer;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.9);
}

select:hover,
select:focus {
  border-color: rgba(173, 183, 255, 0.9);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(100, 126, 255, 0.55);
  transform: translateY(-1px);
}

/* Options im offenen Menü */
select option {
  background: #0f1020;
  color: #f5f6ff;
}

/* Hover / aktive Option: dunkler Hintergrund mit weißem Rahmen */
select option:hover,
select option:focus,
select option:active,
select option:checked {
  background: #0f1020 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------
   CANVAS CONTAINER
-------------------------------------------------- */

#sketch-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}

#sketch-container canvas {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(107, 132, 255, 0.45);
  background: radial-gradient(circle at 50% 0%, #151527 0, #050711 70%);
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 720px) {
  body {
    padding: 20px 10px 30px;
  }

  .main-layout {
    flex-direction: column;
    align-items: center;
  }

  .controls {
    transform: none;
    width: 100%;
    max-width: 360px;
    padding: 18px 16px 20px;
    margin-bottom: 16px;
  }

  .slider-group {
    min-width: 100%;
  }

  #sketch-container canvas {
    max-width: 100%;
  }
}
