.timelineNav {
  position: relative;
  display: flex;
  padding: 1rem;
  font-family: var(--font-mono, monospace);
}

.timelineLine {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    currentColor,
    transparent
  );
  opacity: 0.3;
}

/* HORIZONTAL */
.horizontal {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.horizontal .timelineLine {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    currentColor,
    transparent
  );
}

.horizontal .erasContainer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.horizontal .eraMarker {
  position: relative;
  flex-direction: column;
  gap: 0.5rem;
}

.horizontal .eraLabel {
  top: 100%;
  margin-top: 0.5rem;
}

/* VERTICAL */
.vertical {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.vertical .timelineLine {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    currentColor,
    transparent
  );
}

.vertical .erasContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.vertical .eraMarker {
  position: relative;
  flex-direction: row;
  gap: 0.75rem;
}

.vertical .eraLabel {
  left: 100%;
  margin-left: 0.75rem;
}

/* ERA MARKER */
.eraMarker {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.eraMarker:hover {
  transform: scale(1.1);
}

/* DOT SIZE */
.small .eraDot {
  width: 8px;
  height: 8px;
}

.medium .eraDot {
  width: 12px;
  height: 12px;
}

.large .eraDot {
  width: 18px;
  height: 18px;
}

/* ERA DOT */
.eraDot {
  border-radius: 50%;
  background: currentColor;
  border: 2px solid currentColor;
  transition: all 0.3s ease;
  position: relative;
}

.eraMarker:hover .eraDot {
  transform: scale(1.3);
  box-shadow: 0 0 20px currentColor;
}

/* ACTIVE STATE */
.active .eraDot {
  background: currentColor;
  box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

.active::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: ring-expand 2s ease-out infinite;
}

.small.active::before {
  width: 16px;
  height: 16px;
}

.medium.active::before {
  width: 24px;
  height: 24px;
}

.large.active::before {
  width: 36px;
  height: 36px;
}

/* ERA LABEL */
.eraLabel {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.eraMarker:hover .eraLabel,
.active .eraLabel {
  opacity: 1;
}

.active .eraLabel {
  font-weight: 700;
  text-shadow: 0 0 10px currentColor;
}

/* ANIMATIONS */
@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes ring-expand {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* GLITCH VARIATION */
.timelineNav.glitch .eraDot {
  animation: glitch-dot 3s infinite;
}

@keyframes glitch-dot {
  0%, 90%, 100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-1px, -1px);
  }
  98% {
    transform: translate(1px, 1px);
  }
}
