/* PWA Splash Screen Styles */
#app-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: linear-gradient(135deg, #00A3E0 0%, #007aa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    overflow: hidden;
}

#app-splash.splash-hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.splash-logo {
    width: 120px;
    height: 120px;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: splashLogoFloat 2s ease-in-out infinite;
}

.splash-spinner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.splash-dot {
    width: 12px;
    height: 12px;
    background: #FCF5E1;
    border-radius: 50%;
    animation: splashDotPulse 1.4s ease-in-out infinite;
}

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

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

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

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

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

/* iOS Safe Area Support */
@supports (padding: max(0px)) {
    #app-splash {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #app-splash {
        background: linear-gradient(135deg, #007aa8 0%, #005577 100%);
    }
}

/* Small screens */
@media (max-width: 480px) {
    .splash-logo {
        width: 80px;
        height: 80px;
    }
    
    .splash-content {
        gap: 1.5rem;
    }
    
    .splash-dot {
        width: 10px;
        height: 10px;
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .splash-content {
        flex-direction: row;
        gap: 3rem;
    }
    
    .splash-logo {
        width: 60px;
        height: 60px;
    }
}
