/**
 * Page Loader Styles
 * 
 * @package Quality_Reclame
 */

.qr-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--gcid-primary-color); /* Dark background for white logo */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.qr-page-loader.qr-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.qr-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Logo Animation */
.qr-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-loader-logo {
    width: 100%;
    height: auto;
    max-width: 120px;
    animation: qr-logo-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes qr-logo-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

/* Loading Text */
.qr-loader-text {
    font-family: 'Nexa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff; /* White text for dark background */
    letter-spacing: 0.5px;
    animation: qr-pulse 1.5s ease-in-out infinite;
}

@keyframes qr-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Prevent content shift */
body.qr-loading {
    overflow: hidden !important;
}

/* Alternative loader styles - uncomment to use */

/* Dots Loader */
/*
.qr-spinner {
    display: flex;
    gap: 10px;
}

.qr-spinner-ring {
    position: static;
    width: 15px;
    height: 15px;
    background-color: #2ea3f2;
    border-radius: 50%;
    border: none;
    animation: qr-dots-bounce 1.4s ease-in-out infinite;
}

.qr-spinner-ring:nth-child(1) {
    animation-delay: -0.32s;
}

.qr-spinner-ring:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes qr-dots-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
*/

/* Bar Loader */
/*
.qr-spinner {
    width: 200px;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.qr-spinner-ring {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #2ea3f2, transparent);
    border: none;
    border-radius: 0;
    animation: qr-bar-slide 1.5s ease-in-out infinite;
}

.qr-spinner-ring:nth-child(2),
.qr-spinner-ring:nth-child(3) {
    display: none;
}

@keyframes qr-bar-slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {
    .qr-logo-container {
        width: 90px;
        height: 90px;
    }
    
    .qr-loader-logo {
        max-width: 90px;
    }
    
    .qr-loader-text {
        font-size: 14px;
    }
}

/* Dark mode support - uncomment if needed */
/*
@media (prefers-color-scheme: dark) {
    .qr-page-loader {
        background-color: #1a1a1a;
    }
    
    .qr-loader-text {
        color: #ffffff;
    }
}
*/

