/* ═══════════════════════════════════════════════════════════════
   ONHYM Event Details Popup — isolated component.
   Refined to match the latest ONHYM corporate design reference.
   All classes prefixed with `oedp-`. Deep emerald background,
   gold header accents, white typography. Responsive.
   ═══════════════════════════════════════════════════════════════ */

.oedp-popup {
	--oedp-emerald: #08685B;        /* deep emerald (reference)   */
	--oedp-emerald-dark: #065247;
	--oedp-emerald-deep: #04403a;
	--oedp-gold: #d4a017;
	--oedp-gold-light: #e7c65a;
	--oedp-white: #ffffff;
	--oedp-ink: #f3f7f6;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.oedp-popup.is-open {
	visibility: visible;
	opacity: 1;
}

/* Dark translucent, softly blurred overlay */
.oedp-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 22, 19, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* ── Main card ─────────────────────────────────────────────── */
.oedp-popup__card {
	position: relative;
	width: 100%;
	max-width: 640px;                /* reduced, more compact modal */
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: linear-gradient(155deg, var(--oedp-emerald) 0%, var(--oedp-emerald-dark) 70%, var(--oedp-emerald-deep) 100%);
	color: var(--oedp-ink);
	border-radius: 26px;
	padding: 34px 38px 28px;
	box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
	transform: translateY(14px) scale(0.985);
	transition: transform 0.3s ease;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.oedp-popup.is-open .oedp-popup__card {
	transform: translateY(0) scale(1);
}

/* ── Circular teal close button (top-right) ────────────────── */
.oedp-popup__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.10);
	color: var(--oedp-white);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.25s ease;
}

.oedp-popup__close:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: rotate(90deg);
}

/* ── Gold outlined pill badge (top-left) ───────────────────── */
.oedp-popup .oedp-popup__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--oedp-gold-light);
	border: 1.5px solid var(--oedp-gold);
	border-radius: 999px;
	padding: 6px 15px;
	margin-bottom: 16px;
}

/* ── Event title — large, bold, WHITE ─────────────────────── */
.oedp-popup .oedp-popup__title {
	margin: 0 0 22px;
	font-size: 30px;                 /* compact desktop */
	font-weight: 700;
	line-height: 1.16;
	color: var(--oedp-white);        /* forced white, always readable */
	padding-right: 44px;
}

/* ── Countdown — 4 columns, thin separators, divider lines ── */
.oedp-popup__countdown {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 6px;
	margin: 0 0 24px;
	padding: 14px 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.20);
	border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}

.oedp-cd {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 0;
	min-width: 0;
}

.oedp-popup .oedp-cd__num {
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: var(--oedp-white);
	font-variant-numeric: tabular-nums;
}

.oedp-popup .oedp-cd__lbl {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: capitalize;
	color: rgba(255, 255, 255, 0.85);
}

/* thin vertical separators */
.oedp-cd__sep {
	width: 1px;
	align-self: stretch;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.28), transparent);
}

/* ── Info rows — circular white icon, dark emerald outline ── */
.oedp-popup__info {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.oedp-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.oedp-info__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--oedp-white);
	color: var(--oedp-emerald-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}

.oedp-info__icon svg {
	width: 19px;
	height: 19px;
}

.oedp-popup .oedp-info__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 15px;
	color: var(--oedp-white);
}

.oedp-popup .oedp-info__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

/* Hide rows with no data */
.oedp-info[hidden] { display: none; }

/* ── Action buttons — full-width pills, consistent height ─── */
.oedp-popup__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 18px;
}

.oedp-popup .oedp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: fit-content;              /* narrower than full-width */
	max-width: 100%;
	min-width: 200px;                /* keep a comfortable minimum */
	min-height: 48px;                /* consistent heights */
	padding: 11px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.oedp-btn__arrow {
	font-size: 18px;
	line-height: 1;
}

/* Primary — white pill, emerald text */
.oedp-popup .oedp-btn--b2b {
	background: var(--oedp-white);
	color: var(--oedp-emerald-dark);
}

.oedp-popup .oedp-btn--b2b:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Secondary — transparent, 2px white border, white text */
.oedp-popup .oedp-btn--details {
	background: transparent;
	color: var(--oedp-white);
	border: 2px solid rgba(255, 255, 255, 0.85);
}

.oedp-popup .oedp-btn--details:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

/* ── Footer note — subtle, left aligned ────────────────────── */
.oedp-popup .oedp-popup__note {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.70);
	text-align: left;
}

/* Loading state — dim content while fetching */
.oedp-popup.is-loading .oedp-popup__info,
.oedp-popup.is-loading .oedp-popup__actions,
.oedp-popup.is-loading .oedp-popup__note,
.oedp-popup.is-loading .oedp-popup__countdown {
	opacity: 0.4;
	pointer-events: none;
}

/* Focus visibility */
.oedp-popup__close:focus-visible,
.oedp-btn:focus-visible {
	outline: 2px solid var(--oedp-gold-light);
	outline-offset: 2px;
}

/* Lock body scroll while open */
body.oedp-open {
	overflow: hidden;
}

/* ── Tablet ───────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
	.oedp-popup__card { padding: 36px 34px 30px; border-radius: 26px; }
	.oedp-popup .oedp-popup__title { font-size: 34px; }
	.oedp-popup .oedp-cd__num { font-size: 36px; }
	.oedp-popup .oedp-cd__lbl { font-size: 12px; }
	.oedp-popup .oedp-btn { min-height: 54px; font-size: 16px; }
}

/* ── Mobile — ~94vw width, 90vh max, scrollable ───────────── */
@media screen and (max-width: 560px) {
	.oedp-popup { padding: 12px; }
	.oedp-popup__card {
		max-width: 94vw;
		max-height: 90vh;
		padding: 28px 22px 24px;
		border-radius: 22px;
	}
	.oedp-popup .oedp-popup__badge { font-size: 9px; padding: 5px 12px; margin-bottom: 12px; }
	.oedp-popup .oedp-popup__title { font-size: 22px; padding-right: 40px; margin-bottom: 16px; }
	.oedp-popup__countdown { padding: 12px 4px; margin-bottom: 18px; gap: 2px; }
	.oedp-popup .oedp-cd__num { font-size: 22px; }
	.oedp-popup .oedp-cd__lbl { font-size: 10px; }
	.oedp-popup__info { gap: 14px; margin-bottom: 20px; }
	.oedp-info__icon { flex-basis: 36px; width: 36px; height: 36px; }
	.oedp-info__icon svg { width: 17px; height: 17px; }
	.oedp-popup .oedp-info__text { font-size: 14px; }
	.oedp-popup .oedp-btn {
		width: 100%;                 /* full-width on small screens */
		min-width: 0;
		min-height: 46px;
		padding: 11px 18px;
		font-size: 14px;
	}
	.oedp-popup .oedp-popup__note { font-size: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.oedp-popup,
	.oedp-popup__card,
	.oedp-btn,
	.oedp-popup__close {
		transition: none;
	}
}
