/* ============================================================
   social-proof.css — LUVISKA Social Proof Notifications
   Light theme — cohérent avec le design du site
   ============================================================ */

#sp-toast {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 9500;
  width: 310px;
  max-width: calc(100vw - 48px);

  /* Light luxury card */
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E8E0D8;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;

  font-family: 'Jost', sans-serif;

  /* Thin gold top accent line */
  border-top: 2.5px solid #CBB69E;

  /* Slide from left, hidden by default */
  transform: translateX(calc(-100% - 48px));
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.36s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

#sp-toast.sp-show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#sp-toast.sp-hide {
  transform: translateX(calc(-100% - 48px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45),
              opacity 0.3s ease;
}

/* ── Purchase notification layout ─────────────────────────── */
.sp-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 12px 14px 16px;
  position: relative;
}

/* Avatar circle */
.sp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #CBB69E 0%, #a08060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: 0 2px 8px rgba(203, 182, 158, 0.35);
}

/* Text body */
.sp-body {
  flex: 1;
  min-width: 0;
  padding-right: 20px;
}

.sp-name {
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1C;
  margin: 0 0 1px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-action {
  font-weight: 400;
  color: #7a7268;
}

.sp-product {
  font-size: 13.5px;
  font-weight: 500;
  color: #a08060;
  margin: 0 0 7px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.4px;
  line-height: 1.25;
}

.sp-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #b0a090;
  margin: 0;
  line-height: 1;
}

/* ── Pulsing green live dot ───────────────────────────────── */
.sp-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4cd964;
  flex-shrink: 0;
  position: relative;
}

.sp-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(76, 217, 100, 0.30);
  animation: sp-live-pulse 1.8s ease infinite;
}

@keyframes sp-live-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.7; }
  60%       { transform: scale(1.9); opacity: 0;   }
}

/* ── Close button ─────────────────────────────────────────── */
.sp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #c0b4a8;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
  font-family: inherit;
}
.sp-close:hover {
  color: #7a7268;
  background: #F6F3EE;
}

/* ── Viewers variant ──────────────────────────────────────── */
.sp-viewers {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: #FDFBF8;
}

.sp-viewers-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #4a4036;
  line-height: 1.4;
}

/* ── Progress bar (auto-dismiss indicator) ────────────────── */
.sp-progress {
  height: 2px;
  background: #F0EAE2;
  overflow: hidden;
}

.sp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #CBB69E, #a08060);
  width: 100%;
  transform-origin: left;
  animation: sp-drain 5s linear forwards;
}

@keyframes sp-drain {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  #sp-toast {
    bottom: 80px;
    left: 12px;
    width: calc(100vw - 24px);
    max-width: 340px;
  }
}
