/* ============================================
   Loading Screen Styles
   ============================================ */

/* Import Arabic Feminine Font - Amiri (elegant and feminine) */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Loading Screen Container */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    direction: rtl;
    unicode-bidi: embed;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loading Content */
.loading-content {
    text-align: center;
    padding: 20px;
    max-width: 90%;
    width: 100%;
    direction: rtl;
    unicode-bidi: embed;
}

/* Loading Text */
.loading-text {
    font-family: 'Amiri', serif;
    font-size: 1.75rem;
    color: #FF69B4;
    line-height: 1.8;
    font-weight: 400;
    margin: 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    direction: rtl;
    unicode-bidi: embed;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0;
    word-spacing: 0;
    white-space: normal;
    word-break: normal;
}

/* Typewriter Cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #FF69B4;
    margin-right: 4px;
    margin-left: 0;
    animation: blink 1s infinite;
    vertical-align: middle;
    direction: rtl;
    unicode-bidi: embed;
}

.typewriter-cursor.hidden {
    display: none;
}

/* Blink Animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Hide Main Content While Loading */
body.loading-active {
    overflow: hidden;
}

body.loading-active > *:not(.loading-screen) {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

body:not(.loading-active) > *:not(.loading-screen) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 480px) {
    .loading-screen {
        direction: rtl;
        unicode-bidi: embed;
    }
    
    .loading-content {
        direction: rtl;
        unicode-bidi: embed;
    }
    
    .loading-text {
        font-size: 1.4rem;
        line-height: 1.7;
        min-height: 70px;
        direction: rtl;
        unicode-bidi: embed;
        letter-spacing: 0;
        word-spacing: 0;
    }
    
    .loading-text span {
        font-family: 'Amiri', serif;
        direction: rtl;
        unicode-bidi: embed;
        letter-spacing: 0;
        word-spacing: 0;
        white-space: normal;
    }
    
    .typewriter-cursor {
        direction: rtl;
        unicode-bidi: embed;
        margin-right: 4px;
        margin-left: 0;
    }
}

@media (max-width: 360px) {
    .loading-text {
        font-size: 1.2rem;
        line-height: 1.6;
        min-height: 60px;
    }
}

@media (min-width: 768px) {
    .loading-text {
        font-size: 2rem;
        line-height: 1.9;
    }
}

@media (min-width: 1024px) {
    .loading-text {
        font-size: 2.25rem;
        line-height: 2;
    }
}

