/* ============================================================
   NOTIFICATION STACK — notifications.css
   Slide-in from bottom-left, stacks upward.
   Matches the Figma component (node 65:1067).
   ============================================================ */

.notif-card {
  /* Layout — Figma: padding 12px, gap 12px, radius 8px */
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;

  /* Frosted glass effect */
  background: rgba(218, 218, 218, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);

  /* Shadow for depth */
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 20px rgba(0, 0, 0, 0.10);

  /* Not interactive */
  user-select: none;
  cursor: default;
  pointer-events: none;

  will-change: left, bottom;
}

/* ── Thumbnail ────────────────────────────────────────────── */
/* Figma: 48×48, radius 4, bg #d9d9d9 */
.notif-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 4px;
  background: #cccccc;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Text content ─────────────────────────────────────────── */
.notif-content {
  flex: 1;
  min-width: 0; /* allow text truncation */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Figma: Inter Medium, 18px → scaled to 14px for screen */
.notif-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Figma: Inter Light, 16px → scaled to 13px */
.notif-body {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #555555;
}

/* ── Timestamp ────────────────────────────────────────────── */
/* Figma: Inter Light, 16px, right-aligned, 40px wide */
.notif-time {
  font-size: 12px;
  font-weight: 400;
  color: #888888;
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Mobile: full-width single card ──────────────────────── */
@media (max-width: 600px) {
  .notif-card {
    max-width: calc(100vw - 32px); /* matches JS mobileSideMargin * 2 */
  }
  /* Allow title to wrap on the wider card */
  .notif-title {
    white-space: normal;
    font-size: 14px;
  }
  .notif-body { font-size: 13px; }
}
