/* Reading Progress Indicator
 * Shows scroll progress as a thin bar at the top of the viewport
 * Only visible on article pages with substantial content
 */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--bs-primary, #0d6efd), var(--bs-info, #0dcaf0));
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* Ensure progress bar appears above sticky header */
.reading-progress {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide on print */
@media print {
  .reading-progress {
    display: none !important;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    transition: none;
  }
}

/* Hide on very small screens where it might interfere with mobile browser chrome */
@media (max-height: 400px) {
  .reading-progress {
    display: none;
  }
}
