/* BulaWork Loading Animation - Apple-Inspired Modern Design */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loading Container */
.loading-container {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

/* Spinner */
.loading-spinner {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #FFD300;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 30px rgba(255, 211, 0, 0.2);
}

/* Brand Logo/Text */
.loading-brand {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.5px;
}

.loading-brand span {
    color: #FFD300;
    font-weight: 700;
}

/* Loading Text */
.loading-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Progress Bar (Optional) */
.loading-progress {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 24px auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD300, #FFA500);
    width: 0%;
    animation: progress 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 211, 0, 0.5);
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes progress {
    0% {
        width: 0%;
        margin-left: 0;
    }
    50% {
        width: 70%;
        margin-left: 15%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-brand {
        font-size: 28px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .loading-progress {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .loading-brand {
        font-size: 24px;
    }
    
    .loading-text {
        font-size: 13px;
    }
    
    .loading-progress {
        width: 150px;
    }
}
