/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1000px;

  z-index: 5;
  border-radius: 16px;
}

/* =========================
   INNER
========================= */
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-ctrl {
  display: flex;
  gap: 4px;
}

/* =========================
   ICON / CHROME BUTTONS
========================= */
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;

  color: var(--text);
  font-size: 18px;
  line-height: 1;

  background: var(--copy-btn-bg);
  border: 1px solid var(--copy-btn-border);
  border-radius: 8px;
  cursor: pointer;

  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  opacity: 0.7;
}

.nav-btn:hover {
  opacity: 1;
  background: var(--copy-btn-hover);
  transform: translateY(-1px);
}

.nav-btn:active { transform: translateY(0) scale(0.94); }

/* the "?" help button gets the pixel font */
.nav-btn-pixel {
  font-family: var(--pixel-font);
  font-size: 11px;
}

/* =========================
   LINKS
========================= */
.nav-links a {
  margin-left: 20px;
  text-decoration: none;

  color: var(--text);
  opacity: 0.6;

  position: relative;
  transition: 0.25s;
}

/* pill container */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}

/* =========================
   ACTIVE (glass pill)
========================= */
.nav-link.active {
  background: var(--glass-highlight);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 1px var(--glass-highlight),
    0 4px 20px var(--shadow-soft);
}

/* =========================
   HOVER
========================= */
.nav-links a:hover {
  opacity: 1;
}

/* underline animation */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;

  width: 0%;
  height: 1px;

  background: var(--link-hover-underline);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========================
   THEME BUTTON
========================= */
.theme-btn {
  background: var(--copy-btn-bg);
  border: 1px solid var(--copy-btn-border);

  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;

  transition: all 0.25s ease;
}

.theme-btn:hover {
  background: var(--copy-btn-hover);
  transform: scale(1.05);
}
