/* =========================================== */
/* READING TIME ESTIMATES 2026 */
/* Award-winning reading time display */
/* =========================================== */

:root {
  --reading-time-color: #6366f1;
  --reading-time-bg: rgba(99, 102, 241, 0.1);
  --reading-time-border-radius: 8px;
  --reading-time-font-size: 0.875rem;
}

/* =========================================== */
/* READING TIME BADGE */
/* =========================================== */

.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--reading-time-bg);
  border-radius: var(--reading-time-border-radius);
  font-size: var(--reading-time-font-size);
  font-weight: 600;
  color: var(--reading-time-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.reading-time-badge:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.reading-time-badge i {
  font-size: 1rem;
}

.reading-time-badge .reading-time-value {
  font-weight: 700;
}

.reading-time-badge .reading-time-label {
  opacity: 0.8;
}

/* =========================================== */
/* READING TIME INLINE */
/* =========================================== */

.reading-time-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #718096;
  margin-left: 0.5rem;
}

.reading-time-inline i {
  font-size: 0.75rem;
}

/* =========================================== */
/* READING TIME PROGRESS */
/* =========================================== */

.reading-time-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 999997;
  pointer-events: none;
}

.reading-time-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.reading-time-progress-label {
  display: none !important;
  position: fixed;
  top: 10px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.reading-time-progress-label.visible {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* =========================================== */
/* SECTION READING TIME */
/* =========================================== */

#main-content-section .section-reading-time {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #718096;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  z-index: 10;
}

#main-content-section .section-reading-time i {
  font-size: 0.625rem;
}

/* =========================================== */
/* READING TIME SUMMARY */
/* =========================================== */

.reading-time-summary {
  background: rgba(99, 102, 241, 0.05);
  border-left: 3px solid var(--reading-time-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.reading-time-summary-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--reading-time-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reading-time-summary-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9375rem;
  color: #4a5568;
}

.reading-time-summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reading-time-summary-item i {
  color: var(--reading-time-color);
  font-size: 1rem;
}

.reading-time-summary-item .value {
  font-weight: 700;
  color: var(--reading-time-color);
}

/* =========================================== */
/* READING TIME TOOLTIP */
/* =========================================== */

.reading-time-tooltip {
  position: relative;
  display: inline-block;
}

.reading-time-tooltip:hover .reading-time-tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(-5px);
}

.reading-time-tooltip-content {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.reading-time-tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  .reading-time-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .reading-time-progress-label {
    top: 5px;
    right: 10px;
    font-size: 0.625rem;
    padding: 0.375rem 0.75rem;
  }
  
  #main-content-section .section-reading-time {
    position: static;
    margin-bottom: 1rem;
  }
  
  .reading-time-summary-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* =========================================== */
/* ACCESSIBILITY */
/* =========================================== */

.reading-time-badge[aria-label] {
  cursor: help;
}

@media (prefers-reduced-motion: reduce) {
  .reading-time-badge,
  .reading-time-progress-bar,
  .reading-time-tooltip-content {
    transition: none;
  }
}

/* =========================================== */
/* HIDE ALL READING TIME INDICATORS */
/* User requested removal - all reading time displays hidden */
/* =========================================== */

.reading-time,
.reading-time-badge,
.reading-time-inline,
.scroll-reading-time,
.reading-time-progress-label,
.section-reading-time,
.reading-time-summary,
.reading-time-tooltip,
.reading-time-tooltip-content,
[class*="reading-time"],
[class*="reading-time"] * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

