/**
 * Storefront: Platform Safeguards & Trust Pillars Stylesheet
 *
 * Dedicated styling for platform security features:
 * Milestone Escrow Protection, Bio Token Verification, and Automated Post Monitoring.
 *
 * @package Influenzic
 */

/* ==========================================================================
   1. PLATFORM SAFEGUARDS CONTAINER & GRID
   ========================================================================== */
.inzc-sf-safeguards-section {
	padding: 80px 0;
	background-color: var(--inzc-sf-section-alt-bg, #f8fafc);
	border-top: 1px solid var(--inzc-sf-card-border);
	position: relative;
}

.inzc-sf-safeguards-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px;
}

.inzc-sf-safeguards-header .inzc-sf-section-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 12px;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.inzc-sf-safeguards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* ==========================================================================
   2. SAFEGUARD CARDS & ICONS
   ========================================================================== */
.inzc-sf-safeguard-card {
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 20px;
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--inzc-sf-card-shadow);
	transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
	position: relative;
	overflow: hidden;
}

.inzc-sf-safeguard-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
	border-color: rgba(99, 102, 241, 0.3);
}

[data-inzc-theme="dark"] .inzc-sf-safeguard-card:hover {
	box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6);
	border-color: rgba(99, 102, 241, 0.4);
}

.inzc-sf-safeguard-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	flex-shrink: 0;
}

.inzc-sf-safeguard-icon--escrow {
	background: rgba(16, 185, 129, 0.12);
	color: #10b981;
}

.inzc-sf-safeguard-icon--bio {
	background: rgba(99, 102, 241, 0.12);
	color: #6366f1;
}

.inzc-sf-safeguard-icon--monitor {
	background: rgba(245, 158, 11, 0.12);
	color: #f59e0b;
}

.inzc-sf-safeguard-title {
	font-family: var(--inzc-sf-font-heading);
	font-size: 19px;
	font-weight: 700;
	color: var(--inzc-sf-title-color);
	margin: 0 0 10px;
	line-height: 1.3;
}

.inzc-sf-safeguard-desc {
	font-size: 14px;
	color: var(--inzc-sf-muted-color);
	line-height: 1.65;
	margin: 0 0 20px;
}

/* ==========================================================================
   2b. SAFEGUARD VISUAL CONTAINER & MOCKUPS
   ========================================================================== */
.inzc-sf-safeguard-visual {
	margin-top: auto;
	margin-bottom: 20px;
	width: 100%;
}

.inzc-sf-safeguard-custom-img-wrap {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--inzc-sf-card-border);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	background: var(--inzc-sf-bg-alt);
}

.inzc-sf-safeguard-custom-img {
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: cover;
	display: block;
}

.inzc-sf-sg-mockup {
	background: var(--inzc-sf-bg-alt);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 14px;
	padding: 16px;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Vault Pipeline Mockup */
.inzc-sf-sg-vault-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 1px dashed var(--inzc-sf-card-border);
}

.inzc-sf-sg-vault-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #10b981;
	background: rgba(16, 185, 129, 0.1);
	padding: 3px 8px;
	border-radius: 9999px;
}

.inzc-sf-sg-vault-amount {
	font-size: 14px;
	font-weight: 800;
	font-family: var(--inzc-sf-font-heading);
	color: var(--inzc-sf-title-color);
	letter-spacing: -0.02em;
}

.inzc-sf-sg-timeline {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.inzc-sf-sg-step {
	display: flex;
	align-items: center;
	gap: 10px;
}

.inzc-sf-sg-step-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 900;
	flex-shrink: 0;
}

.inzc-sf-sg-step--done .inzc-sf-sg-step-dot {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
}

.inzc-sf-sg-step--active .inzc-sf-sg-step-dot,
.inzc-sf-sg-step-dot--active {
	background: rgba(99, 102, 241, 0.15);
	color: #6366f1;
}

.inzc-sf-sg-dot-pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #6366f1;
	box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
	animation: inzcPulseDotIndigo 2s infinite cubic-bezier(0.66, 0, 0, 1);
	display: block;
}

@keyframes inzcPulseDotIndigo {
	0% {
		box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
	}
	70% {
		box-shadow: 0 0 0 6px rgba(99, 102, 241, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
	}
}

.inzc-sf-pulse-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	animation: inzcPulseDotIndigo 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.inzc-sf-sg-step-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

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

.inzc-sf-sg-step-text small {
	font-size: 11px;
	color: var(--inzc-sf-muted-color);
}

/* Bio Verification Mockup */
.inzc-sf-sg-bio-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.inzc-sf-sg-bio-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

.inzc-sf-sg-bio-id {
	display: flex;
	flex-direction: column;
}

.inzc-sf-sg-bio-handle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 800;
	color: var(--inzc-sf-title-color);
}

.inzc-sf-sg-verified-badge {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #10b981;
	color: #ffffff;
	font-size: 8px;
	font-weight: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.inzc-sf-sg-bio-network {
	font-size: 11px;
	color: var(--inzc-sf-muted-color);
}

.inzc-sf-sg-bio-box {
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 8px;
	padding: 10px 12px;
}

.inzc-sf-sg-bio-content {
	font-size: 11.5px;
	color: var(--inzc-sf-body-color);
	line-height: 1.45;
	margin: 0;
}

.inzc-sf-sg-bio-token {
	background: rgba(99, 102, 241, 0.15);
	color: #6366f1;
	font-weight: 800;
	padding: 2px 5px;
	border-radius: 4px;
	font-family: monospace;
	border: 1px solid rgba(99, 102, 241, 0.25);
}

.inzc-sf-sg-bio-footer {
	padding-top: 4px;
}

.inzc-sf-sg-bio-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	color: #10b981;
}

.inzc-sf-sg-green-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #10b981;
}

/* Live Post Monitor Mockup */
.inzc-sf-sg-mon-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.inzc-sf-sg-mon-network {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgba(15, 23, 42, 0.06);
	color: var(--inzc-sf-title-color);
}

[data-inzc-theme="dark"] .inzc-sf-sg-mon-network {
	background: rgba(255, 255, 255, 0.08);
}

.inzc-sf-sg-mon-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #10b981;
	background: rgba(16, 185, 129, 0.1);
	padding: 3px 8px;
	border-radius: 9999px;
}

.inzc-sf-sg-mon-preview {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	align-items: center;
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 10px;
	padding: 8px 10px;
}

.inzc-sf-sg-mon-play-frame {
	height: 64px;
	border-radius: 6px;
	background: linear-gradient(135deg, #1e293b, #0f172a);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 14px;
}

.inzc-sf-sg-mon-play-btn {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.inzc-sf-sg-mon-metrics {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.inzc-sf-sg-metric {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
}

.inzc-sf-sg-metric small {
	color: var(--inzc-sf-muted-color);
}

.inzc-sf-sg-metric strong {
	color: var(--inzc-sf-title-color);
}

.inzc-sf-sg-mon-footer {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.inzc-sf-sg-progress-bar {
	height: 6px;
	border-radius: 9999px;
	background: rgba(16, 185, 129, 0.15);
	overflow: hidden;
}

.inzc-sf-sg-progress-fill {
	height: 100%;
	background: #10b981;
	border-radius: 9999px;
	transition: width 0.4s ease;
}

.inzc-sf-sg-progress-caption {
	font-size: 10.5px;
	color: var(--inzc-sf-muted-color);
	text-align: center;
}

.inzc-sf-safeguard-tag {
	margin-top: auto;
	align-self: flex-start;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--inzc-sf-bg-alt);
	color: var(--inzc-sf-title-color);
	border: 1px solid var(--inzc-sf-card-border);
}

/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
	.inzc-sf-safeguards-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc(44% - 12px);
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 12px;
		scrollbar-width: thin;
		scrollbar-color: rgba(var(--inzc-primary-rgb), 0.35) transparent;
	}

	.inzc-sf-safeguards-grid > * {
		scroll-snap-align: start;
	}

	.inzc-sf-safeguards-grid::-webkit-scrollbar {
		height: 4px;
	}

	.inzc-sf-safeguards-grid::-webkit-scrollbar-track {
		background: var(--inzc-gray-200, #e5e7eb);
		border-radius: 4px;
	}

	.inzc-sf-safeguards-grid::-webkit-scrollbar-thumb {
		background: rgba(var(--inzc-primary-rgb), 0.45);
		border-radius: 4px;
	}
}

@media (max-width: 640px) {
	.inzc-sf-safeguards-grid {
		grid-auto-columns: 83%;
		gap: 16px;
	}

	.inzc-sf-safeguards-grid > * {
		min-width: 265px;
	}
}

