/* شاشة التحميل */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* اللوجو المتحرك */
.loading-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 0;
    animation: logoAnimation 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* حركة اللوجو */
@keyframes logoAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }
}

/* النص تحت اللوجو */
.loading-text {
    display: none;
}

@keyframes textFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* شريط التحميل */
.loading-progress {
    display: none;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    border-radius: 2px;
    animation: progressAnimation 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* النقاط المتحركة */
.loading-dots {
    display: none;
}

.loading-dots::after {
    content: '';
    animation: dotsAnimation 1.5s infinite;
}

@keyframes dotsAnimation {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

/* تأثيرات إضافية */
.loading-screen::before {
    display: none;
}

@keyframes grainAnimation {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* تجاوبية */
@media (max-width: 768px) {
    .loading-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        width: 120px;
        height: 120px;
    }
}