/* Site Loading Component Styles */
.site-loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.site-loading-overlay.show {
    display: flex !important;
}

.site-loading-container {
    text-align: center;
    color: white;
    position: relative;
}

.site-loading-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

/* Gaming Controller Animation */
.loading-game-controller {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.loading-controller-icon {
    font-size: 4rem;
    color: #fff;
    animation: controllerBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.loading-controller-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 1.5s ease-in-out infinite;
    z-index: 1;
}

/* Loading Text */
.loading-text-container {
    margin-bottom: 2rem;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-message {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    animation: textFade 3s ease-in-out infinite;
}

/* Progress Bar */
.loading-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 3px;
    width: 0%;
    animation: progressFill 3s ease-in-out infinite;
}

/* Gaming Elements */
.loading-game-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.loading-pixel {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    animation: pixelFloat 4s linear infinite;
}

.pixel-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pixel-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.pixel-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.loading-coin {
    position: absolute;
    top: 15%;
    right: 10%;
    color: #ffd700;
    font-size: 1.2rem;
    animation: coinSpin 2s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes controllerBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

@keyframes textFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes progressFill {
    0% { width: 0%; }
    70% { width: 100%; }
    100% { width: 100%; }
}

@keyframes pixelFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-loading-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        min-width: 280px;
    }

    .loading-controller-icon {
        font-size: 3rem;
    }

    .loading-title {
        font-size: 1.3rem;
    }
}