/* =========================================================
   PWA SPLASH SCREEN OVERLAY STYLES
   ========================================================= */

#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

#pwa-splash-screen.pwa-splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pwa-splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    max-width: 340px;
    width: 100%;
}

.pwa-splash-logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-splash-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 25px rgba(37, 99, 235, 0.45));
    animation: pwaSplashFloat 2.4s ease-in-out infinite alternate;
}

.pwa-splash-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(37, 99, 235, 0) 70%);
    animation: pwaSplashPulse 2.4s ease-in-out infinite;
    z-index: 1;
}

.pwa-splash-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.pwa-splash-subtitle {
    font-size: 13px;
    color: #94A3B8;
    margin: 0 0 28px 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.pwa-splash-loader {
    width: 130px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.pwa-splash-loader-bar {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, #2563EB, #38BDF8);
    border-radius: 99px;
    position: absolute;
    animation: pwaSplashLoading 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes pwaSplashFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes pwaSplashPulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.4; }
}

@keyframes pwaSplashLoading {
    0% { left: -45%; }
    50% { left: 35%; }
    100% { left: 100%; }
}
