/* ==========================================
   HEADER NOTIFICATIONS
========================================== */

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notification-menu {
  position: relative;
}

.notification-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.notification-button:hover {
  background: var(--blue-soft);
}

.notification-button svg {
  width: 22px;
  height: 22px;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #ef4444;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 150;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.notification-dropdown-heading,
.notification-dropdown-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.notification-dropdown-heading {
  border-bottom: 1px solid var(--border);
}

.notification-dropdown-actions {
  border-top: 1px solid var(--border);
}

.notification-list {
  max-height: 360px;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background-color 150ms ease;
}

.notification-item:hover {
  background: var(--surface-soft);
}

.notification-item-unread {
  background: var(--blue-soft);
}

.notification-item strong {
  font-size: 0.9rem;
}

.notification-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.notification-item small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 0.72rem;
}

.notification-empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.notification-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.notification-text-button:hover {
  text-decoration: underline;
}

.notification-delete-button {
  color: #b42318;
}

@media (max-width: 760px) {
  .header-user-actions {
    gap: 6px;
  }

  .notification-dropdown {
    position: fixed;
    top: calc(var(--header-height) - 4px);
    right: 12px;
    left: 12px;
    width: auto;
  }
}
