/* ==================== TELA DE PRÉ-CARREGAMENTO ==================== */

.preload-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.preload-container {
    max-width: 600px;
    width: 90%;
    padding: 40px;
}

.preload-logo {
    text-align: center;
    margin-bottom: 50px;
}

.preload-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.preload-logo h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

.preload-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.preload-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.preload-item-complete {
    background: rgba(78,205,196,0.1);
    border-color: rgba(78,205,196,0.3);
}

.preload-item-icon {
    font-size: 40px;
    flex-shrink: 0;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.preload-item-complete .preload-item-icon {
    animation: none;
}

.preload-item-info {
    flex: 1;
}

.preload-item-label {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.preload-item-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preload-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.preload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a3a0 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(78,205,196,0.5);
}

.preload-item-complete .preload-progress-fill {
    background: linear-gradient(90deg, #4ecdc4 0%, #2ecc71 100%);
}

.preload-progress-text {
    color: #4ecdc4;
    font-size: 14px;
    font-weight: 600;
    min-width: 45px;
    text-align: right;
}

.preload-item-complete .preload-progress-text {
    color: #2ecc71;
}

.preload-overall {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(78,205,196,0.3);
    border-radius: 12px;
    padding: 25px;
}

.preload-overall-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.preload-overall-text span {
    color: #4ecdc4;
    font-size: 24px;
}

.preload-overall-bar {
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.preload-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, #e50914 0%, #ff6b6b 50%, #4ecdc4 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px rgba(229,9,20,0.5);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Responsivo */
@media (max-width: 768px) {
    .preload-container {
        padding: 20px;
    }
    
    .preload-logo h1 {
        font-size: 20px;
    }
    
    .preload-item {
        padding: 15px;
        gap: 15px;
    }
    
    .preload-item-icon {
        font-size: 30px;
    }
    
    .preload-item-label {
        font-size: 14px;
    }
    
    .preload-overall-text {
        font-size: 16px;
    }
    
    .preload-overall-text span {
        font-size: 20px;
    }
}
