/**
 * Nebula Theme - Reading Progress Bar
 * Version: 2.0.0
 * 文章阅读进度条样式
 */

/* ============================
   Reading Progress Bar
   ============================ */

.nebula-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: var(--nebula-z-fixed, 9999);
    pointer-events: none;
}

.nebula-reading-progress__bar {
    height: 100%;
    width: 0;
    background: var(--nebula-gradient-primary, linear-gradient(90deg, var(--nebula-primary, #0EA5E9), var(--nebula-primary-dark, #0284C7)));
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Dark mode */
[data-theme="dark"] .nebula-reading-progress__bar,
body.dark-mode .nebula-reading-progress__bar {
    background: var(--nebula-gradient-primary, linear-gradient(90deg, var(--nebula-primary, #38BDF8), var(--nebula-primary-dark, #0EA5E9)));
}

/* 进度条动画效果 */
@keyframes nebula-progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nebula-reading-progress--loading .nebula-reading-progress__bar {
    animation: nebula-progress-pulse 1.5s ease-in-out infinite;
}
