/* EU Statistics Hub — frontend styling. Theme-agnostic: inherits fonts/colors,
   works in light and dark. Data is the visual — the number is the hero of every card. */

.eustats-summary {
	font-size: 1.15em;
}

/* Metric card grid (front page) */
.eustats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	margin: 2em 0 2.5em;
	padding: 0;
}

.eustats-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 24px 18px;
	border-radius: 14px;
	background: rgba(128, 128, 128, 0.07);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.eustats-card:hover {
	background: rgba(128, 128, 128, 0.12);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
	transform: translateY(-3px);
}

.eustats-card-title {
	font-size: 0.74em;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	opacity: 0.6;
	line-height: 1.35;
}

.eustats-card-kpi {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 6px 0 10px;
}

.eustats-kpi-value {
	font-size: 1.55em;
	font-weight: 700;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.eustats-kpi-meta {
	font-size: 0.85em;
	opacity: 0.65;
}

.eustats-card-more {
	font-size: 0.85em;
	font-weight: 600;
	margin-top: auto;
	opacity: 0.85;
	transition: opacity 0.18s ease;
}

.eustats-card:hover .eustats-card-more {
	opacity: 1;
}

.eustats-card-more::after {
	content: " \2192";
	display: inline-block;
	transition: transform 0.18s ease;
}

.eustats-card:hover .eustats-card-more::after {
	transform: translateX(3px);
}

/* Hero-knap (outline på mørk baggrund) */
.eustats-hero-btn {
	display: inline-block;
	margin-top: 0.5em;
	padding: 12px 26px;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.eustats-hero-btn:hover {
	background: #fff;
	color: #111 !important;
}

/* Data tables */
.eustats-table table {
	font-variant-numeric: tabular-nums;
	border-collapse: collapse;
	width: 100%;
}

.eustats-table th,
.eustats-table td {
	padding: 8px 12px;
}

.eustats-table tbody tr:nth-child(odd) {
	background: rgba(128, 128, 128, 0.06);
}

.eustats-table tbody tr:hover {
	background: rgba(128, 128, 128, 0.12);
}

.eustats-table td:last-child,
.eustats-table th:last-child {
	text-align: right;
}

.eustats-table figcaption {
	font-size: 0.85em;
	opacity: 0.7;
	margin-top: 8px;
}

/* API CTA */
.eustats-cta {
	border: 1px solid rgba(128, 128, 128, 0.25) !important;
	border-radius: 12px;
	font-size: 0.95em;
	background: rgba(128, 128, 128, 0.05);
}
