/* GHOUD Page Loader Styles - Enhanced UI/UX */

#ghoud-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#ghoud-page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.ghoud-loader-container {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ghoud-loader-content {
    text-align: center;
}

.ghoud-progress-bar-wrapper {
    width: 100%;
}

.ghoud-progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.05);
}

.ghoud-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        rgb(34, 38, 88) 0%,
        rgb(52, 58, 128) 50%,
        rgb(34, 38, 88) 100%
    );
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 12px rgba(34, 38, 88, 0.25),
        0 0 20px rgba(34, 38, 88, 0.15);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.ghoud-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
    border-radius: 20px;
}

.ghoud-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite 0.5s;
    border-radius: 20px;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.ghoud-progress-text {
    font-size: 20px;
    font-weight: 700;
    color: rgb(34, 38, 88);
    margin-top: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* RTL Support */
[dir="rtl"] .ghoud-progress-fill::after,
html[dir="rtl"] .ghoud-progress-fill::after {
    animation-direction: reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .ghoud-loader-container {
        max-width: 320px;
        padding: 25px;
    }

    .ghoud-progress-bar {
        height: 10px;
    }

    .ghoud-progress-text {
        font-size: 18px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .ghoud-loader-container {
        max-width: 280px;
        padding: 20px;
    }

    .ghoud-progress-bar {
        height: 8px;
    }

    .ghoud-progress-text {
        font-size: 16px;
        margin-top: 10px;
    }
}
