/* Roadmap Timeline Styles */
.roadmap-heading {
  background: linear-gradient(45deg, #bd9a00, #dab200);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.filter-container {
  width: 200px;
  align-self: flex-start;
}

/* Timeline Container */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin-bottom: 3rem;
}

/* Timeline Central Line */
.timeline::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #bd9a00, #473a00);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 0;
}

/* Individual Timeline Items */
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Item Content */
.timeline-content {
  width: 45%;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  transition: all 0.4s ease;
  z-index: 5;
  color: #fff !important;
}

/* Right Side Items */
.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

/* Item Connector Lines to Main Timeline */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 4px;
  background-color: #bd9a00;
  top: 30px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: 55%;
}

.timeline-item:nth-child(even)::after {
  left: 55%;
}

/* Timeline Node */
.timeline-item::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #dab200;
  border: 4px solid #000;
  top: 22px;
  z-index: 2;
  box-shadow: 0 0 10px rgba(218, 178, 0, 0.5);
}

/* Position the nodes in the center */
.timeline-item::before {
  left: 50%;
  transform: translateX(-50%);
}

/* Item date */
.timeline-date {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
  text-transform: uppercase;
}

.status-released {
  background-color: #4caf50;
  color: white;
}

.status-inprogress {
  background-color: #2196f3;
  color: white;
}

.status-planned {
  background-color: #ff9800;
  color: black;
}

/* Content styling */
.timeline-title {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.timeline-description {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Item styling by status */
.item-released {
  background: rgb(0, 110, 0);
  border: 1px solid rgba(76, 175, 80, 0.5);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.item-inprogress {
  background: rgb(0, 103, 187);
  border: 1px solid rgba(33, 150, 243, 0.5);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.item-planned {
  background: rgb(162, 127, 0);
  border: 1px solid rgba(255, 152, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

/* Animation for timeline items */
.timeline-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline loader */
.timeline-loader .spinner {
  margin: 0 auto;
}

/* Empty state */
.timeline-empty {
  text-align: center;
  padding: 40px 0;
  color: #aaa;
}

.timeline-empty i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #bd9a00;
}

/* Responsiveness */
@media (max-width: 768px) {
  .timeline::before {
    left: 40px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }

  .timeline-item::before {
    left: 40px;
    transform: none;
  }

  .timeline-item::after {
    left: 50px !important;
    width: 30px;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    right: auto;
  }
}

@media (max-width: 576px) {
  .timeline-date {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .status-badge {
    display: inline-block;
    margin-left: 0;
    margin-top: 5px;
  }

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

/* Visible hover effects */
.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Timeline node glow on hover */
.timeline-item:hover::before {
  box-shadow: 0 0 15px rgba(218, 178, 0, 0.8);
}
