/* SportyBet Splash Screen Styles */

/* Base splash container styles */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual splash screen styles */
.splash-screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.splash-screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* Splash screen 1 - Red background */
#splash1,
#splash-1 {
    background: #E41827;
}

/* Splash screen 2 - Light background */
#splash2,
#splash-2 {
    background: #f5f5f5;
}

/* Splash screen image styles */
.splash-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Loading animations */
@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes splashRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse animation for loading indicator */
@keyframes splashPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Loading spinner (if needed) */
.splash-spinner {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: splashRotate 1s linear infinite;
    z-index: 10000;
}

/* Loading text */
.splash-loading-text {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-align: center;
    z-index: 10000;
}

/* Responsive splash screen adjustments */
@media (max-width: 768px) {
    .splash-container {
        width: 100%;
        height: 100%;
    }

    .splash-screen img {
        width: 100%;
        height: 100%;
    }
}

/* Prevent body scroll during splash */
body.splash-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Print and high contrast mode support */
@media print {
    .splash-container {
        display: none !important;
    }
}

@media (prefers-contrast: more) {
    .splash-container {
        background: #000;
    }
    
    .splash-screen {
        transition: opacity 0.3s ease-in-out;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .splash-container {
        background: #000;
    }
    
    #splash2,
    #splash-2 {
        background: #1a1a1a;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .splash-screen {
        transition: none;
    }
    
    .splash-spinner {
        animation: none;
        border-top-color: white;
    }
}
