/* =========================================
   sidebar.css — sidebar + mobile overlay
   ========================================= */

#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

frhd-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.25s ease;
}

frhd-sidebar::-webkit-scrollbar { width: 4px; }
frhd-sidebar::-webkit-scrollbar-track { background: transparent; }
frhd-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Logo ── */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none !important;
  flex-shrink: 0;
}
.sidebar-logo:hover { text-decoration: none !important; }

.logo-badge {
  background: var(--accent);
  color: var(--bg-sidebar);
  font-weight: 800;
  font-size: 11px;
  padding: 4px 7px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  line-height: 1;
}

.logo-label {
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.25;
}
.logo-label small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ── Nav sections ── */
.sidebar-section { padding: 10px 0 4px; }

.sidebar-label {
  padding: 0 12px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.sidebar-nav { list-style: none; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sidebar);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  background: var(--bg-hover);
  color: #ffffff;
  text-decoration: none;
}
.sidebar-nav a.active {
  color: #ffffff;
  border-left-color: var(--accent);
  background: var(--accent-glow);
}
.sidebar-nav a .icon {
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-nav a.active .icon { opacity: 1; }

.sidebar-nav.years a {
  padding-left: 20px;
  font-size: 12.5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 6px 0;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  frhd-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.35);
  }
  frhd-sidebar.open { transform: translateX(0); }
}