/* Navbar & Top Navigation Styles */

.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.75rem 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  background: var(--yellow-primary);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 15px var(--yellow-glow);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #ffffff;
  line-height: 0.9;
  letter-spacing: 1.5px;
}

.brand-name span {
  color: var(--yellow-primary);
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Portal Mode Switcher Tabs */
.portal-switch-group {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-muted);
}

.switch-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.switch-tab-btn.active {
  background: var(--yellow-primary);
  color: var(--text-dark);
  box-shadow: 0 2px 10px var(--yellow-glow);
}

/* Auth / User Control */
.nav-user-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-session-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--card-border);
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--yellow-primary);
  color: var(--text-dark);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-email-text {
  font-size: 0.85rem;
  color: var(--text-main);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .portal-navbar { padding: 0.75rem 1rem; }
  .brand-sub { display: none; }
  .user-email-text { display: none; }
}
