/* ============================================================
   Shared header auth styles — login pill + avatar dropdown.

   index.html linked this file but it was never in the project, so the
   logged-out button and the profile dropdown had no styling at all.
   Rebuilt here against the design tokens already declared in the page's
   own <style> block (--primary, --border, --text-*, --radius-*), so it
   inherits the same palette and needs no variables of its own.
   ============================================================ */

/* ---------- Logged out ---------- */
/* The plain "Login / Sign Up" pill this used to style has been replaced
   by the "Sign In | Register" split menu in nav-drawer.css (.btn-auth-header
   there now targets the new dropdown trigger — kept here previously, this
   old copy is removed so the two files can't disagree on the same class). */

/* ---------- Logged in: avatar + dropdown ---------- */
.user-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 6px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.profile-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-dropdown-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-dropdown-header div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-dropdown-header strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-header span {
  font-size: 0.72rem;
  color: var(--text-subtle, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown-item i { font-size: 1.05rem; color: var(--text-muted, #64748b); }
.profile-dropdown-item:hover { background: var(--primary-light, #eff6ff); color: var(--primary, #2563eb); }
.profile-dropdown-item:hover i { color: var(--primary, #2563eb); }

.profile-dropdown-item.logout-item {
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 9px 9px;
  color: var(--accent-red, #ef4444);
}

.profile-dropdown-item.logout-item i { color: var(--accent-red, #ef4444); }

.profile-dropdown-item.logout-item:hover {
  background: #fef2f2;
  color: var(--accent-red, #ef4444);
}
