/**
 * Seasoner – štýly pre sezónne efekty.
 * Autor: Patrik Poruban (with Claude)
 */

#seasoner-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	overflow: hidden;
}

/* Na stránkach s článkami padá efekt len po bočných pruhoch */
#seasoner-container.seasoner-mode-sides .seasoner-particle {
	--side-width: 12vw;
}

.seasoner-particle {
	position: absolute;
	top: -10%;
	width: var(--size, 18px);
	height: var(--size, 18px);
	will-change: transform, opacity;
	animation-name: seasoner-fall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.seasoner-particle svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

@keyframes seasoner-fall {
	0% {
		transform: translate3d(0, -10vh, 0) rotate(0deg);
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	92% {
		opacity: 1;
	}
	100% {
		transform: translate3d(var(--drift, 0px), 110vh, 0) rotate(var(--spin, 180deg));
		opacity: 0;
	}
}

/* ---------- Jar: kvety ---------- */
.seasoner-season-spring .seasoner-particle {
	filter: drop-shadow(0 1px 2px rgba(120, 40, 80, 0.25));
}

/* ---------- Leto: žiarivé slnečné lúče/iskry ---------- */
.seasoner-season-summer .seasoner-particle {
	opacity: 0.85;
	filter: drop-shadow(0 0 6px rgba(255, 210, 80, 0.8));
}

.seasoner-season-summer #seasoner-container {
	background: radial-gradient(ellipse at top, rgba(255, 221, 120, 0.08), transparent 60%);
}

/* ---------- Jeseň: lístie a halloween ---------- */
.seasoner-season-autumn .seasoner-particle {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* ---------- Zima: vločky ---------- */
.seasoner-season-winter .seasoner-particle {
	opacity: 0.9;
	filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
}

@media (prefers-reduced-motion: reduce) {
	#seasoner-container {
		display: none;
	}
}

@media (max-width: 768px) {
	#seasoner-container.seasoner-disable-mobile {
		display: none;
	}
}

@media (max-width: 600px) {
	#seasoner-container.seasoner-mode-full .seasoner-particle {
		width: calc(var(--size, 16px) * 0.8);
		height: calc(var(--size, 16px) * 0.8);
	}
}
