/* Social Proof FOMO — frontend popup styles */

.spf-toast {
	position: fixed;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 340px;
	min-width: 260px;
	padding: 12px 14px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.35;
	color: var(--spf-text, #1f2937);
	background: var(--spf-bg, #ffffff);
	border-radius: var(--spf-radius, 10px);
	border: 1px solid rgba(0, 0, 0, 0.06);
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
	text-decoration: none;
}

.spf-toast.spf-shadow {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.spf-toast.spf-clickable {
	cursor: pointer;
	pointer-events: auto;
}

/* Positions */
.spf-toast.spf-bottom-left  { left: 20px;  bottom: 20px; }
.spf-toast.spf-bottom-right { right: 20px; bottom: 20px; }
.spf-toast.spf-top-left     { left: 20px;  top: 20px; }
.spf-toast.spf-top-right    { right: 20px; top: 20px; }

/* Hidden starting transforms per animation */
.spf-toast.spf-anim-slide-up   { transform: translateY(24px); }
.spf-toast.spf-anim-fade       { transform: none; }
.spf-toast.spf-bottom-left.spf-anim-slide-side,
.spf-toast.spf-top-left.spf-anim-slide-side  { transform: translateX(-32px); }
.spf-toast.spf-bottom-right.spf-anim-slide-side,
.spf-toast.spf-top-right.spf-anim-slide-side { transform: translateX(32px); }

/* Visible state */
.spf-toast.spf-show {
	opacity: 1;
	transform: translate(0, 0);
	pointer-events: auto;
}

.spf-toast__media {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 8px;
}

.spf-toast.spf-rounded .spf-toast__media,
.spf-toast.spf-rounded .spf-toast__media img {
	border-radius: 50%;
}

.spf-toast__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.spf-toast__icon {
	width: 24px;
	height: 24px;
	color: var(--spf-accent, #2563eb);
}

.spf-toast__body {
	flex: 1 1 auto;
	min-width: 0;
}

.spf-toast__message {
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.spf-toast__meta {
	margin-top: 3px;
	font-size: 12px;
	opacity: 0.7;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.spf-toast__time::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-right: 5px;
	border-radius: 50%;
	background: var(--spf-accent, #2563eb);
	vertical-align: middle;
}

.spf-toast__verified {
	color: var(--spf-accent, #2563eb);
	font-weight: 600;
}

.spf-toast__close {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: #6b7280;
	color: #fff;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.spf-toast__close:hover {
	background: #374151;
}

/* Dark theme defaults (overridable by inline vars) */
.spf-toast.spf-theme-dark {
	border-color: rgba(255, 255, 255, 0.08);
}

.spf-toast.spf-theme-dark .spf-toast__media {
	background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
	.spf-toast {
		max-width: calc(100vw - 24px);
		min-width: 0;
		left: 12px;
		right: 12px;
	}
	.spf-toast.spf-bottom-left,
	.spf-toast.spf-bottom-right { bottom: 12px; }
	.spf-toast.spf-top-left,
	.spf-toast.spf-top-right { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.spf-toast {
		transition: opacity .2s ease;
		transform: none !important;
	}
}
