/* css/loading.css */

/* Global Loading Overlay */
#global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b05969 0%, #8c4552 100%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#global-loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: pulse-logo 2s infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.loading-couple {
    font-family: 'Explora', cursive;
    font-size: 2.5rem;
    margin-top: 10px;
    opacity: 0.9;
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
    animation: loading-progress 3s ease-in-out infinite;
}

.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce-dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-logo {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes loading-progress {
    0% {
        width: 0%;
        margin-left: 0;
    }
    50% {
        width: 100%;
        margin-left: 0;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
        height: 100px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-couple {
        font-size: 2rem;
    }
}