/**
 * Reading Progress Bar Styles
 * OS 30/Dec
 * 
 * Shared progress bar styles for articles across the site
 */

/* Reading Progress Bar */
.wtd-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Adjust for WordPress admin bar */
body.admin-bar .wtd-reading-progress {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .wtd-reading-progress {
        top: 46px;
    }
}

/* Progress Bar Fill */
.wtd-reading-progress-bar {
    height: 100%;
    background: #333;
    width: 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Gradient Edge Effect */
.wtd-reading-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wtd-reading-progress {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .wtd-reading-progress-bar {
        background: #e5e5e5;
    }
} 