/**
 * Folkthemes Sales Proof — Frontend Styles (Sprint 7)
 */

.folkt-sp-container {
	position: fixed;
	z-index: 999990;
	pointer-events: none;
	max-width: 360px;
	width: calc(100% - 32px);
}

/* Position Classes */
.folkt-sp-bottom-left {
	bottom: 20px;
	left: 20px;
}

.folkt-sp-bottom-right {
	bottom: 20px;
	right: 20px;
}

.folkt-sp-top-left {
	top: 20px;
	left: 20px;
}

.folkt-sp-top-right {
	top: 20px;
	right: 20px;
}

/* Admin Bar Clearance */
body.admin-bar .folkt-sp-top-left,
body.admin-bar .folkt-sp-top-right {
	top: 52px;
}

/* Device Visibility Controls */
@media (max-width: 767px) {
	.folkt-sp-mobile-disabled {
		display: none !important;
	}
	.folkt-sp-bottom-left,
	.folkt-sp-bottom-right {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		left: 16px;
		right: 16px;
		max-width: calc(100% - 32px);
	}
}

@media (min-width: 768px) {
	.folkt-sp-desktop-disabled {
		display: none !important;
	}
}

/* Popup Card Element */
.folkt-sp-card {
	pointer-events: auto;
	background: #ffffff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	outline: none;
}

.folkt-sp-card.folkt-sp-show {
	opacity: 1;
	transform: translateY(0);
}

.folkt-sp-card-clickable {
	cursor: pointer;
}

.folkt-sp-card-clickable:hover {
	border-color: #cbd5e1;
	box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 8px 12px -6px rgba(0, 0, 0, 0.08);
}

/* Avatar / Image */
.folkt-sp-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
}

/* Body Content */
.folkt-sp-body {
	flex: 1 1 auto;
	min-width: 0;
	word-wrap: break-word;
	word-break: break-word;
}

.folkt-sp-text {
	color: #334155;
}

.folkt-sp-text strong {
	color: #0f172a;
	font-weight: 600;
}

.folkt-sp-time {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-top: 3px;
}

/* Close Button */
.folkt-sp-close {
	background: transparent;
	border: none;
	font-size: 18px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	margin-left: -4px;
	border-radius: 4px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.folkt-sp-close:hover,
.folkt-sp-close:focus {
	color: #475569;
	background-color: #f1f5f9;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.folkt-sp-card {
		transition: none !important;
	}
}

