/**
 * Reading Progress Bar Styles
 * 
 * Styles for the fixed reading progress indicator that shows
 * how far the user has scrolled through article content.
 */

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.reading-progress-bar--visible {
    opacity: 1;
}

.reading-progress-bar__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--color-primary, #3b82f6) 0%,
        var(--color-primary-light, #60a5fa) 100%
    );
    transition: width 0.2s ease-out;
    transform-origin: left center;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Alternative bottom position */
.reading-progress-bar--bottom {
    top: auto;
    bottom: 0;
}

/* Dark theme support */
[data-theme="dark"] .reading-progress-bar {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .reading-progress-bar__fill {
    box-shadow: 0 0 4px rgba(96, 165, 250, 0.4);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reading-progress-bar,
    .reading-progress-bar__fill {
        transition: none;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .reading-progress-bar {
        height: 2px;
    }
}

/* Print styles - hide progress bar */
@media print {
    .reading-progress-bar {
        display: none;
    }
}
