/* ============================================================
   🎧 Harmonix — Sidebar.css (v2.0.0)
   Navigation latérale
   ============================================================ */

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  z-index: 100;
}

.logo {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  align-content: center;
  height: 80px;
  padding: 2px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.nav {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  margin-bottom: 4px;
  font-size: 14px;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
}

.nav-item i {
  width: 18px;
  font-size: 16px;
  text-align: center;
}

/* FOOTER */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, var(--bg-elev1));
  border-top: 1px solid var(--border);
  font-family: var(--ff);
  font-size: var(--fs-100);
  color: var(--text-muted);
  letter-spacing: 0.4px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.version-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.2;
}

.version-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--gold);
  opacity: 0.85;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
  transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.version-title:hover {
  opacity: 1;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.overlay.show {
  display: block;
}