/* ====== NAVBAR ====== */
.navbar {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

/* ====== BRAND & LOGO ====== */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-color, #4f8cff);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navbar__brand:hover {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.navbar__logo {
  flex-shrink: 0;
}

.navbar__title {
  font-family: var(--ff, system-ui);
}

/* ====== NAVIGATION ====== */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.navbar__link {
  position: relative;
  color: #a1a1aa;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.navbar__link:hover {
  color: #ffffff;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color, #4f8cff);
  transition: width 0.2s ease;
}

.navbar__link:hover::after {
  width: 100%;
}

/* ====== ACTIONS ====== */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ====== PROFILE ====== */
.profile {
  position: relative;
}

.profile__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: 1px solid #2a2a2a;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: #e8e8e8;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #3a3a3a;
}

.profile__btn:focus-visible {
  outline: 2px solid var(--accent-color, #4f8cff);
  outline-offset: 2px;
}

.profile__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile__avatar--initials {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4f8cff, #667eea);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  user-select: none;
}

.profile__name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.profile__btn[aria-expanded="true"] .profile__chevron {
  transform: rotate(180deg);
}

/* ====== PROFILE MENU ====== */
.profile__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #1a1a1d;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  z-index: 50;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.profile__menu[hidden] {
  display: block;
}

.profile__menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: none;
  border: none;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile__item:hover {
  background: rgba(79, 140, 255, 0.12);
  color: var(--accent-color, #4f8cff);
}

.profile__item i {
  width: 16px;
  text-align: center;
  opacity: 0.8;
}

.profile__sep {
  height: 1px;
  margin: 0.5rem 0;
  background: #2f2f2f;
  border: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .navbar__container {
    padding: 0 1.5rem;
  }
  
  .navbar__nav {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar__container {
    padding: 0 1rem;
  }
  
  .navbar__nav {
    display: none;
  }
  
  .profile__name {
    display: none;
  }
  
  .profile__btn {
    padding: 0.5rem;
  }
}