/* =========================================================
   VIKING RIDERS — CARTES ÉVÉNEMENTS
   ========================================================= */

.vr-events-listing {
	--vr-events-primary: var(--vr-primary, #298bfd);
	--vr-events-navy: var(--vr-navy, #04203d);
	--vr-events-white: var(--vr-white, #ffffff);
	--vr-events-bg: var(--vr-bg, #f3f8fc);
	--vr-events-muted: var(--vr-muted, #5b6f82);
	--vr-events-border: var(--vr-border, #d7e3ec);

	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding: clamp(34px, 4vw, 58px) clamp(18px, 4vw, 64px) clamp(58px, 6vw, 88px);
	background: var(--vr-events-bg);
}

.vr-events-listing__inner {
	box-sizing: border-box;
	width: min(100%, 1440px);
	margin: 0 auto;
}

.vr-events-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.5vw, 22px);
}

.vr-event-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--vr-events-border);
	border-radius: 15px;
	background: var(--vr-events-white);
	box-shadow: 0 8px 24px rgba(4, 32, 61, 0.06);
}

.vr-event-card__media {
	position: relative;
	min-height: 198px;
	background-color: var(--vr-events-navy);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.vr-event-card__media.is-placeholder {
	background-image: linear-gradient(135deg, #174769, #298bfd);
}

.vr-event-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 32, 61, 0.04), rgba(4, 32, 61, 0.12));
	pointer-events: none;
}

.vr-event-card__status {
	position: absolute;
	z-index: 2;
	top: 13px;
	left: 13px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(41, 139, 253, 0.90);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	backdrop-filter: blur(5px);
}

.vr-event-card--new .vr-event-card__status {
	background: #25bfae;
}

.vr-event-card--full .vr-event-card__status {
	background: #f04444;
}

.vr-event-card__date {
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 13px;
	display: grid;
	width: 58px;
	height: 66px;
	place-items: center;
	align-content: center;
	padding: 4px 0;
	background: #25bfae;
	color: #fff;
	text-align: center;
}

.vr-event-card__date strong,
.vr-event-card__date span {
	display: block;
	margin: 0;
}

.vr-event-card__date strong {
	font-size: 28px;
	font-weight: 800;
	line-height: 0.95;
}

.vr-event-card__date span {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.vr-event-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 17px 18px 16px;
}

.vr-event-card__title-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 12px;
}

.vr-event-card__title {
	margin: 0;
	color: var(--vr-events-navy);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.vr-event-card__type {
	align-self: start;
	padding: 4px 7px;
	border-radius: 4px;
	background: #e7f4f5;
	color: #198f86;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.vr-event-card__summary {
	margin: 12px 0 0;
	color: var(--vr-events-muted);
	font-size: 12px;
	line-height: 1.48;
}

.vr-event-card__meta {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 14px 0 0;
}

.vr-event-card__meta p {
	display: grid;
	grid-template-columns: 15px minmax(0, 1fr);
	align-items: start;
	gap: 7px;
	margin: 0;
	color: var(--vr-events-muted);
	font-size: 10px;
	line-height: 1.35;
}

.vr-event-card__icon {
	width: 14px;
	height: 14px;
	margin-top: 0;
}

.vr-event-card__button {
	display: inline-flex;
	width: 100%;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: auto;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--vr-events-navy);
	color: #fff;
	box-shadow: none;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition: filter 180ms ease, transform 180ms ease;
}

.vr-event-card__meta + .vr-event-card__button {
	margin-top: 16px;
}

.vr-event-card__button:hover,
.vr-event-card__button:focus-visible {
	color: #fff;
	filter: brightness(1.12);
	transform: translateY(-1px);
}

.vr-event-card__button.is-disabled {
	background: #d7d7d7;
	color: #fff;
	cursor: not-allowed;
}

@media (max-width: 1180px) {
	.vr-events-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.vr-events-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.vr-events-listing {
		padding: 28px 16px 54px;
	}

	.vr-events-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vr-event-card__media {
		min-height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vr-event-card__button {
		transition: none;
	}
}
