/**
 * Component: Scroll Progress Bar
 *
 * Thanh chi bao tien trinh cuon trang, hien thi co dinh o dau viewport.
 *
 * @package ComLink
 * @since   1.0.0
 */

/* === SCROLL PROGRESS BAR === */

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.05);
	pointer-events: none;
}

.scroll-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
	background-size: 200% 100%;
	transform-origin: left center;
	transform: scaleX(0);
	animation: scrollProgressGradient 3s ease infinite;
}

@keyframes scrollProgressGradient {
	0%, 100% { background-position: 0% 50%; }
	50%       { background-position: 100% 50%; }
}

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

@media (prefers-reduced-motion: reduce) {
	.scroll-progress {
		display: none !important;
	}
}
