/*
|||||||||||||||||||||||||||||||||||||
///  Landing Page Styles (lp-)    ///
|||||||||||||||||||||||||||||||||||||
*/

/* ---- Main Area ---- */

.lp-main {
	background-color: var(--page-background) !important;
	padding: 3rem 2rem !important;
	min-height: 100vh;
}

.lp-content {
	max-width: var(--layout-content-max);
	margin-left: auto;
	margin-right: auto;
}

/* ---- Banner (matches hp-banner) ---- */

.lp-banner {
	background-color: var(--sidebar);
	border-radius: var(--radius);
	padding: 1.5rem 0 3rem 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	overflow: hidden;
	position: relative;
	margin-bottom: 2rem;
	min-height: 170px;
}

.lp-banner__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.lp-banner__text {
	flex: 1;
	min-width: 0;
}

.lp-banner__crumbs {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.lp-banner__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-inverse-subtle);
	font-size: 0.85rem;
	font-family: var(--font-sans);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	text-decoration: none;
	transition: color var(--transition-fast);
}

.lp-banner__back:hover {
	color: var(--text-inverse);
}

.lp-banner__crumb-sep {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
}

.lp-banner__label {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 0;
}

.lp-banner__title {
	font-family: var(--font-sans);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--text-inverse);
	line-height: 1.25;
	margin: 0;
	max-width: 650px;
}

.lp-banner__visual {
	display: flex;
	gap: 24px;
	opacity: 0.15;
	font-size: 64px;
	color: var(--text-inverse);
	flex-shrink: 0;
}

/* ---- Instructional Prompt ---- */

.lp-prompt {
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	margin: -0.5rem 0 1.25rem;
	letter-spacing: 0.5px;
}

/* ---- Section Labels ---- */

.lp-section-label {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--muted-foreground);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

/* ---- Card Grid ---- */

.lp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	align-items: stretch;
	gap: 1.5rem;
}

/* ---- Data Cards ---- */

.lp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--card);
	border-radius: var(--radius);
	padding: 28px 24px 22px;
	min-height: 245px;
	text-decoration: none;
	transition:
		box-shadow 200ms ease-out,
		transform 300ms cubic-bezier(0.34, 1.28, 0.64, 1);
	cursor: pointer;
	transform-origin: center center;
	backface-visibility: hidden;
}

.lp-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px) scale(1.01);
	text-decoration: none;
}

.lp-card:active {
	box-shadow: var(--shadow-xs);
	transform: translateY(1px) scale(0.98);
	text-decoration: none;
	transition-duration: 120ms;
}

/* Transitioning state: card is morphing into dashboard */
.lp-card.is-transitioning {
	box-shadow: var(--shadow-lg);
	z-index: 10;
}

.lp-card__title {
	font-family: var(--font-sans);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--card-foreground);
	margin: 0 0 12px;
	line-height: 1.3;
}

.lp-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row-reverse;
	margin-top: auto;
	padding-top: 0.75rem;
}

.lp-card__types {
	display: flex;
	gap: 4px;
}

.lp-card__type {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--muted-foreground);
	background: var(--muted);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	line-height: 1;
}

.lp-card__type i {
	font-size: 1.05rem;
}

.lp-card__desc {
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--muted-foreground);
	line-height: 1.55;
	margin: 0;
	flex: 1;
}

.lp-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--muted-foreground);
}

.lp-card__link i {
	font-size: 10px;
	transition: transform 0.2s;
}

.lp-card:hover .lp-card__link {
	color: var(--foreground);
}

.lp-card:hover .lp-card__link i {
	transform: translateX(3px);
}

.lp-card:active .lp-card__link i {
	transform: translateX(0);
}

.lp-grid + .lp-grid {
	margin-top: 1.5rem;
}

/* ---- Badge Colors ---- */

.lp-content .hp-widget__badge {
	background: var(--lp-accent, var(--primary));
}

/* Badge row — allows a "New" badge alongside the type badge */
.lp-card__badges {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.lp-card__badges .hp-widget__badge {
	margin-bottom: 0;
}

.lp-content .lp-card__badge--new {
	background: #2e9e6b;
	color: #fff;
}

.lp-card--report .hp-widget__badge {
	background: #fff;
	color: var(--muted-foreground);
}

/* ---- Report / PDF Card Variant ---- */

.lp-card--report {
	background: #dde6f1;
}

.lp-card--report .lp-card__type {
	color: var(--muted-foreground);
	background: #fff;
	border: 1px solid #c5ccd3;
	opacity: 1;
}

.lp-card--report .lp-card__link {
	color: var(--muted-foreground);
}

.lp-card--report:hover .lp-card__link {
	color: var(--foreground);
}

/* ---- Responsive ---- */

@media only screen and (max-width: 1024px) {
	.lp-main {
		padding: 18px !important;
	}

	.lp-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.lp-banner {
		padding: 32px 28px;
		min-height: 140px;
	}

	.lp-banner__title {
		font-size: 1.3rem;
	}

	.lp-banner__visual {
		display: none;
	}
}

@media only screen and (max-width: 768px) {
	.lp-main {
		padding: 14px !important;
	}

	.lp-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.lp-banner {
		padding: 28px 0px;
		min-height: 120px;
	}

	.lp-banner__title {
		font-size: 1.15rem;
	}
}

/* ---- Report Download Modal ---- */

.lp-report-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.lp-report-modal[hidden] {
	display: none !important;
}

.lp-report-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lp-report-modal__card {
	position: relative;
	z-index: 1;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow:
		var(--shadow-lg),
		0 0 0 1px rgba(0, 0, 0, 0.06);
	max-width: 460px;
	width: 100%;
	overflow: hidden;
	animation: lpModalIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lpModalIn {
	from {
		opacity: 0;
		transform: scale(0.93) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.lp-report-modal__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 1.25rem 1.5rem;
	background: var(--muted);
	border-bottom: 1px solid var(--border);
}

.lp-report-modal__file-icon {
	width: 46px;
	height: 46px;
	border-radius: calc(var(--radius) - 3px);
	background: #fff;
	color: var(--muted-foreground);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	flex-shrink: 0;
	border: 1px solid var(--border);
}

.lp-report-modal__file-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.lp-report-modal__filetype {
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.9px;
}

.lp-report-modal__title {
	font-family: var(--font-sans);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--card-foreground);
	margin: 0;
	line-height: 1.3;
}

.lp-report-modal__body {
	padding: 1.25rem 1.5rem 1.1rem;
	border-top: 1px solid var(--border);
}

.lp-report-modal__prompt {
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 500;
	color: var(--card-foreground);
	line-height: 1.55;
	margin: 0 auto;
	max-width: 320px;
	padding-block: 0.75rem;
}

.lp-report-modal__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--border);
}

.lp-report-modal__cancel {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 18px;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) - 3px);
	cursor: pointer;
	transition:
		background var(--transition-fast),
		color var(--transition-fast);
}

.lp-report-modal__cancel:hover {
	background: var(--muted);
	color: var(--foreground);
}

.lp-report-modal__confirm {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 42px;
	padding: 0 22px;
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-inverse);
	background: var(--page-background);
	border-radius: calc(var(--radius) - 3px);
	text-decoration: none;
	transition:
		opacity var(--transition-fast),
		filter var(--transition-fast);
}

.lp-report-modal__confirm:hover {
	opacity: 0.88;
	color: var(--text-inverse);
	text-decoration: none;
	filter: brightness(1.08);
}

@media only screen and (max-width: 520px) {
	.lp-report-modal__card {
		max-width: 100%;
	}

	.lp-report-modal__footer {
		flex-direction: column-reverse;
		gap: 8px;
	}

	.lp-report-modal__cancel,
	.lp-report-modal__confirm {
		width: 100%;
		justify-content: center;
	}
}
