/* === Navbar Container === */
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  padding: 0;
  margin: 0;
}

/* === Navbar Links === */
.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 0.25em 0.6em;
  border-radius: var(--border-radius);
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  background: color-mix(in srgb, var(--card-bg) 80%, var(--accent) 20%);
  color: var(--link);
}

.nav-link.active {
  text-decoration: underline;
  color: var(--link);
}

/* === Theme Toggle Section === */
.theme-buttons {
  display: inline-block;
  margin-left: 1em;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0.2em;
  margin: 0 0.1em;
  transition: transform 0.2s ease;
  position: relative;
}

.theme-btn:hover {
  transform: scale(1.15);
}

.theme-btn:hover::after {
  content: attr(title);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.2em);
  background: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.6em;
  white-space: nowrap;
  opacity: 0.85;
  pointer-events: none;
  z-index: 10;
  color: black;
}
