/**
 * PPS Loader Styles v2.0
 * Loading screen and animations
 */

/* ========================================
   LOADER SCREEN
   ======================================== */

.pps-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--pps-z-loader);
    transition: opacity 0.3s ease;
}

.pps-loader.pps-fade-out {
    opacity: 0;
}

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

.pps-loader-logo {
    margin-bottom: 2rem;
}

/* ========================================
   LOADING DOTS ANIMATION
   ======================================== */

.pps-loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 2rem;
}

.pps-loader-dots span {
    width: 12px;
    height: 12px;
    background: var(--pps-accent-color);
    border-radius: 50%;
    animation: pps-pulse 1.4s ease-in-out infinite;
}

.pps-loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.pps-loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pps-pulse {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.pps-loader-text {
    color: var(--pps-text-secondary);
    font-size: 1rem;
}

/* ========================================
   ERROR STATE
   ======================================== */

.pps-error {
    text-align: center;
    padding: 2rem;
}

.pps-error h2 {
    color: #dc3545;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pps-error p {
    color: var(--pps-text-secondary);
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .pps-loader-dots span {
        width: 10px;
        height: 10px;
    }
    
    .pps-loader-text {
        font-size: 0.9rem;
    }
}
