:root { color-scheme: only light; }

/* ---- Wrapper ---- */
.nav-wrap {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

/* ---- Glass pill ---- */
.glass-nav {
  pointer-events: all;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  max-width: 340px;
  transition: box-shadow 0.25s ease;
}

/* ---- Tabs ---- */
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  opacity: 0.7;
  transition: all 0.25s ease;
}
.nav-tab:hover { opacity: 1; }
.nav-tab.active {
  background: rgba(255,255,255,0.9);
  opacity: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.nav-tab img {
  width: 22px; height: 22px;
  margin-bottom: 0.2rem;
}
.nav-label {
  font-size: 0.75rem;
  color: #111;
  font-weight: 500;
}

/* ---- Body offset ---- */
body.nav-offset {
  padding-top: 5.5rem;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .glass-nav {
    padding: 0.4rem 0.8rem;
    gap: 0.6rem;
    max-width: 320px;
  }
  .nav-tab img { width: 20px; height: 20px; }
  .nav-label { font-size: 0.7rem; }
}
