/* Global front-end styles for the timeline nodes */

.feature-timeline-node-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

/* Connecting line between nodes */
.feature-timeline-node-wrap:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px; /* vertically centers on the circle */
  left: 50%;
  width: 100%;
  height: 1px;
  background: #D9D9E2; /* NS Light 2 */
  z-index: 0;
}

.feature-timeline-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.feature-timeline-node-wrap:hover .feature-timeline-node {
  transform: translateY(-2px);
}

.feature-timeline-node-wrap.is-active .feature-timeline-node {
  background: var(--ftl-active-color, #403EFF);
}

.feature-timeline-label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #D9D9E2; /* NS Light 2 */
  text-align: center;
  transition: color 0.25s ease, font-weight 0.25s ease;
  max-width: 140px;
}

.feature-timeline-node-wrap.is-active .feature-timeline-label {
  color: inherit;
  font-weight: 700;
}

.feature-timeline-content {
  display: block;
}

/* Responsive: horizontal scroll instead of wrapping/squeezing on small screens */
@media (max-width: 640px) {
  .feature-timeline-track {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    justify-content: flex-start;
    padding-bottom: 4px; /* room so the scrollbar (if shown) doesn't clip the line */
  }
  .feature-timeline-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .feature-timeline-node-wrap {
    flex: 0 0 auto;
    min-width: 72px;
  }
  .feature-timeline-node-wrap:not(:last-child)::after {
    width: 72px; /* fixed segment length instead of stretching to 100% */
  }
  .feature-timeline-label {
    white-space: nowrap;
    max-width: none;
  }
}
