/* -------------------------------------------------------
   AURORA-X BROWN COSMIC GLASS — FINAL MASTER LAYER
   Extends: core.css, layout-*.css, theme-aurora.css
------------------------------------------------------- */

/* PANEL ENHANCEMENT — BROWN THEME */
.browser-panel,
.info-panel,
.dj-avatar-panel,
.deck,
.mixer-core {
  position: relative;
  background: radial-gradient(
    circle at top,
    #24170f,
    #1a120c 70%,
    #120c08 100%
  ); /* warm chocolate gradient */
  border-radius: 10px;
  border: 1px solid rgba(80, 60, 40, 0.35); /* bronze border */
}

/* INNER BRONZE BLOOM */
.browser-panel::before,
.info-panel::before,
.dj-avatar-panel::before,
.deck::before,
.mixer-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at top,
    rgba(80, 60, 40, 0.25),
    transparent 60%
  ); /* bronze glow */
  opacity: 0.5;
}

/* -------------------------------------------------------
   DECK FOCUS GLOW — BROWN EDITION
------------------------------------------------------- */
[data-deck].deck-focus {
  box-shadow:
    0 0 24px rgba(120, 100, 70, 0.55),
    0 0 60px rgba(120, 100, 70, 0.35);
  border: 1px solid rgba(120, 100, 70, 0.6);
  transform: translateY(-2px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

[data-deck]:not(.deck-focus) {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

/* -------------------------------------------------------
   HUD PANEL + ROWS — BROWN
------------------------------------------------------- */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.info-panel h2 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(120, 100, 70, 0.6); /* bronze glow */
}

.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(36, 23, 15, 0.85),
    rgba(50, 30, 20, 0.85)
  ); /* brown gradient */
  box-shadow: 0 0 10px rgba(20, 12, 8, 0.8);
}

/* LABELS */
.hud-row span:first-child {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

/* VALUES — PRIMARY GLOW TARGET */
.hud-row span:last-child {
  color: var(--text);
  font-weight: 500;
  text-shadow:
    0 0 8px rgba(120, 100, 70, 0.7),
    0 0 16px rgba(120, 100, 70, 0.4); /* bronze glow */
}

/* -------------------------------------------------------
   SPECIFIC HUD FIELDS
------------------------------------------------------- */
#hud-mode {
  color: var(--accent);
  font-weight: 600;
}

#hud-track-a,
#hud-track-b {
  font-weight: 600;
}

#hud-next {
  color: #d8c49a; /* warm gold */
}

#hud-bpm,
#hud-key,
#hud-energy {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
}

#hud-remaining {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
  color: #4eff9a;
  text-shadow:
    0 0 10px rgba(78, 255, 154, 0.7),
    0 0 20px rgba(78, 255, 154, 0.4);
}

#hud-autodj-status {
  font-weight: 600;
  color: var(--text-dim);
}

#hud-autodj-status.autodj-on {
  color: #4eff9a;
  text-shadow:
    0 0 10px rgba(78, 255, 154, 0.8),
    0 0 24px rgba(78, 255, 154, 0.5);
}

#hud-crossfader {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
}

/* -------------------------------------------------------
   PROGRESS A/B
------------------------------------------------------- */
#hud-progress-a,
#hud-progress-b {
  font-family: "Consolas", "SF Mono", ui-monospace, monospace;
}

#hud-progress-a.near-end,
#hud-progress-b.near-end {
  color: #ffb84e;
  text-shadow:
    0 0 10px rgba(255, 184, 78, 0.8),
    0 0 24px rgba(255, 184, 78, 0.5);
}

/* -------------------------------------------------------
   ENERGY COLOR SYSTEM
------------------------------------------------------- */
#hud-energy.energy-low {
  color: var(--accent);
  text-shadow:
    0 0 10px rgba(78, 201, 255, 0.8),
    0 0 24px rgba(78, 201, 255, 0.5);
}

#hud-energy.energy-mid {
  color: #4eff9a;
  text-shadow:
    0 0 10px rgba(78, 255, 154, 0.8),
    0 0 24px rgba(78, 255, 154, 0.5);
}

#hud-energy.energy-high {
  color: #ffb84e;
  text-shadow:
    0 0 10px rgba(255, 184, 78, 0.9),
    0 0 26px rgba(255, 184, 78, 0.6);
}

/* -------------------------------------------------------
   MASTER METER GLOW — BROWN
------------------------------------------------------- */
.master-meter-wrap {
  box-shadow: 0 0 12px rgba(120, 100, 70, 0.35);
}

.master-meter {
  box-shadow:
    0 0 10px rgba(120, 100, 70, 0.7),
    0 0 22px rgba(78, 255, 154, 0.5);
}

/* -------------------------------------------------------
   TRACK BROWSER SELECTION GLOW
------------------------------------------------------- */
.track-row.selected {
  background: #ff8c00 !important;
  color: #000 !important;
  border-radius: 6px;
  padding: 4px;
  box-shadow:
    0 0 10px rgba(255, 140, 0, 0.9),
    0 0 24px rgba(255, 140, 0, 0.6);
}

.track-row:hover {
  background: rgba(255, 140, 0, 0.4);
  cursor: pointer;
  border-radius: 6px;
}

/* -------------------------------------------------------
   JOG WHEEL — BROWN COSMIC
------------------------------------------------------- */

.jog-wheel {
  position: relative;
  overflow: visible;
  --jog-color: var(--accent); /* cyan accent preserved */
}

.jog-core {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #2c1e14, #1a120c);
  box-shadow:
    0 0 18px rgba(120, 100, 70, 0.4),
    0 0 40px rgba(120, 100, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

/* Rotating marker */
.jog-marker {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--jog-color);
  box-shadow:
    0 0 8px rgba(78, 201, 255, 0.9),
    0 0 18px rgba(78, 201, 255, 0.6);
}

/* Spectral core */
.jog-spectrum {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(120, 100, 70, 0.5), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(78, 255, 154, 0.4), transparent 60%),
    radial-gradient(circle, #1a120c, #120c08);
  filter: blur(1px);
}

/* Energy orb */
.jog-energy-orb {
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--jog-color), transparent 70%);
  box-shadow:
    0 0 18px rgba(78, 201, 255, 0.9),
    0 0 40px rgba(78, 201, 255, 0.7);
  animation: jog-orb-breathe 3s ease-in-out infinite;
}

/* Idle breathing */
.jog-wheel.jog-idle .jog-core {
  animation: jog-idle-breathe 4s ease-in-out infinite;
}

/* Near-end warning */
.jog-wheel.jog-near-end .jog-core {
  box-shadow:
    0 0 24px rgba(255, 184, 78, 0.9),
    0 0 60px rgba(255, 184, 78, 0.7);
}

.jog-wheel.jog-near-end .jog-marker {
  background: #ffb84e;
}

/* Energy color mapping */
.jog-wheel.jog-energy-low {
  --jog-color: var(--accent);
}

.jog-wheel.jog-energy-mid {
  --jog-color: #4eff9a;
}

.jog-wheel.jog-energy-high {
  --jog-color: #ffb84e;
}

/* Awakening when track loads */
.jog-wheel.jog-awaken .jog-core {
  animation: jog-awaken 0.7s ease-out;
}

/* Keyframes */
@keyframes jog-orb-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes jog-idle-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(120, 100, 70, 0.3),
      0 0 26px rgba(120, 100, 70, 0.18);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 0 18px rgba(120, 100, 70, 0.5),
      0 0 40px rgba(120, 100, 70, 0.3);
  }
}

@keyframes jog-awaken {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* -------------------------------------------------------
   RADIAL SPECTRUM BARS
------------------------------------------------------- */

.jog-bars {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.jog-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 20px;
  background: var(--jog-color);
  border-radius: 2px;
  transform-origin: center bottom;
  opacity: 0.5;
  box-shadow:
    0 0 8px currentColor,
    0 0 16px currentColor;
}
