.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

/* ── Left Group: Brand + Links ───────────────────────────── */

.navbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__brand-group {
  display: flex;
  align-items: center;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-brand);
  margin-right: 2rem;
  letter-spacing: 0.5px;
}

.navbar__links {
  display: flex;
  gap: 0.25rem;
}

.navbar__link {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 1.425rem;
  font-weight: 200;
  color: var(--color-text-subtle);
  background-color: transparent;
  transition: all 0.15s ease;
}

.navbar__link--active {
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-bg-card);
}

/* ── Right Group: Email + Logout + Hamburger ─────────────── */

.navbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar__user {
  font-size: 1.275rem;
  color: #777;
}

.navbar__user-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.navbar__user-link:hover {
  color: var(--color-primary-hover);
}

.navbar__user-link--mobile {
  display: none;
}

.navbar__logout {
  padding: 0.4rem 1rem;
  font-size: 1.275rem;
  font-weight: 400;
  background-color: transparent;
  color: var(--color-text-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
}

/* ── Hamburger Icon (hidden on desktop) ──────────────────── */

.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger-bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-brand);
  border-radius: 2px;
}

/* ── Responsive: Tablet & below (≤ 768px) ────────────────── */

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .navbar__brand-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar__brand {
    margin-right: 0;
    font-size: 1.25rem;
  }

  .navbar__links {
    display: none;
  }

  .navbar__user-link--mobile {
    display: block;
    font-size: 0.95rem;
  }

  .navbar__user-link--desktop {
    display: none;
  }

  .navbar__logout {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }
}

/* ── Responsive: Mobile (≤ 480px) ────────────────────────── */

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem;
  }

  .navbar__brand {
    font-size: 1.15rem;
  }

  .navbar__user-link--mobile {
    font-size: 0.85rem;
  }
}
