/* Seasonal holiday skin (inc/wander-holiday.php): announcement bar + snowfall.
   Values follow the existing christmas hero palette in wander-art.css. */

.wander-holiday {
	position: relative;
	z-index: 999;
}

/* ── Announcement bar ───────────────────────────────────────── */

.wander-holiday__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 9px 44px;
	background: linear-gradient(100deg, #0b2e20 0%, #14532d 48%, #9f1d26 100%);
	color: #fff6d6;
	font-size: 13px;
	line-height: 1.35;
	text-align: center;
}

.wander-holiday__text {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.wander-holiday__text strong {
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
}

.wander-holiday__sub {
	color: #f4d27a;
	font-size: 12px;
	opacity: 0.95;
}

.wander-holiday__flake {
	font-size: 15px;
	color: #f4d27a;
	line-height: 1;
}

.wander-holiday__cta {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: #f4d27a;
	color: #0b2e20;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, background 0.2s ease;
}

.wander-holiday__cta:hover,
.wander-holiday__cta:focus {
	background: #ffe9a8;
	color: #0b2e20;
	transform: translateY(-1px);
}

.wander-holiday__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font-size: 17px;
	line-height: 22px;
	cursor: pointer;
}

.wander-holiday__close:hover,
.wander-holiday__close:focus {
	background: rgba(255, 255, 255, 0.28);
}

/* ── Snowfall overlay ───────────────────────────────────────── */

.wander-holiday__snow {
	position: fixed;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 998;
}

.wander-holiday__snow i {
	position: absolute;
	top: -12px;
	left: var(--x, 50%);
	width: var(--s, 6px);
	height: var(--s, 6px);
	border-radius: 50%;
	background: #ffffff;
	opacity: 0.75;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.65);
	animation: wander-snow-fall var(--t, 12s) linear var(--d, 0s) infinite;
}

@keyframes wander-snow-fall {
	0% {
		transform: translate3d(0, -10px, 0);
		opacity: 0;
	}
	10% {
		opacity: 0.8;
	}
	90% {
		opacity: 0.6;
	}
	100% {
		transform: translate3d(24px, 100vh, 0);
		opacity: 0;
	}
}

/* Respect the user's motion preference: no snowfall, keep the bar. */
@media (prefers-reduced-motion: reduce) {
	.wander-holiday__snow {
		display: none;
	}
}

/* ── Small screens ──────────────────────────────────────────── */

@media (max-width: 749px) {
	.wander-holiday__bar {
		padding: 8px 40px 8px 12px;
		gap: 8px;
		font-size: 12px;
	}

	.wander-holiday__text {
		flex-direction: column;
		gap: 2px;
	}

	.wander-holiday__sub {
		font-size: 11px;
	}

	.wander-holiday__cta {
		padding: 4px 12px;
		font-size: 11px;
	}
}
