/* ========================================
   Scroll Progress Indicator
   Visual feedback for page scroll position
   ======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
    var(--accent-pink),
    var(--accent-purple),
    var(--accent-cyan)
  );
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  transition: width 0.1s ease-out;
  width: 0%;
}

[data-theme="dark"] .scroll-progress {
  background: rgba(255, 255, 255, 0.1);
}

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

/* Hide on very short pages */
.scroll-progress.hidden {
  display: none;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    animation: none !important;
    background: var(--accent-pink);
  }
}
