/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--nav-bg);
}

.header__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

/* Profile dropdown */

.header__profile {
  position: relative;
}

.header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-text);
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.header__avatar:hover {
  opacity: 0.85;
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  padding: 6px;
  z-index: 100;
}

.header__dropdown.hidden {
  display: none;
}

.header__dropdown-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.header__dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.header__dropdown-item:hover {
  background: var(--surface-alt);
}

.header__dropdown-label {
  font-size: 14px;
  color: var(--text);
}

.header__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.header__dropdown-link {
  color: var(--text);
}

.header__dropdown-signout {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--error-text);
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}

.header__dropdown-signout:hover {
  background: var(--surface-alt);
}
