/**
 * Viva Events frontend styles.
 */

.ve-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 22px;
	width: 100%;
	padding: 18px;
	border: 1px solid rgb(243 229 171 / 0.14);
	border-radius: 22px;
	background:
		radial-gradient(circle at 30% 0%, rgb(212 175 55 / 0.07), transparent 40%),
		#121815;
	color: #f4f1e8;
	font-family: var(--viva-font, "Peyda", Tahoma, sans-serif);
	box-sizing: border-box;
}

.ve-card__media {
	position: relative;
	overflow: hidden;
	flex: 0 0 38%;
	width: 38%;
	min-height: 360px;
	border: 1px solid rgb(243 229 171 / 0.14);
	border-radius: 16px;
	background: #1b231f;
}

.ve-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ve-card__placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
	overflow: hidden;
	background:
		radial-gradient(circle at center, rgb(212 175 55 / 0.10), transparent 52%),
		#1b231f;
	color: #d4af37;
}

.ve-card__placeholder-glow {
	position: absolute;
	inset: -20%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.16;
	filter: blur(20px);
	transform: scale(1.5);
}

.ve-card__placeholder-glow svg {
	width: 100%;
	height: 100%;
}

.ve-card__placeholder-icon {
	position: relative;
	z-index: 1;
	width: 42%;
	max-width: 120px;
}

.ve-card__placeholder-icon svg {
	display: block;
	width: 100%;
	height: auto;
}

.ve-card__type-badge {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 2;
	padding: 0.45rem 0.7rem;
	border: 1px solid rgb(243 229 171 / 0.38);
	border-radius: 999px;
	background: rgb(10 14 12 / 0.76);
	color: #d4af37;
	font-size: 0.78rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
}

.ve-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding-block: 6px;
}

.ve-card__next-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	align-self: flex-start;
	margin-bottom: 0.8rem;
	color: #d4af37;
	font-size: 0.85rem;
	font-weight: 700;
}

.ve-card__title {
	margin: 0;
	color: #f4f1e8;
	font-size: clamp(1.7rem, 4vw, 2.7rem);
	line-height: 1.4;
}

.ve-card__type {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.7rem;
	color: #d4af37;
	font-weight: 650;
}

.ve-card__excerpt {
	margin: 1rem 0 0;
	color: #c9c4b8;
	line-height: 1.95;
}

.ve-card__details {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.4rem;
	margin-top: 1.35rem;
	padding-block: 1rem;
	border-block: 1px solid rgb(243 229 171 / 0.12);
}

.ve-card__detail,
.ve-card__performer,
.ve-card__participation {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: #e8e3d8;
	line-height: 1.8;
}

.ve-card__performer {
	margin-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgb(243 229 171 / 0.12);
}

.ve-card__participation {
	margin-top: auto;
	padding: 14px 16px;
	border: 1px solid rgb(243 229 171 / 0.11);
	border-radius: 12px;
	background: #171d1a;
	color: #ded8cb;
}

.ve-card__meta-icon {
	flex: 0 0 auto;
	color: #d4af37;
}

.ve-card__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #d4af37;
	color: #17201c;
	font-weight: 700;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease;
}

.ve-card__link:hover,
.ve-card__link:focus-visible {
	background: #f3e5ab;
	color: #17201c;
	transform: translateY(-2px);
	outline: none;
}

.ve-empty {
	padding: 24px;
	border: 1px solid rgb(243 229 171 / 0.14);
	border-radius: 16px;
	background: #121815;
	color: #c9c4b8;
	font-family: var(--viva-font, "Peyda", Tahoma, sans-serif);
	text-align: center;
}

@media (max-width: 767px) {
	.ve-card {
		align-items: stretch;
		flex-direction: column;
	}

	.ve-card__media {
		order: -1;
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		min-height: 260px;
		aspect-ratio: 4 / 3;
		box-sizing: border-box;
	}

	.ve-card__content {
		order: 0;
		width: 100%;
		min-width: 0;
	}

	.ve-card__participation {
		margin-top: 1rem;
	}

	/*
	 * Elementor prints widget-control CSS after this stylesheet. These scoped
	 * rules keep legacy widgets (saved before 1.0.3) mobile-first as well.
	 */
	body .elementor-widget-viva-events .ve-card.ve-card {
		flex-direction: column !important;
	}

	body .elementor-widget-viva-events .ve-card__media.ve-card__media {
		flex-basis: auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}


/* v1.0.1: visible featured-event state */
.ve-card.is-featured {
	border-color: rgb(212 175 55 / 0.55);
	box-shadow:
		0 0 0 1px rgb(212 175 55 / 0.10),
		0 18px 52px rgb(0 0 0 / 0.28),
		0 0 34px rgb(212 175 55 / 0.08);
}

.ve-card.is-featured::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 4px;
	background: linear-gradient(180deg, #f3e5ab, #d4af37, #8d7120);
}

.ve-card__featured-badge {
	position: absolute;
	z-index: 3;
	inset-inline-end: 12px;
	inset-block-end: 12px;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.48rem 0.72rem;
	border: 1px solid rgb(243 229 171 / 0.55);
	border-radius: 999px;
	background: rgb(18 24 21 / 0.86);
	color: #f3e5ab;
	font-size: 0.8rem;
	font-weight: 800;
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 22px rgb(0 0 0 / 0.28);
}


/* v1.0.2: event countdown */
.ve-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-block: 1rem;
	padding: 14px;
	border: 1px solid rgb(243 229 171 / 0.14);
	border-radius: 14px;
	background: #171d1a;
	box-sizing: border-box;
}

.ve-countdown__title {
	color: #d4af37;
	font-weight: 700;
	line-height: 1.5;
}

.ve-countdown__units {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.ve-countdown__unit {
	display: flex;
	flex: 0 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	padding: 10px 9px;
	border: 1px solid rgb(243 229 171 / 0.10);
	border-radius: 10px;
	background: #101512;
	box-sizing: border-box;
}

.ve-countdown__number {
	color: #f4f1e8;
	font-size: 1.3rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
}

.ve-countdown__label {
	margin-top: 2px;
	color: #96968e;
	font-size: 0.75rem;
	line-height: 1.4;
}

.ve-countdown.is-complete {
	color: #d4af37;
}

@media (max-width: 480px) {
	.ve-countdown__units {
		gap: 7px;
	}

	.ve-countdown__unit {
		min-width: 58px;
		padding-inline: 7px;
	}
}
