/* The contents of the notification feed: plain rows, and event cards for
   notifications that carry a banner. Split out of notifications.css, which keeps
   the bell and panel chrome, so both stay under the 300-line source gate. */

.notification-list {
  margin: 0;
  padding: 6px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-item {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
}

.notification-item[data-target-url] {
  cursor: pointer;
}

.notification-item[data-target-url]:hover {
  background: var(--desktop-surface-strong);
}

.notification-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}

.notification-item.is-unread .notification-dot {
  background: #00a9bf;
}

.notification-item.is-pinned .notification-dot {
  background: #00a9bf;
  box-shadow: 0 0 0 3px rgba(0, 169, 191, 0.18);
}

:root[data-alyssiun-atmosphere="neo"] .notification-item.is-unread .notification-dot,
:root[data-alyssiun-atmosphere="neo"] .notification-item.is-pinned .notification-dot {
  background: #00e5ff;
}

:root[data-alyssiun-atmosphere="neo"] .notification-item.is-pinned .notification-dot {
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}

/* Event card: banner, then title and short description. Only notifications that
   actually carry an image become cards. */
.notification-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--desktop-border);
  border-radius: 11px;
  background: var(--desktop-surface-strong);
  cursor: pointer;
}

.notification-card:hover {
  border-color: var(--desktop-muted);
}

.notification-card-banner {
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--desktop-surface);
}

.notification-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notification-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 11px 12px 12px;
  min-width: 0;
}

.notification-card-body strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Three lines is enough to know what the event is; the rest is in the event. */
.notification-card-body .notification-body {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
}

.notification-card .notification-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notification-card .notification-dot {
  margin-top: 0;
}

.notification-card .notification-action {
  margin-top: 3px;
  align-self: flex-start;
}

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

.notification-text strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.notification-body {
  color: var(--desktop-muted);
  overflow-wrap: anywhere;
}

.notification-meta {
  color: var(--desktop-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notification-action {
  align-self: center;
  padding: 5px 10px;
  border: 1px solid var(--desktop-border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.notification-item.is-pinned .notification-action {
  border-color: transparent;
  background: #00a9bf;
  color: #ffffff;
}

:root[data-alyssiun-atmosphere="neo"] .notification-item.is-pinned .notification-action {
  background: #00e5ff;
  color: #04161a;
}

@media (prefers-reduced-motion: no-preference) {
  .notification-item.is-pinned .notification-dot {
    animation: notification-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes notification-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 169, 191, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(0, 169, 191, 0.06); }
}
