/**
 * Notifications CSS
 *
 * Styling for notification components on dashboard
 */

/* ===========================================
   NOTIFICATION LIST
   =========================================== */
swp-notification-list {
  display: contents;
}

/* ===========================================
   NOTIFICATION ITEM
   =========================================== */
swp-notification-item {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: var(--spacing-5) var(--spacing-6);
  background: var(--color-background-alt);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background var(--transition-fast);
}

swp-notification-item:hover {
  background: var(--color-background-hover);
}

swp-notification-item.unread {
  background: color-mix(in srgb, var(--color-teal) 5%, var(--color-background-alt));
}

swp-notification-item.unread:hover {
  background: var(--color-background-hover);
}

/* ===========================================
   NOTIFICATION ICON
   =========================================== */
swp-notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-background-hover);
  border-radius: var(--radius-xl);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xl);
}

swp-notification-item.unread swp-notification-icon {
  background: color-mix(in srgb, var(--color-teal) 15%, transparent);
  color: var(--color-teal);
}

/* ===========================================
   NOTIFICATION CONTENT
   =========================================== */
swp-notification-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

