/*
 * Reports Plugin - Frontend Styles
 * File: assets/css/reports-frontend.css
 *
 * Design System:
 *   Primary Accent : #d11218 (AAK Red)
 *   Font Family    : Montserrat (loaded via Google Fonts)
 *   Layout         : Full-width list rows
 */

/* ─── Scope ──────────────────────────────────────────────────────────────── */

.aak-scope {
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}

.aak-scope *,
.aak-scope *::before,
.aak-scope *::after {
	box-sizing: inherit;
}

/* ─── Section Header ─────────────────────────────────────────────────────── */

.aak-scope .reports-header {
	margin-bottom: 2rem;
}

.aak-scope .reports-section-title {
	font-size: 2rem;
	font-weight: 900;
	color: #1a1a1a;
	margin: 0 0 0.5rem;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

.aak-scope .reports-section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background-color: #d11218;
	margin-top: 10px;
}

.aak-scope .reports-section-description {
	font-size: 1rem;
	font-weight: 400;
	color: #555;
	margin: 0.75rem 0 0;
	max-width: 680px;
	line-height: 1.6;
}

/* ─── List Layout ─────────────────────────────────────────────────────────── */

.aak-scope .reports-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

/* ─── Report Row ──────────────────────────────────────────────────────────── */

.aak-scope .report-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.25rem;
	background: #ffffff;
	border: 1px solid #eaeaea;
	border-radius: 6px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.aak-scope .report-row:hover {
	background-color: #fdf5f5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ─── Row: PDF Icon (far left) ────────────────────────────────────────────── */

.aak-scope .report-row__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aak-scope .report-row__pdf-icon {
	width: 28px;
	height: auto;
	display: block;
}

/* ─── Row: Title (middle, fills space) ────────────────────────────────────── */

.aak-scope .report-row__title {
	flex: 1;
	min-width: 0;
}

.aak-scope .report-row__title > span:first-child {
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aak-scope .report-row__year {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #d11218;
	background: #fdf5f5;
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
	margin-top: 0.35rem;
	letter-spacing: 0.3px;
}

/* ─── Row: Download Button (far right) ────────────────────────────────────── */

.aak-scope .report-row__action {
	flex-shrink: 0;
}

.aak-scope .report-row__download-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 1rem;
	background-color: #d11218;
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

.aak-scope .report-row__download-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.aak-scope .report-row__download-btn:hover,
.aak-scope .report-row__download-btn:focus {
	background-color: #a50e13;
	transform: translateY(-1px);
	color: #ffffff;
	text-decoration: none;
}

/* ─── States ──────────────────────────────────────────────────────────────── */

.aak-scope .report-row__no-pdf {
	font-size: 0.8rem;
	color: #999;
	font-style: italic;
}

.aak-scope .reports-empty,
.aak-scope .reports-error {
	font-size: 0.95rem;
	color: #777;
	padding: 1rem;
	background: #f9f9f9;
	border-left: 4px solid #d11218;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.aak-scope .reports-section-title {
		font-size: 1.5rem;
	}

	.aak-scope .report-row {
		padding: 0.75rem 1rem;
		gap: 0.75rem;
	}

	.aak-scope .report-row__title > span:first-child {
		font-size: 0.85rem;
	}

	.aak-scope .report-row__year {
		font-size: 0.7rem;
		padding: 0.1rem 0.4rem;
	}

	.aak-scope .report-row__download-btn span {
		display: none;
	}

	.aak-scope .report-row__download-btn {
		padding: 0.45rem 0.65rem;
	}
}