/**
 * Smoky Chix - Micro-Interactions & Animations
 */

@keyframes flamePulse {
	0%, 100% {
		transform: scale(1);
		filter: drop-shadow(0 0 15px rgba(255, 84, 0, 0.4));
	}
	50% {
		transform: scale(1.03);
		filter: drop-shadow(0 0 30px rgba(255, 84, 0, 0.7));
	}
}

.floating-animation {
	animation: flamePulse 4s ease-in-out infinite;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

.smoky-shimmer {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
	background-size: 200% 100%;
	animation: shimmer 2.5s infinite;
}

.smoky-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--smoky-card-border);
	border-top-color: var(--smoky-flame);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: 30px auto 15px;
}

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

.smoky-modal-loading {
	text-align: center;
	padding: 40px;
	color: var(--smoky-text-muted);
}

/* ==========================================================================
   SMOKY PAGE PRELOADER & SCREEN TRANSITION
   ========================================================================== */
.smoky-page-preloader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0E1017;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
	pointer-events: all;
	overflow: hidden;
}

.smoky-page-preloader.fade-out {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Device-Specific Visibility Filters */
@media (max-width: 767px) {
	.smoky-page-preloader.hide-mobile-pl {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.smoky-page-preloader.hide-tablet-pl {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.smoky-page-preloader.hide-desktop-pl {
		display: none !important;
	}
}

.smoky-preloader-backdrop {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 45%, rgba(255, 84, 0, 0.14) 0%, rgba(14, 16, 23, 0.98) 72%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.smoky-preloader-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	max-width: 380px;
	width: 90%;
}

.smoky-preloader-brand-box {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
}

.preloader-glow-pulse {
	position: absolute;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 84, 0, 0.45) 0%, rgba(255, 183, 3, 0.18) 50%, transparent 75%);
	animation: preloaderPulse 2s ease-in-out infinite;
	pointer-events: none;
}

@keyframes preloaderPulse {
	0%, 100% {
		transform: scale(0.9);
		opacity: 0.5;
	}
	50% {
		transform: scale(1.35);
		opacity: 1;
	}
}

.smoky-preloader-img {
	position: relative;
	z-index: 2;
	animation: preloaderFloat 3s ease-in-out infinite;
	filter: drop-shadow(0 8px 24px rgba(255, 84, 0, 0.35));
}

.smoky-preloader-img.is-logo {
	max-height: 46px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.smoky-preloader-img.is-mascot {
	max-height: 80px;
	width: auto;
	max-width: 80px;
	object-fit: contain;
}

@keyframes preloaderFloat {
	0%, 100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-6px) scale(1.02);
	}
}

/* Modern Minimalist Progress Track */
.smoky-preloader-progress-track {
	width: 160px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 99px;
	overflow: hidden;
	position: relative;
	margin-bottom: 14px;
}

.smoky-preloader-progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 40%;
	background: linear-gradient(90deg, #FF5400, #FFB703, #00F59B);
	border-radius: 99px;
	animation: preloaderBar 1.4s ease-in-out infinite;
}

@keyframes preloaderBar {
	0% {
		left: -40%;
		width: 30%;
	}
	50% {
		left: 30%;
		width: 55%;
	}
	100% {
		left: 100%;
		width: 30%;
	}
}

.smoky-preloader-text {
	font-size: 13.5px;
	font-weight: 700;
	color: #D1D5DB;
	letter-spacing: 0.3px;
	margin: 0;
	line-height: 1.4;
	animation: preloaderTextFade 1.8s ease-in-out infinite;
}

@keyframes preloaderTextFade {
	0%, 100% {
		opacity: 0.75;
	}
	50% {
		opacity: 1;
		color: #FFFFFF;
	}
}
