/**
 * EnParaleloVzla Historical Rates Stylesheet
 * 
 * Loaded conditionally only on historical rates templates.
 */

.epvz-historical-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--epvz-space-4);
	margin-bottom: var(--epvz-space-6);
}

@media (min-width: 1024px) {
	.epvz-historical-stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.epvz-stat-card {
	background: var(--epvz-color-surface);
	border: 1px solid var(--epvz-color-border);
	border-radius: var(--epvz-radius-md);
	padding: var(--epvz-space-4);
	display: flex;
	flex-direction: column;
}

.epvz-stat-label {
	font-size: var(--epvz-text-xs);
	font-weight: 700;
	color: var(--epvz-color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--epvz-space-1);
}

.epvz-stat-value {
	font-size: var(--epvz-text-xl);
	font-weight: 800;
	color: var(--epvz-color-text-heading);
	line-height: 1.2;
}

.epvz-stat-sub {
	font-size: var(--epvz-text-xs);
	color: var(--epvz-color-text-muted);
	margin-top: var(--epvz-space-1);
}

/* Historical Chart Container */
.epvz-chart-card {
	background: var(--epvz-color-surface);
	border: 1px solid var(--epvz-color-border);
	border-radius: var(--epvz-radius-lg);
	padding: var(--epvz-space-6);
	box-shadow: var(--epvz-shadow-sm);
	margin-bottom: var(--epvz-space-8);
}

.epvz-chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--epvz-space-4);
	margin-bottom: var(--epvz-space-5);
}

.epvz-range-filter-buttons {
	display: inline-flex;
	background: var(--epvz-color-surface-subtle);
	padding: 3px;
	border-radius: var(--epvz-radius-md);
	border: 1px solid var(--epvz-color-border);
	gap: 2px;
}

.epvz-range-btn {
	padding: var(--epvz-space-1) var(--epvz-space-3);
	font-size: var(--epvz-text-xs);
	font-weight: 600;
	border: none;
	background: transparent;
	color: var(--epvz-color-text);
	border-radius: var(--epvz-radius-sm);
	cursor: pointer;
	transition: background-color var(--epvz-transition);
}

.epvz-range-btn.is-active,
.epvz-range-btn:hover {
	background: var(--epvz-color-surface);
	color: var(--epvz-color-primary);
	box-shadow: var(--epvz-shadow-sm);
}

/* SVG Chart Area */
.epvz-svg-chart-container {
	position: relative;
	width: 100%;
	height: 320px;
	margin-bottom: var(--epvz-space-4);
}

.epvz-svg-chart {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.epvz-chart-grid line {
	stroke: var(--epvz-color-border);
	stroke-dasharray: 4 4;
	stroke-width: 1;
}

.epvz-chart-line-parallel {
	fill: none;
	stroke: var(--epvz-color-secondary);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.epvz-chart-area-parallel {
	fill: url(#epvz-parallel-gradient);
	opacity: 0.15;
}

.epvz-chart-line-official {
	fill: none;
	stroke: var(--epvz-color-primary);
	stroke-width: 2;
	stroke-dasharray: 5 3;
}

.epvz-chart-axis-text {
	font-size: 11px;
	fill: var(--epvz-color-text-muted);
	font-family: var(--epvz-font-sans);
}

/* Accessible Table Alternative */
.epvz-historical-table-section {
	margin-top: var(--epvz-space-6);
}
