/*
 * Generated tile for event cards without a photo (inc/event-image.php).
 * Fills the card's 16:10 image frame so a photo-less event sits evenly in the grid.
 */

/* The frame is the size reference for the tile's padding (cqi units). */
.kv-event-card__image--generated {
	container-type: inline-size;
}

.kv-event-placeholder {
	--kv-ph-bg: #1B365D;
	--kv-ph-deep: #0F2340;
	--kv-ph-glow: #2A4A7A;
	--kv-ph-ink: #FFFFFF;
	--kv-ph-mark: #C8A951;

	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: clamp(1.125rem, 7cqi, 2.25rem);
	overflow: hidden;
	container-type: inline-size;
	background:
		radial-gradient(120% 95% at 12% 0%, var(--kv-ph-glow) 0%, transparent 62%),
		linear-gradient(160deg, var(--kv-ph-bg) 0%, var(--kv-ph-deep) 100%);
	color: var(--kv-ph-ink);
}

.kv-event-placeholder--sage {
	--kv-ph-bg: #527A52;
	--kv-ph-deep: #3B5C3C;
	--kv-ph-glow: #6B8E6B;
	--kv-ph-ink: #FFFFFF;
	--kv-ph-mark: #F0EBE3;
}

.kv-event-placeholder--gold {
	--kv-ph-bg: #C8A951;
	--kv-ph-deep: #B0903A;
	--kv-ph-glow: #D9C688;
	--kv-ph-ink: #1B365D;
	--kv-ph-mark: #1B365D;
}

/* The star from the City mark, large and cropped off the upper right (behind the
   date badge), so it stays clear of the event name. */
.kv-event-placeholder__star {
	position: absolute;
	top: -30%;
	right: -13%;
	width: 60%;
	height: auto;
	fill: none;
	stroke: var(--kv-ph-mark);
	stroke-width: 1.4;
	stroke-linejoin: round;
	opacity: 0.3;
	transform: rotate(-8deg);
	transition: transform 0.6s ease;
}

.kv-event-placeholder__rule {
	position: relative;
	width: 2.5rem;
	height: 3px;
	border-radius: 2px;
	background: var(--kv-ph-mark);
}

.kv-event-placeholder__title {
	position: relative;
	max-width: 82%;
	font-family: var(--kv-font-heading, 'Playfair Display', Georgia, serif);
	font-size: clamp(1.25rem, 7.5cqi, 2.375rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.005em;
	text-wrap: balance;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* A navy date badge would vanish on the navy tile, so it turns gold there. */
.kv-event-placeholder--navy ~ .kv-event-card__date-badge {
	background-color: var(--kv-secondary, #C8A951);
	color: var(--kv-primary, #1B365D);
}

/* Matches the photo cards' hover zoom, quietly. */
.kv-event-card:hover .kv-event-placeholder__star {
	transform: rotate(-2deg) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.kv-event-placeholder__star,
	.kv-event-card:hover .kv-event-placeholder__star {
		transition: none;
		transform: rotate(-8deg);
	}
}
