/*
 * Minimal, theme-agnostic styling for [entropica_statistics]. See
 * onboarding.css's header comment for why this stays plain and lives in
 * the plugin, not a theme.
 */

.ent-stats {
	max-width: 40rem;
	margin: 0 auto;
}

.ent-stats h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.ent-stats__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}

@media (max-width: 480px) {
	.ent-stats__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ent-stats__card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 1rem;
	padding: 1.25rem 1rem;
	text-align: center;
}

.ent-stats__card-num {
	font-size: 1.75rem;
	font-weight: 700;
}

.ent-stats__card-label {
	font-size: 0.75rem;
	opacity: 0.7;
	margin-top: 0.25rem;
}

.ent-stats__chart {
	width: 100%;
	height: auto;
	max-height: 10rem;
	color: currentColor;
}

.ent-stats__chart-empty {
	opacity: 0.7;
	font-size: 0.9rem;
}

.ent-stats__subjects {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.ent-stats__subject-row {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.ent-stats__subject-bar {
	height: 0.5rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.ent-stats__subject-bar-fill {
	height: 100%;
	background: currentColor;
	border-radius: 999px;
}

.ent-stats__heatmap {
	display: grid;
	grid-template-columns: repeat(14, 1fr);
	gap: 0.3rem;
}

@media (max-width: 480px) {
	.ent-stats__heatmap {
		grid-template-columns: repeat(7, 1fr);
	}
}

.ent-stats__heatmap-cell {
	aspect-ratio: 1;
	border-radius: 0.3rem;
	background: currentColor;
	display: block;
}
