/* Social Proof Notification widget — isolated module (marketing site only). */

.sp-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9998;
  max-width: min(360px, 90vw);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(20, 27, 45, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0;
  font-family: inherit;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.sp-toast.sp-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-toast-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, #04331b, #021a0d);
}

.sp-toast-body { flex: 1; min-width: 0; }

.sp-toast-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-toast-icon { font-size: 0.9rem; }

.sp-toast-activity {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.4;
}

.sp-toast-time {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 4px;
}

.sp-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  margin-left: 4px;
}

.sp-toast-close:hover { color: #cbd5e1; }

@media (prefers-color-scheme: light) {
  .sp-toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    color: #1e293b;
  }
  .sp-toast-name { color: #0f172a; }
  .sp-toast-activity { color: #475569; }
  .sp-toast-time { color: #94a3b8; }
}

:root[data-theme="light"] .sp-toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  color: #1e293b;
}
:root[data-theme="light"] .sp-toast-name { color: #0f172a; }
:root[data-theme="light"] .sp-toast-activity { color: #475569; }
:root[data-theme="light"] .sp-toast-time { color: #94a3b8; }

.sp-toast[data-position="bottom-right"] { left: auto; right: 24px; }
.sp-toast[data-position="top-left"]     { bottom: auto; top: 24px; }
.sp-toast[data-position="top-right"]    { bottom: auto; top: 24px; left: auto; right: 24px; }

@media (max-width: 1024px) {
  .sp-toast { left: 16px; bottom: 16px; }
  .sp-toast[data-position="bottom-right"] { left: auto; right: 16px; }
}

@media (max-width: 640px) {
  .sp-toast { left: 12px; bottom: 12px; padding: 12px 14px; gap: 10px; }
  .sp-toast[data-position="bottom-right"] { left: auto; right: 12px; }
}
