/**
 * SOFI Splash Screen Styles
 * Beautiful loading animation
 */

#sofiSplashScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1877F2 0%, #0052CC 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#sofiSplashScreen.splash-visible {
    opacity: 1;
}

#sofiSplashScreen.splash-exit {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
    padding: 40px;
}

.splash-logo {
    margin-bottom: 32px;
}

.sofi-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sofi-logo-text {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    color: #1877F2;
    position: relative;
    z-index: 2;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    animation: splashLogoFloat 2s ease-in-out infinite;
}

.splash-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.3);
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-tagline {
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: splashFadeIn 0.6s ease 0.3s both;
}

.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    animation: splashFadeIn 0.6s ease 0.5s both;
}

.loader-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: splashLoaderMove 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes splashLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes splashPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashLoaderMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sofi-logo-text {
        width: 80px;
        height: 80px;
        font-size: 48px;
        border-radius: 20px;
    }
    
    .splash-pulse {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    
    .splash-tagline {
        font-size: 16px;
    }
    
    .splash-loader {
        width: 160px;
    }
}
