/*
 * Iguana Events — default frontend styles.
 * Override any of these variables in your theme's stylesheet:
 *
 *   :root {
 *     --igev-accent: #b3452a;
 *     --igev-card-bg: #fff;
 *     ...
 *   }
 */

:root {
	--igev-accent: #b3452a;
	--igev-text: inherit;
	--igev-muted: #6b6258;
	--igev-card-bg: rgba(0, 0, 0, 0.03);
	--igev-card-radius: 12px;
	--igev-max-width: 1080px;
	--igev-gap: 1.5rem;
}

.igev-archive,
.igev-single {
	max-width: var(--igev-max-width);
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
	color: var(--igev-text);
}

.igev-archive__header {
	margin-bottom: 2rem;
}

.igev-archive__subhead {
	margin: 0 0 1.25rem;
}

/* Event cards */
.igev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--igev-gap);
}

.igev-card {
	background: var(--igev-card-bg);
	border-radius: var(--igev-card-radius);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.igev-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.igev-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.igev-card__media {
	position: relative;
}

.igev-card__media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

/* Date badge over the featured image. Themes restyle it; this keeps it
   correctly placed even with no theme layer loaded. */
.igev-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #fff;
	color: inherit;
	border-radius: 8px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.igev-card__badge-month {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--igev-accent);
}

.igev-card__badge-day {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
}

.igev-card__body {
	padding: 1.1rem 1.25rem 1.4rem;
}

.igev-card__when {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--igev-accent);
	margin-bottom: 0.4rem;
}

.igev-card__title {
	font-size: 1.25rem;
	margin: 0 0 0.35rem;
	line-height: 1.25;
}

.igev-card__location,
.igev-card__excerpt {
	margin: 0.25rem 0 0;
	font-size: 0.925rem;
	color: var(--igev-muted);
}

.igev-empty {
	font-size: 1.1rem;
	color: var(--igev-muted);
}

/* Single event */
.igev-event__header {
	margin-bottom: 1.75rem;
}

/* Event-type pills. Themes restyle these; this is the unthemed baseline. */
.igev-event__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.igev-event__term {
	display: inline-block;
	padding: 0.35rem 0.8rem;
	border: 1.5px solid var(--igev-accent);
	border-radius: 999px;
	color: var(--igev-accent);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.igev-event__term:hover {
	background: var(--igev-accent);
	color: #fff;
}

.igev-event__title {
	margin: 0 0 0.6rem;
}

.igev-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 1rem;
	color: var(--igev-muted);
	margin-bottom: 1rem;
}

.igev-event__when {
	font-weight: 600;
	color: var(--igev-accent);
}

.igev-event__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.55rem 1.1rem;
	border: 1.5px solid var(--igev-accent);
	border-radius: 999px;
	color: var(--igev-accent);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
	.igev-event__add:hover {
		background: var(--igev-accent);
		color: #fff;
	}
}

.igev-event__media img {
	width: 100%;
	height: auto;
	border-radius: var(--igev-card-radius);
	margin-bottom: 1.5rem;
}

.igev-event__footer {
	margin-top: 2.5rem;
}

.igev-event__back {
	color: var(--igev-accent);
	text-decoration: none;
	font-weight: 600;
}

@media (max-width: 640px) {
	.igev-event__title {
		padding: 0;
		text-wrap: balance;
		overflow-wrap: anywhere;
	}

	.igev-event__media {
		aspect-ratio: 16 / 9;
		overflow: hidden;
	}

	.igev-event__media img {
		display: block;
		height: 100%;
		object-fit: cover;
		object-position: center center;
		margin-bottom: 0;
	}
}
