/* =========================================================
   Bubble Social Proof – styles
   ========================================================= */

#bsp-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column-reverse;
	gap: 12px;
	align-items: flex-end;
	pointer-events: none;
}

.bsp-bubble {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 12px 16px;
	max-width: 320px;
	min-width: 240px;
	text-decoration: none;
	color: inherit;
	pointer-events: all;
	cursor: pointer;

	/* entrance animation */
	animation: bsp-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
	           bsp-float-up 6s 0.4s ease-in forwards;
	transform: translateY(60px);
	opacity: 0;
}

.bsp-bubble:hover {
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bsp-bubble:hover .bsp-btn {
	background: #1a56db;
}

/* avatar placeholder */
.bsp-avatar {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #6366f1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 18px;
	user-select: none;
}

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

.bsp-label {
	font-size: 11px;
	color: #6b7280;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	margin-bottom: 2px;
	white-space: nowrap;
}

.bsp-title {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.35;
}

.bsp-btn {
	flex-shrink: 0;
	background: #2563eb;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 6px 12px;
	border-radius: 8px;
	white-space: nowrap;
	transition: background 0.2s ease;
	user-select: none;
}

/* Keyframes */
@keyframes bsp-slide-in {
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes bsp-float-up {
	0%   { transform: translateY(0);    opacity: 1; }
	70%  { transform: translateY(-40px); opacity: 1; }
	100% { transform: translateY(-80px); opacity: 0; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.bsp-bubble {
		animation: none;
		transform: translateY(0);
		opacity: 1;
	}
}
