/* ═══════════════════════════════════════════════
   GOING NORTH — navbar.css
   Navbar escura compartilhada por todas as páginas
   do app (não usada no login.html).
   ═══════════════════════════════════════════════ */

.navbar {
  background: var(--nav-bg);
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 40px;
  white-space: nowrap;
}

.nav-logo-icon {
  width: 40px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  color: var(--nav-text);
  font-size: .84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  transition: all .2s;
}

.nav-links a:hover  { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-links a.active { color: #fff; background: var(--green); font-weight: 600; }

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

/* Botões do lado direito (visitante) */
.btn-login {
  color: rgba(255, 255, 255, .7);
  font-size: .84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 7px;
  transition: all .2s;
}

.btn-login:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.btn-nav-cta {
  background: var(--green);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  transition: all .2s;
  font-family: var(--font-b);
}

.btn-nav-cta:hover { background: var(--green-h); }

/* Área do usuário logado */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  font-weight: 500;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
}

/* Badges de role */
.nav-role-badge {
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-admin { background: var(--gold); color: #0f2318; }
.badge-pro   { background: var(--green); color: #fff; }

/* Botão de logout na navbar */
.btn-logout-nav,
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .6);
  padding: 5px 12px;
  border-radius: 7px;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-b);
}

.btn-logout-nav:hover,
.btn-logout:hover {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

/* ── Responsivo ── */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .navbar    { padding: 0 16px; }
}
