/* ============================================================================
   ROADMAP COMPONENT
   
   Vertical timeline layout for the roadmap page.
   ============================================================================ */

.roadmap-section {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.roadmap-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

/* The vertical line */
.roadmap-timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: rgba(96, 165, 250, 0.2); /* Light blue transparency */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

/* Timeline Item Container */
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

/* Left side items */
.timeline-item.left {
  left: 0;
  text-align: right;
}

/* Right side items */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* The dots on the line */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--section-dark);
  border: 4px solid var(--sky-blue);
  top: 24px; /* Aligns with card header */
  border-radius: 50%;
  z-index: 1;
  transition: all var(--transition-normal);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Fix dot position for right items */
.timeline-item.right::after {
  left: -10px;
}

/* Content Card */
.timeline-content {
  padding: var(--spacing-md);
  background: rgba(30, 58, 138, 0.4); /* var(--card-bg) with opacity */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(96, 165, 250, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.timeline-content:hover {
  transform: translateY(-5px);
  background: rgba(30, 58, 138, 0.6);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: var(--shadow-glow);
}

.timeline-item:hover::after {
  background-color: var(--sky-blue);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.8);
  transform: scale(1.2);
}

/* Content Typography */
.timeline-date {
  color: var(--sky-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  margin-right: 8px; /* Space between status and type badge */
}

/* New feature type badge styles */
.feature-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm); /* Align with status badge */
  text-transform: uppercase;
}

.feature-type-free {
  background: rgba(52, 211, 153, 0.15); /* Lighter green */
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.feature-type-premium {
  background: rgba(251, 191, 36, 0.15); /* Lighter yellow */
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.feature-type-mixed {
  background: rgba(148, 163, 184, 0.15); /* Light Slate Gray */
  color: #94a3b8; /* Text muted */
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-inprogress {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-planned {
  background: rgba(96, 165, 250, 0.1);
  color: var(--sky-blue);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Completed Item Specifics */
.timeline-item.completed::after {
  border-color: #34d399;
  background-color: #064e3b;
}

.timeline-item.completed:hover::after {
  background-color: #34d399;
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.6);
}

/* Animation Delays */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }

/* Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .roadmap-timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.left, 
  .timeline-item.right {
    left: 0;
    text-align: left;
  }
  
  .timeline-item::after,
  .timeline-item.right::after {
    left: 21px;
  }

  /* Arrow adjustments if we added them (omitted for cleaner look, but could add later) */
}
