/* Roadmap Timeline Styles */
/* Styles for interactive timeline, progress indicators, and phase details */

/* Roadmap Timeline Container */
.roadmap-timeline {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2.5rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.timeline-title {
  margin: 0 0 0.5rem;
  color: #333;
  font-size: 2rem;
}

.timeline-subtitle {
  margin: 0 0 2rem;
  color: #555;
  font-size: 1.1rem;
}

/* Timeline Structure */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

/* Timeline Marker */
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ccc;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.timeline-item.current .marker-dot {
  background-color: #0066CC;
  width: 32px;
  height: 32px;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-item.upcoming .marker-dot {
  background-color: #4DB8FF;
}

.timeline-item.future .marker-dot {
  background-color: #b3d9ff;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
  }
  50% {
    box-shadow: 0 2px 16px rgba(0, 102, 204, 0.8);
  }
}

.marker-line {
  width: 3px;
  height: 100%;
  min-height: 80px;
  background: linear-gradient(to bottom, #ddd 0%, transparent 100%);
  margin-top: 4px;
}

.timeline-item:last-child .marker-line {
  display: none;
}

/* Timeline Content */
.timeline-content {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
  transform: translateY(-2px);
}

.timeline-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.current-badge {
  background-color: #0066CC;
  color: white;
}

.upcoming-badge {
  background-color: #4DB8FF;
  color: white;
}

.future-badge {
  background-color: #e3f2fd;
  color: #0066CC;
}

.timeline-heading {
  margin: 0 0 0.5rem;
  color: #333;
  font-size: 1.5rem;
}

.timeline-date {
  margin: 0 0 1rem;
  color: #666;
  font-weight: 600;
  font-size: 1rem;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0066CC 0%, #4DB8FF 100%);
  transition: width 0.6s ease;
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.progress-label {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #0066CC;
  font-weight: 600;
}

/* Timeline Features */
.timeline-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.timeline-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
}

.timeline-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
}

/* Expand/Collapse Button */
.timeline-expand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.timeline-expand:hover {
  background-color: #e0e0e0;
  border-color: #0066CC;
}

.timeline-expand:focus {
  outline: 3px solid rgba(0, 102, 204, 0.5);
  outline-offset: 2px;
}

.timeline-expand[aria-expanded="true"] .expand-icon {
  transform: rotate(180deg);
}

.expand-icon {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
}

/* Timeline Extra Content */
.timeline-extra {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.timeline-extra[hidden] {
  display: none;
}

.timeline-extra h4 {
  margin: 0 0 0.75rem;
  color: #333;
  font-size: 1.1rem;
}

.timeline-extra ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.timeline-extra li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.timeline-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #0066CC;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.timeline-cta:hover {
  background-color: #0052a3;
  transform: translateX(4px);
}

.timeline-cta:focus {
  outline: 3px solid rgba(0, 102, 204, 0.5);
  outline-offset: 2px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .roadmap-timeline {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  }

  .timeline-title {
    color: #e0e0e0;
  }

  .timeline-subtitle {
    color: #aaa;
  }

  .timeline-content {
    background-color: #2d2d2d;
  }

  .timeline-heading {
    color: #e0e0e0;
  }

  .timeline-date {
    color: #aaa;
  }

  .progress-bar {
    background-color: #444;
  }

  .timeline-expand {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
  }

  .timeline-expand:hover {
    background-color: #444;
    border-color: #4DB8FF;
  }

  .timeline-extra {
    border-top-color: #444;
  }

  .timeline-extra h4 {
    color: #e0e0e0;
  }

  .marker-dot {
    border-color: #2d2d2d;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .marker-dot,
  .progress-fill,
  .timeline-content,
  .timeline-cta {
    animation: none;
    transition: none;
  }

  .timeline-content:hover {
    transform: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .roadmap-timeline {
    padding: 1.5rem 1rem;
  }

  .timeline-title {
    font-size: 1.5rem;
  }

  .timeline-subtitle {
    font-size: 1rem;
  }

  .timeline-item {
    padding-left: 45px;
  }

  .timeline-heading {
    font-size: 1.25rem;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-item.current .marker-dot {
    width: 24px;
    height: 24px;
  }
}
