/* PWA Splash Screen - Animated Pink-Orange Theme */
.pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffa07a 100%);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.pwa-splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Logo container */
.splash-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: logoFloat 2s ease-in-out infinite, logoFadeIn 0.8s ease-out;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* App name text */
.splash-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: textSlideUp 1s ease-out 0.3s both;
    letter-spacing: 2px;
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading dots animation */
.splash-loading {
    display: flex;
    gap: 8px;
    margin-top: 30px;
    animation: loadingFadeIn 1s ease-out 0.6s both;
}

.splash-loading span {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.splash-loading span:nth-child(1) {
    animation-delay: 0s;
}

.splash-loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.splash-loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes loadingFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .splash-logo {
        font-size: 60px;
    }
    
    .splash-text {
        font-size: 24px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        font-size: 50px;
    }
    
    .splash-text {
        font-size: 20px;
    }
}
