/*
 * notifications.css — Notification bell, badge, and dropdown panel.
 */

/* ── Bell container ── */
.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  transition: color var(--duration-fast) var(--ease-out-expo);
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell__toggle:hover {
  color: var(--color-text);
}

/* ── Unread badge ── */
.notif-bell__badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-crimson);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

/* ── Dropdown panel ── */
.notif-bell__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-height: 400px;
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.notif-bell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-bell__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.notif-bell__mark-all {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-crimson);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  padding: 0;
  transition: opacity var(--duration-fast) ease;
}

.notif-bell__mark-all:hover {
  opacity: 0.7;
}

/* ── Notification list ── */
.notif-bell__list {
  overflow-y: auto;
  max-height: 340px;
}

.notif-bell__empty {
  padding: 40px 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ── Single notification item ── */
.notif-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--duration-fast) ease;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item--unread {
  border-left: 2px solid var(--color-crimson);
}

.notif-item--read {
  opacity: 0.5;
}

.notif-item__title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--color-text);
}

.notif-item__body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.notif-item__time {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .notif-bell__panel {
    width: calc(100vw - 32px);
    right: -60px;
  }
}
