/**
 * Stats Counter Section - Premium Platform Design
 * Location: /wp-content/plugins/daf-marketplace/assets/css/stats-counter.css
 */

.daf-mp-stats-section {
	position: relative;
	overflow: hidden;
	padding: 4.5rem 0;
	background:
		radial-gradient(circle at 15% 18%, rgba(16, 185, 129, 0.22), transparent 30%),
		radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.18), transparent 32%),
		linear-gradient(135deg, #021b14 0%, #064e3b 42%, #052e2b 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.daf-mp-stats-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
	pointer-events: none;
}

.daf-mp-stats-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.daf-mp-stats-orb {
	position: absolute;
	display: block;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	filter: blur(12px);
	opacity: 0.42;
}

.daf-mp-stats-orb-one {
	top: -120px;
	left: 8%;
	background: rgba(16, 185, 129, 0.35);
}

.daf-mp-stats-orb-two {
	right: 6%;
	bottom: -130px;
	background: rgba(34, 197, 94, 0.22);
}

.daf-mp-stats-container {
	position: relative;
	z-index: 10;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 2rem;
}

.daf-mp-stats-shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(260px, 0.82fr) 1.18fr;
	gap: 2rem;
	align-items: stretch;
	padding: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 28px 90px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(18px);
}

.daf-mp-stats-intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
	border-radius: 24px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.daf-mp-stats-eyebrow {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 1rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(110, 231, 183, 0.34);
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.16);
	color: #a7f3d0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.daf-mp-stats-heading {
	margin: 0;
	max-width: 430px;
	color: #ffffff;
	font-size: clamp(1.85rem, 3vw, 3.05rem);
	font-weight: 850;
	line-height: 1.05;
	letter-spacing: -0.045em;
}

.daf-mp-stats-description {
	margin: 1rem 0 0;
	max-width: 470px;
	color: rgba(236, 253, 245, 0.78);
	font-size: 1rem;
	line-height: 1.75;
}

.daf-mp-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.daf-mp-stat-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 150px;
	padding: 1.35rem;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 24px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
	box-shadow:
		0 18px 55px rgba(0, 0, 0, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
	transition:
		transform 220ms ease,
		border-color 220ms ease,
		background 220ms ease,
		box-shadow 220ms ease;
}

.daf-mp-stat-item::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(110, 231, 183, 0.22), transparent 44%);
	opacity: 0;
	transition: opacity 220ms ease;
	pointer-events: none;
}

.daf-mp-stat-item:hover {
	transform: translateY(-4px);
	border-color: rgba(110, 231, 183, 0.42);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.075));
	box-shadow:
		0 24px 70px rgba(0, 0, 0, 0.2),
		0 0 0 1px rgba(110, 231, 183, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.daf-mp-stat-item:hover::after {
	opacity: 1;
}

.daf-mp-stat-icon-wrap {
	position: relative;
	flex: 0 0 auto;
}

.daf-mp-stat-icon {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background:
		linear-gradient(145deg, rgba(236, 253, 245, 0.95), rgba(167, 243, 208, 0.92));
	color: #047857;
	box-shadow:
		0 16px 30px rgba(5, 150, 105, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.daf-mp-stat-icon::before {
	content: "";
	position: absolute;
	inset: -7px;
	z-index: -1;
	border-radius: 22px;
	background: rgba(16, 185, 129, 0.18);
}

.daf-mp-stat-icon svg {
	width: 34px;
	height: 34px;
}

.daf-mp-stat-content {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.daf-mp-stat-number {
	margin: 0 0 0.25rem;
	color: #ffffff;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.045em;
	text-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.daf-mp-stat-label {
	color: #a7f3d0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
}

@media (max-width: 1040px) {
	.daf-mp-stats-shell {
		grid-template-columns: 1fr;
	}

	.daf-mp-stats-intro {
		text-align: center;
		align-items: center;
	}

	.daf-mp-stats-description {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 720px) {
	.daf-mp-stats-section {
		padding: 3.25rem 0;
	}

	.daf-mp-stats-container {
		padding: 0 1.1rem;
	}

	.daf-mp-stats-shell {
		padding: 0.8rem;
		border-radius: 24px;
	}

	.daf-mp-stats-intro {
		padding: 1.4rem;
		border-radius: 20px;
	}

	.daf-mp-stats-grid {
		grid-template-columns: 1fr;
	}

	.daf-mp-stat-item {
		min-height: 128px;
		padding: 1.1rem;
		border-radius: 20px;
	}

	.daf-mp-stat-icon {
		width: 52px;
		height: 52px;
		border-radius: 16px;
	}

	.daf-mp-stat-icon svg {
		width: 30px;
		height: 30px;
	}
}

@media (max-width: 420px) {
	.daf-mp-stat-item {
		align-items: flex-start;
		flex-direction: column;
		text-align: left;
	}

	.daf-mp-stats-heading {
		font-size: 1.75rem;
	}
}