/**
 * Storefront: Pre-Footer CTA Stylesheet
 *
 * Dedicated styling for the pre-footer conversion section,
 * layout variants (island, container, full_bleed), theme variants (default, brand gradient, minimal),
 * ambient glow blobs, social proof, and trust checklist.
 *
 * @package Influenzic
 */

.inzc-sf-prefooter-cta {
	position: relative;
	padding: 60px 0 90px;
	overflow: hidden;
}

.inzc-sf-prefooter-card {
	position: relative;
	max-width: 920px;
	margin: 0 auto;
	padding: 56px 40px 48px;
	border-radius: 28px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
	border: 1px solid var(--inzc-sf-card-border);
	box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.07), 0 4px 16px rgba(99, 102, 241, 0.04);
	text-align: center;
	overflow: hidden;
	box-sizing: border-box;
}

/* Layout Variants: Island (920px), Container (1200px), Full-Bleed (100vw) */
.inzc-sf-prefooter-cta--island .inzc-sf-prefooter-card {
	max-width: 920px;
}

.inzc-sf-prefooter-cta--container .inzc-sf-prefooter-card {
	max-width: 100%;
	width: 100%;
}

.inzc-sf-prefooter-cta--full_bleed {
	padding: 80px 0;
	background: var(--inzc-sf-section-alt-bg, #f8fafc);
	border-top: 1px solid var(--inzc-sf-card-border);
	border-bottom: 1px solid var(--inzc-sf-card-border);
	width: 100%;
	box-sizing: border-box;
}

.inzc-sf-prefooter-cta--full_bleed .inzc-sf-container {
	max-width: 1200px;
}

.inzc-sf-prefooter-cta--full_bleed .inzc-sf-prefooter-card {
	max-width: 100%;
	width: 100%;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0;
	border-radius: 0;
}

.inzc-sf-prefooter-cta--full_bleed .inzc-sf-prefooter-glow {
	opacity: 0.25;
}

/* Theme Variant: Brand Gradient */
.inzc-sf-prefooter-cta--theme-brand_gradient.inzc-sf-prefooter-cta--full_bleed {
	background: linear-gradient(135deg, #3730a3 0%, #4f46e5 45%, #7c3aed 80%, #c026d3 100%);
	border-color: rgba(255, 255, 255, 0.15);
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-card {
	background: linear-gradient(135deg, #3730a3 0%, #4f46e5 45%, #7c3aed 80%, #c026d3 100%);
	border-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	box-shadow: 0 20px 45px -10px rgba(79, 70, 229, 0.35);
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-title {
	color: #ffffff !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-subtitle {
	color: #e0e7ff !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-badge {
	background: rgba(255, 255, 255, 0.15) !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
	color: #ffffff !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-proof {
	background: rgba(255, 255, 255, 0.15) !important;
	border-color: rgba(255, 255, 255, 0.25) !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-proof-text {
	color: #ffffff !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-trust-item {
	color: #e0e7ff !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-trust {
	border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-btn--primary {
	background: #ffffff !important;
	color: #1e1b4b !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-btn--primary:hover {
	background: #f8fafc !important;
	transform: translateY(-2px);
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-btn-sec {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 255, 255, 0.35) !important;
	color: #ffffff !important;
}

.inzc-sf-prefooter-cta--theme-brand_gradient .inzc-sf-prefooter-btn-sec:hover {
	background: rgba(255, 255, 255, 0.22) !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
}

/* Theme Variant: Minimalist */
.inzc-sf-prefooter-cta--theme-minimal .inzc-sf-prefooter-card {
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	box-shadow: none;
}

.inzc-sf-prefooter-cta--theme-minimal .inzc-sf-prefooter-glow {
	display: none !important;
}

[data-inzc-theme="dark"] .inzc-sf-prefooter-card {
	background: linear-gradient(135deg, #141d33 0%, #0f172a 100%);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.12);
}

/* Ambient glow blobs */
.inzc-sf-prefooter-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	pointer-events: none;
	opacity: 0.45;
	z-index: 0;
}

.inzc-sf-prefooter-glow--1 {
	top: -60px;
	left: -60px;
	width: 260px;
	height: 260px;
	background: rgba(99, 102, 241, 0.22);
}

.inzc-sf-prefooter-glow--2 {
	bottom: -60px;
	right: -60px;
	width: 280px;
	height: 280px;
	background: rgba(249, 115, 22, 0.18);
}

.inzc-sf-prefooter-content {
	position: relative;
	z-index: 1;
	max-width: 660px;
	margin: 0 auto;
}

/* Badge pill */
.inzc-sf-prefooter-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 9999px;
	background: rgba(99, 102, 241, 0.08);
	border: 1px solid rgba(99, 102, 241, 0.2);
	color: var(--inzc-primary, #6366f1);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin-bottom: 20px;
}

[data-inzc-theme="dark"] .inzc-sf-prefooter-badge {
	background: rgba(99, 102, 241, 0.18);
	border-color: rgba(99, 102, 241, 0.35);
	color: #a5b4fc;
}

.inzc-sf-prefooter-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 8px #10b981;
	animation: inzc-pulse-dot 2s infinite;
}

/* Title & Subtitle */
.inzc-sf-prefooter-title {
	font-size: 36px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--inzc-sf-title-color);
	margin: 0 0 16px;
}

.inzc-sf-prefooter-subtitle {
	font-size: 16px;
	line-height: 1.6;
	color: var(--inzc-sf-body-color);
	margin: 0 0 24px;
}

/* Social Proof Avatars */
.inzc-sf-prefooter-proof {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding: 5px 14px 5px 6px;
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 9999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.inzc-sf-prefooter-avatars {
	display: flex;
	align-items: center;
}

.inzc-sf-prefooter-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--inzc-sf-card-bg);
	margin-left: -8px;
	object-fit: cover;
	display: block;
}

.inzc-sf-prefooter-avatar:first-child {
	margin-left: 0;
}

.inzc-sf-prefooter-proof-text {
	font-size: 12px;
	font-weight: 700;
	color: var(--inzc-sf-title-color);
}

/* Actions */
.inzc-sf-prefooter-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.inzc-sf-prefooter-actions .inzc-sf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 28px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1.2;
}

.inzc-sf-prefooter-actions .inzc-sf-btn--primary {
	box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.35);
}

.inzc-sf-prefooter-actions .inzc-sf-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.45);
}

.inzc-sf-prefooter-btn-sec {
	background: var(--inzc-sf-card-bg) !important;
	border: 1px solid var(--inzc-sf-card-border) !important;
	color: var(--inzc-sf-title-color) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.inzc-sf-prefooter-btn-sec:hover {
	border-color: var(--inzc-primary, #6366f1) !important;
	color: var(--inzc-primary, #6366f1) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.12);
}

/* Trust checklist */
.inzc-sf-prefooter-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid var(--inzc-sf-card-border);
}

.inzc-sf-prefooter-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--inzc-sf-muted-color);
}

.inzc-sf-prefooter-trust-check {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
	flex-shrink: 0;
}

[data-inzc-theme="dark"] .inzc-sf-prefooter-trust-check {
	background: rgba(16, 185, 129, 0.2);
	color: #34d399;
}

/* Responsive */
@media (max-width: 768px) {
	.inzc-sf-prefooter-card {
		padding: 40px 20px 36px;
		border-radius: 22px;
	}

	.inzc-sf-prefooter-title {
		font-size: 26px;
	}

	.inzc-sf-prefooter-subtitle {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.inzc-sf-prefooter-actions {
		flex-direction: column;
		width: 100%;
		gap: 12px;
	}

	.inzc-sf-prefooter-actions .inzc-sf-btn {
		width: 100%;
		box-sizing: border-box;
	}

	.inzc-sf-prefooter-trust {
		gap: 12px;
		flex-direction: column;
		align-items: center;
	}
}