/* ==========================================
   Views Counter - Stats Cards
   Homepage style
   ========================================== */

.stats-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 1300px;
	margin: 18px auto 32px;
}

.stats-card,
.stats-card * {
	box-sizing: border-box;
}

.stats-card {
	background: #fff;
	border: 1px solid #ECEEF2;
	border-radius: 22px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px 24px;
	overflow: hidden;
}

.stats-card-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0;
}

.stats-card-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stats-card-icon svg {
	width: 22px;
	height: 22px;
	display: block;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.stats-card-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: #111827;
}

.stats-card-subtitle {
	margin-top: 3px;
	font-size: .88rem;
	font-weight: 400;
	line-height: 1.35;
	color: #6b7280;
}

.stats-card-body {
	padding-top: 28px;
	text-align: center;
	flex: 1;
}

.stats-card-value {
	font-size: clamp(2.6rem, 3.8vw, 3.4rem);
	font-weight: 300;
	line-height: .95;
	letter-spacing: -.04em;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.stats-card-description,
.stats-card-footer {
	display: none;
}

/* Colours */

.stats-card-blue .stats-card-icon {
	background: #EAF0FB;
	color: #0454CC;
}

.stats-card-blue .stats-card-value {
	color: #0454CC;
}

.stats-card-green .stats-card-icon {
	background: #E9F4EA;
	color: #00873B;
}

.stats-card-green .stats-card-value {
	color: #00873B;
}

.stats-card-purple .stats-card-icon {
	background: #F0E8F8;
	color: #6D31C4;
}

.stats-card-purple .stats-card-value {
	color: #6D31C4;
}

/* Mobile: compact one-line cards */

@media (max-width: 767px) {

	.stats-row {
		grid-template-columns: 1fr;
		gap: 14px;
		margin: 20px auto 28px;
		padding: 0 16px;
	}

	.stats-card {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 14px;
		padding: 16px 18px;
		border-radius: 18px;
	}

	.stats-card-header {
		display: contents;
	}

	.stats-card-icon {
		width: 44px;
		height: 44px;
	}

	.stats-card-icon svg {
		width: 21px;
		height: 21px;
	}

	.stats-card-header > div:last-child {
		min-width: 0;
	}

	.stats-card-title {
		font-size: 1rem;
		font-weight: 500;
		letter-spacing: -.01em;
	}

	.stats-card-subtitle {
		margin-top: 2px;
		font-size: .82rem;
		line-height: 1.25;
	}

	.stats-card-body {
		padding: 0;
		text-align: right;
		flex: none;
	}

	.stats-card-value {
		font-size: 2rem;
		font-weight: 300;
		letter-spacing: -.035em;
		white-space: nowrap;
	}

}