/* -------------------------------------------------------
   AURORA-X CORE — BROWN COSMIC EDITION
   Global variables, typography, base UI elements
------------------------------------------------------- */

/* GLOBAL VARIABLES — BROWN THEME */
:root {
  --bg: #1a120c;              /* deep espresso */
  --bg-panel: #24170f;        /* chocolate brown */
  --accent: #4ec9ff;          /* cyan accent preserved */
  --accent-soft: #2b8bb8;     /* soft cyan */
  --text: #c8e6ff;            /* soft cosmic cyan */
  --text-dim: #8bb4d9;        /* muted sapphire (kept for dim labels) */
  --danger: #ff4e4e;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

h2, h3 {
  font-weight: 600;
}

/* -------------------------------------------------------
   TOP BAR — BROWN
------------------------------------------------------- */
.top-bar {
  height: 60px;
  background: #120c08; /* deep brown */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 2px solid rgba(80, 60, 40, 0.45); /* bronze */
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* MODE SWITCH BUTTONS */
.mode-switch button {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(80, 60, 40, 0.35); /* bronze */
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.mode-switch button:hover {
  background: rgba(50, 30, 20, 0.75);
}

/* -------------------------------------------------------
   GENRE TABS — BROWN
------------------------------------------------------- */

#genre-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
}

/* Ensure the left browser panel actually shows content */
.browser-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

#genre-tabs {
  flex-shrink: 0;
}

#playlist-list {
  flex-shrink: 0;
}

#track-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* BROWN GENRE TAB */
.genre-tab {
  background: rgba(36, 23, 15, 0.55); /* warm chocolate */
  color: var(--text);
  border: 1px solid rgba(80, 60, 40, 0.35); /* bronze */
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.genre-tab:hover {
  background: rgba(50, 30, 20, 0.75);
}

.genre-tab.active-genre {
  background: rgba(80, 60, 40, 0.45);
  border-color: rgba(120, 100, 70, 0.55);
  color: #000;
}

/* -------------------------------------------------------
   BUTTONS — BROWN
------------------------------------------------------- */

button {
  background: rgba(36, 23, 15, 0.55); /* warm chocolate */
  color: var(--text);
  border: 1px solid rgba(80, 60, 40, 0.35); /* bronze */
  border-radius: 6px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 10px rgba(0,0,0,0.5),
    inset 0 0 8px rgba(80, 60, 40, 0.25);
  transition: 0.2s ease;
}

button:hover {
  background: rgba(50, 30, 20, 0.75);
  box-shadow:
    0 0 14px rgba(80, 60, 40, 0.45),
    inset 0 0 10px rgba(80, 60, 40, 0.35);
}

/* -------------------------------------------------------
   SLIDERS — BROWN
------------------------------------------------------- */

input[type="range"] {
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(36,23,15,0.6),
    rgba(50,30,20,0.6)
  ); /* brown gradient */
  height: 5px;
  border-radius: 4px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}

input[type="range"]::-webkit-slider-thumb {
  background: var(--accent); /* cyan accent preserved */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(78, 201, 255, 0.7),
    0 0 20px rgba(78, 201, 255, 0.4);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(78, 201, 255, 0.7);
}

/* -------------------------------------------------------
   SHELL LAYOUT BASE (kept minimal)
------------------------------------------------------- */

html, body {
  height: 100%;
}

.shell-layout {
  height: calc(100% - 60px);
  display: grid;
  grid-template-columns: 260px 1fr 260px 260px;
  grid-template-rows: 1fr;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}
