/**
 * Matrix-Themed Checkout Progress Overlay
 * Pure cosmetic enhancement - no delays added
 */

/* Matrix Progress Overlay */
#wsi-matrix-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 2, 8, 0.98);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', 'Courier', monospace;
}

#wsi-matrix-progress.active {
    display: flex;
    animation: wsi-fadeIn 0.3s ease-out;
}

.wsi-matrix-content {
    text-align: center;
    max-width: 500px;
    padding: 50px 40px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00FF41;
    border-radius: 8px;
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.4),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
}

.wsi-matrix-content h2 {
    color: #00FF41;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.8),
        0 0 20px rgba(0, 255, 65, 0.5);
    animation: wsi-matrixPulse 2s ease-in-out infinite;
    letter-spacing: 2px;
}

.wsi-matrix-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 65, 0.2);
    border-top-color: #00FF41;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: wsi-matrixSpin 1s linear infinite;
    box-shadow: 
        0 0 15px rgba(0, 255, 65, 0.3),
        inset 0 0 15px rgba(0, 255, 65, 0.1);
}

.wsi-matrix-text {
    color: #00FF41;
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.wsi-matrix-code {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.wsi-code-line {
    color: rgba(0, 255, 65, 0.6);
    font-size: 12px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    animation: wsi-flicker 0.1s infinite;
}

/* Animations */
@keyframes wsi-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wsi-matrixSpin {
    to { transform: rotate(360deg); }
}

@keyframes wsi-matrixPulse {
    0%, 100% { 
        opacity: 1;
        text-shadow: 
            0 0 10px rgba(0, 255, 65, 0.8),
            0 0 20px rgba(0, 255, 65, 0.5);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 
            0 0 15px rgba(0, 255, 65, 1),
            0 0 30px rgba(0, 255, 65, 0.7);
    }
}

@keyframes wsi-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wsi-matrix-content {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .wsi-matrix-content h2 {
        font-size: 22px;
    }
    
    .wsi-matrix-text {
        font-size: 14px;
    }
    
    .wsi-matrix-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    #wsi-matrix-progress.active,
    .wsi-matrix-spinner,
    .wsi-matrix-content h2,
    .wsi-code-line {
        animation: none !important;
    }
}

/* Print - Hide overlay */
@media print {
    #wsi-matrix-progress {
        display: none !important;
    }
}

