/**
 * Splash Screen Styles for PWA
 * מסך פתיחה לאפליקציית PWA
 */

/* מסך הפתיחה */
#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #273B6B;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: all;
}

/* מצב מוסתר */
#pwa-splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* מיכל הלוגו במסך הפתיחה */
#pwa-splash-screen .splash-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 320px;
    /* ללא רקע נוסף - רק מיכל שקוף */
    background: transparent;
    position: relative;
}

/* הלוגו במסך הפתיחה */
#pwa-splash-screen .splash-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    animation: splashFadeIn 0.5s ease-in;
    /* תיקון מקיף לבעיית רקע שחור בתמונות PNG שקופות */
    background-color: transparent !important;
    background: transparent !important;
    /* ניקוי כל רקע אפשרי */
    background-image: none !important;
    /* הגדרות נוספות לשקיפות */
    mix-blend-mode: normal;
    isolation: isolate;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* וודא שאין צללים או אפקטים */
    box-shadow: none !important;
    filter: none;
}

/* אנימציית כניסה ללוגו */
@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* התאמה למובייל */
@media (max-width: 768px) {
    #pwa-splash-screen .splash-logo-container {
        width: 250px;
        height: 250px;
    }
    
    #pwa-splash-screen .splash-logo {
        width: 230px;
        height: 230px;
    }
}

/* הסתרה עבור דפדפנים רגילים (לא PWA) */
body:not(.pwa-mode) #pwa-splash-screen {
    display: none !important;
}
