/* Notification bell — navbar icon, unread badge, and dropdown list. */

.notification-bell {
  position: relative;
}

.notification-bell__btn {
  position: relative;
}

/* Circular counter with a defined ring, matching the bordered-circle
   convention already used by .badge-icon (components/badge.css) rather
   than inventing a new badge treatment. The ring is coloured to match the
   (now-opaque) topbar surface so the counter reads as sitting on top of
   the icon instead of merging into it. */
.notification-bell__badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  background-color: var(--color-ember);
  color: var(--color-cream);
  border: var(--border-width-bold) solid var(--color-soil);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
}

.notification-bell__badge.is-hidden {
  display: none;
}

.notification-bell__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  width: 340px;
  max-width: 90vw;
  max-height: 420px;
  overflow-y: auto;
  background-color: var(--surface-2);
  border: var(--border-width-bold) solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  z-index: var(--z-dropdown);
  animation: fade-up var(--transition-fast) both;
}

.notification-bell__dropdown.is-open { display: block; }

.notification-bell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background-color: var(--surface-2);
}

.notification-bell__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-parchment);
}

.notification-bell__mark-all {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--color-amber);
  font-family: var(--font-body);
}
.notification-bell__mark-all:hover { color: var(--color-sunflower); }

.notification-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.notification-row:last-child { border-bottom: none; }

.notification-row:hover {
  background-color: var(--color-white-05);
}

.notification-row--unread {
  background-color: var(--color-accent-05);
}

.notification-row--unavailable {
  cursor: default;
}

.notification-row--unavailable .notification-row__text {
  color: var(--color-ash);
}

.notification-row__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background-color: var(--color-ash);
}

.notification-row__dot--badge_awarded    { background-color: var(--color-vine); }
.notification-row__dot--ticket_answered,
.notification-row__dot--ticket_closed    { background-color: var(--color-honey); }
.notification-row__dot--reaction_received { background-color: var(--color-sunflower); }
.notification-row__dot--review_received  { background-color: var(--color-admin-accent); }

.notification-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-row__text {
  font-size: var(--text-sm);
  color: var(--color-parchment);
  line-height: var(--leading-snug);
}

.notification-row--unread .notification-row__text {
  font-weight: 600;
}

.notification-row__time {
  font-size: 11px;
  color: var(--color-ash);
}

#notification-empty-state .empty-state--compact {
  padding: var(--space-6) var(--space-4);
}
