/* ================================================
   THE ARCHIVE - TIMELINE STYLES
   Bottom timeline bar with dots, slider, and playback
   ================================================ */

/* ===== TIMELINE CONTAINER ===== */
#timeline {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.9),
    rgba(0,0,0,0.0)
  );

  z-index: 2;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30px;
  gap: 15px;
  pointer-events: none;
}

#timeline > * {
  pointer-events: all;
}

/* ===== TIMELINE DATE DISPLAY ===== */
#timelineDate {
  font-size: 13px;
  letter-spacing: 0.15em;
  font-weight: 300;
  opacity: 0.9;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 800px;
}

#timelineDate.playback-active {
  font-size: 20px;
  font-weight: 400;
  opacity: 1;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

#timelineDescription {
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 300;
  opacity: 0;
  max-width: 600px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  transition: opacity 0.3s ease;
  text-align: center;
  margin: 0 auto 10px;
}

#timelineDescription.visible {
  opacity: 0.85;
}

/* ===== TIMELINE CONTROLS ===== */
#timelineControls {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 80%;
  max-width: 1000px;
}

#timelineTrack {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(77, 153, 204, 0.3), 
    rgba(77, 153, 204, 0.8), 
    rgba(77, 153, 204, 0.3)
  );
  position: relative;
}

/* ===== TIMELINE SLIDER ===== */
#timelineSlider {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 40px;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  pointer-events: all;
}

#timelineSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

#timelineSlider::-moz-range-thumb {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ===== TIMELINE MARKER DOTS ===== */
.timeline-marker-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(77, 153, 204, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all 0.2s;
  pointer-events: none;
}

.timeline-marker-dot.eon {
  width: 12px;
  height: 12px;
  background: rgba(77, 153, 204, 1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(77, 153, 204, 0.6);
}

.timeline-marker-dot.era {
  width: 10px;
  height: 10px;
  background: rgba(100, 170, 220, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.timeline-marker-dot.period {
  width: 8px;
  height: 8px;
  background: rgba(120, 190, 230, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.timeline-marker-dot.epoch {
  width: 6px;
  height: 6px;
  background: rgba(150, 210, 240, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.timeline-marker-dot:hover {
  width: 14px;
  height: 14px;
  background: rgba(77, 153, 204, 1);
  box-shadow: 0 0 10px rgba(77, 153, 204, 0.8);
}

/* ===== PRESENT DAY MARKER ===== */
.timeline-present-marker {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(77, 153, 204, 1);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 12;
}

.timeline-present-marker:hover {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

/* ===== PLAYBACK PROGRESS INDICATOR ===== */
#playbackIndicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: rgba(255, 200, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.8);
  pointer-events: none;
  opacity: 0;
  transition: left 0.8s ease, opacity 0.3s ease;
  z-index: 11;
}

#playbackIndicator.visible {
  opacity: 1;
}
