/**
 * Reading Progress Bar Styles
 *
 * @package Niche_Blog_Pro
 */

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.dark-mode .reading-progress-bar {
  background-color: rgba(255, 255, 255, 0.1);
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color, #007bff) 0%, var(--secondary-color, #6f42c1) 100%);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.dark-mode .reading-progress-fill {
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
}

/* Hide on non-single pages */
body:not(.single) .reading-progress-bar {
  display: none;
}

/* Animation when scrolling */
@keyframes progressPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.reading-progress-fill.scrolling {
  animation: progressPulse 0.3s ease-in-out;
}

/* Adjust header position when progress bar is visible */
.single .sticky-header {
  top: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .reading-progress-bar {
    height: 3px;
  }

  .single .sticky-header {
    top: 3px;
  }
}
