/**
 * Smart Turbo Load — front-end transition and feedback styles.
 * Scoped to stl-* classes only. The theme's own CSS is never removed.
 */

#stl-preloader.stl-preloader[hidden] {
	display: none !important;
}

#stl-preloader.stl-preloader {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 160ms ease, visibility 160ms ease;
}

#stl-preloader.stl-preloader.is-active {
	opacity: 1;
	visibility: visible;
}

#stl-preloader .stl-preloader__panel {
	position: relative;
	margin-top: 18vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 14px;
	background: rgba(10, 23, 17, 0.94);
	color: #ffffff;
	box-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.55);
	direction: ltr;
}

body.admin-bar #stl-preloader .stl-preloader__panel {
	margin-top: calc(18vh + 32px);
}

#stl-preloader .stl-preloader__bar {
	display: block;
	width: 148px;
	height: 3px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

#stl-preloader .stl-preloader__bar i {
	display: block;
	width: 45%;
	height: 100%;
	border-radius: inherit;
	background: #c9f57a;
	animation: stl-bar 1.1s ease-in-out infinite;
}

#stl-preloader .stl-preloader__spinner {
	display: block;
	width: 24px;
	height: 24px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-top-color: #c9f57a;
	border-radius: 50%;
	animation: stl-spin 650ms linear infinite;
}

#stl-preloader .stl-preloader__orbit {
	position: relative;
	display: flex;
	width: 26px;
	height: 26px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(201, 245, 122, 0.3);
	border-radius: 50%;
}

#stl-preloader .stl-preloader__orbit::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #c9f57a;
}

#stl-preloader .stl-preloader__orbit i {
	position: absolute;
	top: -2px;
	left: 50%;
	width: 5px;
	height: 5px;
	margin-left: -2.5px;
	border-radius: 50%;
	background: #ffffff;
	transform-origin: 2.5px 15px;
	animation: stl-spin 1.2s linear infinite;
}

#stl-preloader .stl-preloader__logo {
	display: flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: #c9f57a;
	color: #0a1712;
	animation: stl-pulse 1.4s ease-in-out infinite;
}

html.stl-navigating {
	cursor: progress;
}

html.stl-pending #stl-preloader {
	pointer-events: none;
}

html.stl-no-turbo #stl-preloader {
	display: none !important;
}

.stl-enter-fade {
	animation: stl-enter-fade var(--stl-duration, 220ms) ease both;
}

.stl-enter-slide {
	animation: stl-enter-slide var(--stl-duration, 220ms) ease both;
}

@keyframes stl-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes stl-bar {
	0% {
		transform: translateX(-110%);
	}
	55% {
		transform: translateX(120%);
	}
	100% {
		transform: translateX(240%);
	}
}

@keyframes stl-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(0.92);
	}
}

@keyframes stl-enter-fade {
	from {
		opacity: 0.35;
	}
	to {
		opacity: 1;
	}
}

@keyframes stl-enter-slide {
	from {
		opacity: 0.55;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	#stl-preloader,
	#stl-preloader * {
		animation: none !important;
		transition: none !important;
	}

	.stl-enter-fade,
	.stl-enter-slide {
		animation: none !important;
	}
}
