/* Season Navbar — tuned for Zeina, works with any phpBB 3.3 style.
   Only transform / opacity / background-position are animated. */

.season-nav-last { order: 99; }

.season-nav-link {
	--fs-a: currentColor;
	--fs-b: var(--fs-a);
	--fs-c: var(--fs-b);
	--fs-shine: var(--fs-c);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	text-decoration: none;
}

.dark .season-nav-link { --fs-shine: #fff; }

.season-nav-icon {
	display: inline-grid;
	flex: none;
	place-items: center;
	color: var(--fs-a);
	line-height: 0;
	transition: transform .25s cubic-bezier(.3, .7, .4, 1);
}

.season-nav-icon svg { width: 18px; height: 18px; }

.season-nav-text {
	color: var(--fs-a);
	font-weight: 600;
	white-space: nowrap;
}

.season-badge {
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--fs-a);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Palettes: mid tones that read on both the light and dark Zeina themes. */
.season-effect-christmas  { --fs-a: #ef4444; --fs-b: #22c55e; --fs-c: #facc15; }
.season-effect-winter     { --fs-a: #38bdf8; --fs-b: #818cf8; --fs-c: #22d3ee; }
.season-effect-newyear    { --fs-a: #d97706; --fs-b: #fbbf24; --fs-c: #f97316; }
.season-effect-valentines { --fs-a: #f43f5e; --fs-b: #ec4899; --fs-c: #a855f7; }
.season-effect-spring     { --fs-a: #65a30d; --fs-b: #f472b6; --fs-c: #a78bfa; }
.season-effect-easter     { --fs-a: #a78bfa; --fs-b: #2dd4bf; --fs-c: #f472b6; }
.season-effect-summer     { --fs-a: #f59e0b; --fs-b: #06b6d4; --fs-c: #f97316; }
.season-effect-autumn     { --fs-a: #ea580c; --fs-b: #ca8a04; --fs-c: #b91c1c; }
.season-effect-halloween  { --fs-a: #f97316; --fs-b: #a855f7; --fs-c: #facc15; }
.season-effect-gold       { --fs-a: #c8961e; --fs-b: #f5d061; --fs-c: #b8860b; }

/* Text: gradient fill, optionally moving. */
.season-t-static .season-nav-text,
.season-t-flow .season-nav-text,
.season-t-shine .season-nav-text {
	background: linear-gradient(90deg, var(--fs-a), var(--fs-b), var(--fs-c), var(--fs-a)) 0 50% / 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.season-t-flow .season-nav-text { animation: fs-flow 8s linear infinite; }

.season-t-shine .season-nav-text {
	background-image: linear-gradient(110deg, var(--fs-a) 40%, var(--fs-shine) 50%, var(--fs-a) 60%);
	background-size: 300% 100%;
	animation: fs-shine 4.5s ease-in-out infinite;
}

/* Variants */
.season-v-pill {
	background: color-mix(in srgb, var(--fs-a) 12%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fs-a) 28%, transparent);
}

.season-v-outline { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fs-a) 45%, transparent); }

.season-v-glow {
	background: radial-gradient(70% 130% at 50% 50%, color-mix(in srgb, var(--fs-a) 22%, transparent), transparent 70%);
}

.season-v-glow .season-nav-icon { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--fs-a) 70%, transparent)); }

.season-v-underline::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--fs-a), var(--fs-b), var(--fs-c));
	transform: scaleX(.3);
	transform-origin: left;
	transition: transform .3s cubic-bezier(.3, .7, .4, 1);
}

.season-v-underline:hover::after,
.season-v-underline:focus-visible::after { transform: scaleX(1); }

/* Icon motion */
.season-i-none:hover .season-nav-icon { transform: rotate(-8deg) scale(1.12); }
.season-i-sway .season-nav-icon    { animation: fs-sway 3s ease-in-out infinite; transform-origin: 50% 15%; }
.season-i-bounce .season-nav-icon  { animation: fs-bounce 2.4s cubic-bezier(.3, .7, .4, 1) infinite; }
.season-i-pulse .season-nav-icon   { animation: fs-pulse 1.8s ease-in-out infinite; }
.season-i-spin .season-nav-icon    { animation: fs-spin 10s linear infinite; }
.season-i-twinkle .season-nav-icon { animation: fs-twinkle 2.6s ease-in-out infinite; }

@keyframes fs-flow    { to { background-position: 200% 50%; } }
@keyframes fs-shine   { 0% { background-position: 100% 50%; } 60%, 100% { background-position: 0 50%; } }
@keyframes fs-sway    { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes fs-bounce  { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes fs-pulse   { 0%, 50%, 100% { transform: scale(1); } 15% { transform: scale(1.16); } 30% { transform: scale(1.06); } }
@keyframes fs-spin    { to { transform: rotate(360deg); } }
@keyframes fs-twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .65; transform: scale(.85) rotate(15deg); } }

@media (prefers-reduced-motion: reduce) {
	.season-nav-link,
	.season-nav-link *,
	.season-nav-link::after { animation: none !important; transition: none !important; }
}
