/**
 * plugins/generic/zeusInfoCards/styles/infoCards.css
 *
 * Copyright (c) 2026 Zeus Publishing
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * Journal information card grid on the homepage. Everything is scoped under
 * .zeus_info_cards so the sheet cannot leak into theme markup, and every
 * colour comes from the hsmModern palette variables with the journal's actual
 * values as fallbacks, so the cards recolour themselves when a journal
 * retunes its palette - and still look right if the plugin ever runs under a
 * theme that defines none of them.
 */

.zeus_info_cards {
	margin: 0 0 2rem;
}

.zeus_info_cards .zeus_info_cards_title {
	margin: 0 0 1rem;
	font-size: 1.375rem;
	line-height: 1.3;
	color: var(--hsm-primary-dark, #06424e);
}

.zeus_info_cards .zeus_info_cards_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1rem;
}

/* The whole tile is the link. */
.zeus_info_cards .zeus_info_card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.1rem;
	background: #fff;
	border: 1px solid var(--hsm-line, #e4e9ec);
	border-left: 4px solid var(--hsm-accent, #ffc126);
	border-radius: 6px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease,
		border-left-color 0.15s ease;
}

.zeus_info_cards .zeus_info_card:hover,
.zeus_info_cards .zeus_info_card:focus {
	border-left-color: var(--hsm-button, #ff6d3a);
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	text-decoration: none;
}

.zeus_info_cards .zeus_info_card_title {
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.35;
	color: var(--hsm-primary-dark, #06424e);
}

.zeus_info_cards .zeus_info_card_desc {
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--hsm-ink, #24313a);
	opacity: 0.75;
}

/* The lift is decoration; the colour change already signals the hover. */
@media (prefers-reduced-motion: reduce) {
	.zeus_info_cards .zeus_info_card {
		transition: none;
	}

	.zeus_info_cards .zeus_info_card:hover,
	.zeus_info_cards .zeus_info_card:focus {
		transform: none;
	}
}
