/* Ana Loading Ekranı */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

.loading-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.loading-progress {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease-out;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

/* Dil değişimi sırasında body'yi kilitle */
body.language-changing {
    overflow: hidden;
}



/* Animasyonlar */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dotPulse {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .loading-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }
    
    .loading-text {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .loading-progress {
        width: 250px;
        margin-bottom: 20px;
    }
    
    .loading-dot {
        width: 10px;
        height: 10px;
    }
    

}

@media (max-width: 480px) {
    .loading-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        margin-bottom: 15px;
    }
    
    .loading-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .loading-progress {
        width: 200px;
        margin-bottom: 15px;
    }
    
    .loading-dot {
        width: 8px;
        height: 8px;
    }
}

/* RTL Desteği */
[dir="rtl"] .loading-progress-bar {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
}

/* Eski dil değişimi loading stilleri kaldırıldı - artık ana loading ekranı kullanılıyor */ 