/* Changelog Page Styles */

/* Custom height for page title section */
.changelog-page .page-title {
  padding: 80px 0 20px !important; /* More padding on top (80px), less on bottom (20px) */
  margin-top: 0 !important;
}

/* Ensure fixed header doesn't overlap with content */
.changelog-page .main {
  padding-top: 0 !important;
}

.changelog-page .page-title h1 {
  margin-bottom: 5px !important; /* Reduce space between heading and description */
  font-size: 28px !important; /* Slightly smaller heading */
}

.changelog-page .page-title p {
  margin-bottom: 10px !important;
}

.changelog-page .breadcrumbs {
  margin-top: 5px !important;
  margin-bottom: 0 !important;
}

/* Changelog timeline styles */
.changelog-item {
  position: relative;
  padding-left: 20px;
  padding-bottom: 30px;
  border-left: 2px solid #4154f1;
}

.changelog-item:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -9px;
  top: 0;
  background: #fff;
  border: 2px solid #4154f1;
}

/* Version styling */
.changelog-version {
  font-weight: 600;
  margin-bottom: 10px;
  color: #4154f1;
}

/* Date badge */
.changelog-date {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  border-radius: 20px;
  background: #e0e5ff;
  color: #4154f1;
  margin-bottom: 5px;
}

/* Feature type badges */
.changelog-feature {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 5px;
}

.changelog-fix {
  background-color: #ffebee;
  color: #c62828;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 5px;
}

.changelog-improvement {
  background-color: #e3f2fd;
  color: #1565c0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 5px;
}

/* User feedback section styles */
.feedback-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

.feedback-section h3 {
  margin-bottom: 1rem;
}

.feedback-section .card {
  transition: transform 0.2s ease-in-out;
}

.feedback-section .card:hover {
  transform: translateY(-2px);
}

.feedback-section .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Changelog container */
.changelog-container {
  margin-top: 1rem;
}

/* Timeline enhancements */
.changelog-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.changelog-item ul {
  margin-left: 0;
  padding-left: 1rem;
}

.changelog-item li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .changelog-page .page-title {
    padding: 60px 0 15px !important;
  }
  
  .changelog-page .page-title h1 {
    font-size: 24px !important;
  }
  
  .changelog-item {
    padding-left: 15px;
  }
  
  .changelog-item:before {
    width: 12px;
    height: 12px;
    left: -7px;
  }
  
  .feedback-section {
    padding: 1rem;
  }
}

/* Animation for changelog items */
.changelog-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.changelog-item:nth-child(1) { animation-delay: 0.1s; }
.changelog-item:nth-child(2) { animation-delay: 0.2s; }
.changelog-item:nth-child(3) { animation-delay: 0.3s; }
.changelog-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhance version badges */
.changelog-version .badge {
  font-size: 0.7em;
  vertical-align: middle;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* Improve readability */
.changelog-item ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.changelog-item ul li span[class*="changelog-"] {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
