/* altcss/activity-timeline.css */
activity-timeline {
  display: block;
  position: fixed;
  right: 0;
  top: 0;
  width: 20px;
  height: 100vh;
  z-index: 80;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
}

.timeline-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.timeline-track {
  position: relative;
  flex: 1;
  width: 100%;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.timeline-block {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-block:hover {
  transform: scaleX(1.5);
  z-index: 10;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.timeline-labels {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
}

.timeline-label-top,
.timeline-label-bottom {
  font-size: 9px;
  color: var(--text-tertiary);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}

activity-timeline:hover .timeline-label-top,
activity-timeline:hover .timeline-label-bottom {
  opacity: 1;
}

.timeline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* Tooltip enhancement */
.timeline-block[title] {
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  activity-timeline {
    width: 15px;
  }
  
  .timeline-label-top,
  .timeline-label-bottom {
    font-size: 8px;
  }
}