/* ============================================================
   LOCK SCREEN NOTIFICATIONS — iOS iMessage-style cards
   ============================================================ */

/* Notification container */
#lockNotifs {
  width: calc(100% + 48px);
  box-sizing: border-box;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  z-index: 2;
}

/* Individual notification card */
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(100%);
  -webkit-backdrop-filter: blur(20px) saturate(100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.notif:hover {
  background: rgba(255, 255, 255, 0.14);
}

.notif:active {
  transform: scale(0.98);
}

.notif:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

/* Avatar container with iMessage icon overlay */
.n-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.n-avatar-initials {
  font-size: 18px;
  font-weight: 600;
  color: var(--label);
  user-select: none;
}

/* App icon overlay (iMessage SVG icon) - positioned on lower-right of avatar */
.n-app-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1;
  flex-shrink: 0;
}

.n-app-badge svg {
  width: 100%;
  height: 100%;
}

/* Main content */
.n-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

/* Sender/title line */
.n-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  gap: 8px;
}

.n-top span:last-child {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

/* Message preview */
.n-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  text-align: left;
}

/* Typing indicator (reused from thread view) */
.notif .typing {
  padding: 0;
  margin: 0;
  gap: 4px;
}

/* Dark mode variations */
@media (prefers-color-scheme: dark) {
  .notif {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .notif:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .n-avatar-initials {
    color: var(--label);
  }
}

/* Explicit dark theme override */
:root[data-theme="dark"] {
  .notif {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }

  .notif:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}