﻿/* ========================================================== */
/* 🚀 SPLASH SCREEN STYLING (PERFECT MATCH WITH RTL & LTR)   */
/* ========================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
    box-sizing: border-box;
    overflow: hidden;
}

.splash-overlay {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(247, 244, 239, 0.85) 20%, rgba(247, 244, 239, 0.1) 100%);
    z-index: 1;
}

[dir="rtl"] .splash-overlay {
    background: linear-gradient(-100deg, rgba(247, 244, 239, 0.85) 20%, rgba(247, 244, 239, 0.1) 100%);
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    width: 90%;
    max-width: 850px;
}

.splash-logo img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(19, 162, 183, 0.45);
    animation: splashPulse 2s infinite ease-in-out;
}

.splash-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(1.8rem, 3.5vw + 1rem, 3.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 5% 0 0 0;
    color: #0b2545;
    background: linear-gradient( to right, var(--second-text) 10%, #ffeaa7 35%, var(--accent-text) 50%, #ffeaa7 65%, #0b2545 90% );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    text-fill-color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    animation: shineGradientReverse 1.3s linear infinite;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .splash-title {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient( to left, var(--second-text) 10%, #ffeaa7 35%, var(--accent-text) 50%, #ffeaa7 65%, #0b2545 90% );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
}

.splash-progress-bar {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-top: 10%;
}

.progress-line {
    width: 0;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 14px var(--primary-color);
    border-radius: 10px;
}

.splash-loading-text {
    color: #0b2545;
    font-size: 0.89rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ========================================================== */
/* ✨ SPLASH KEYFRAMES ANIMATIONS                             */
/* ========================================================== */

@keyframes splashPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
        box-shadow: 0 0 20px var(--first-text);
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 35px var(--first-text);
    }
}

@keyframes shineGradientReverse {
    from {
        background-position: 200% center;
    }

    to {
        background-position: 0% center;
    }
}
