/* Holiday Greeting Popup — Frontend Popup Styles */
/* Author: Kamran Anik | moduledock.com             */

/* ── Overlay ──────────────────────────────────────────────────── */
.hgp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.80);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	animation: hgpFadeIn 0.35s ease both;
}

/* ── Popup card ───────────────────────────────────────────────── */
.hgp-popup {
	position: relative;
	border-radius: 18px;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	overflow-x: hidden;
	box-shadow:
		0 32px 80px rgba(0, 0, 0, 0.6),
		0 0 0 1px rgba(255, 255, 255, 0.07);
	animation: hgpPopIn 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) both;
	scrollbar-width: none;
}

.hgp-popup::-webkit-scrollbar {
	display: none;
}

/* ── Header image ─────────────────────────────────────────────── */
.hgp-image-header {
	width: 100%;
	overflow: hidden;
	border-radius: 18px 18px 0 0;
	background: rgba(0,0,0,0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: 220px;
}

.hgp-header-img {
	width: 100%;
	height: 100%;
	max-height: 220px;
	object-fit: cover;
	display: block;
}

/* ── Body ─────────────────────────────────────────────────────── */
.hgp-body {
	padding: 28px 32px 30px;
}

/* ── Title ────────────────────────────────────────────────────── */
.hgp-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 14px;
	text-align: center;
	word-break: break-word;
}

/* ── Description ─────────────────────────────────────────────── */
.hgp-description {
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 22px;
	word-break: break-word;
}

.hgp-description a {
	color: inherit;
	text-decoration: underline;
	opacity: 0.85;
}

/* ── Close X button ───────────────────────────────────────────── */
.hgp-close-x {
	position: absolute;
	top: 13px;
	right: 13px;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s, transform 0.15s;
	z-index: 5;
}

.hgp-close-x:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: scale(1.08);
}

.hgp-close-x:focus {
	outline: 2px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

/* ── Close / Continue button ──────────────────────────────────── */
.hgp-close-btn {
	display: block;
	margin: 0 auto;
	padding: 11px 32px;
	background: transparent;
	border-width: 2px;
	border-style: solid;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}

.hgp-close-btn:hover {
	opacity: 0.82;
	transform: translateY(-1px);
}

.hgp-close-btn:active {
	transform: translateY(0) scale(0.97);
}

.hgp-close-btn:focus {
	outline: 2px solid rgba(255,255,255,0.5);
	outline-offset: 3px;
}

/* ── Scroll lock ──────────────────────────────────────────────── */
body.hgp-locked {
	overflow: hidden !important;
	touch-action: none;
}

/* ── Keyframes ────────────────────────────────────────────────── */
@keyframes hgpFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes hgpPopIn {
	from {
		opacity: 0;
		transform: scale(0.80) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@keyframes hgpFadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

@keyframes hgpPopOut {
	from {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	to {
		opacity: 0;
		transform: scale(0.88) translateY(12px);
	}
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 480px) {
	.hgp-popup {
		border-radius: 14px;
		max-height: 92vh;
	}

	.hgp-body {
		padding: 20px 20px 24px;
	}

	.hgp-title {
		font-size: 18px;
	}

	.hgp-description {
		font-size: 14px;
	}

	.hgp-image-header {
		max-height: 160px;
	}
}
