/**
 * WordPress SPA Plugin Styles
 */

/* Progress Bar at the top of the viewport */
#wp-spa-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981); /* Indigo to Cyan to Emerald gradient */
    z-index: 999999;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

#wp-spa-progress-bar.loading {
    opacity: 1;
    width: 70%; /* Move quickly to 70% and wait */
}

#wp-spa-progress-bar.done {
    opacity: 0;
    width: 100%;
    transition: width 0.2s ease, opacity 0.4s ease 0.2s; /* Delay opacity transition until width is done */
}

/* Page content transitions */
.wp-spa-container {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.wp-spa-container.wp-spa-loading {
    opacity: 0.15;
    transform: translateY(4px);
}
