/* ── Releases Page Specific Styles ────────────────── */

.releases-container {
  padding-top: 120px;
  padding-bottom: 80px;
}

.releases-header {
  text-align: center;
  margin-bottom: 60px;
}

.releases-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}

.releases-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Timeline ─────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px; /* Offset to center the line */
  width: 4px;
  background: var(--glass-border);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-content {
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
}

/* Small arrow pointing to the dot */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 28px;
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent var(--glass-border) transparent transparent;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 28px;
  left: -9px;
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent var(--glass-bg) transparent transparent;
}

.release-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.version {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 12px;
  border-radius: 8px;
}

.date {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.timeline-content h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag.feature {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.tag.improvement {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
}

.tag.fix {
  background: rgba(220, 38, 38, 0.15);
  color: var(--danger);
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
  color: var(--text-muted);
}

.timeline-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.timeline-content strong {
  color: var(--text-main);
  font-weight: 600;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  .timeline {
    padding-left: 20px;
  }
  
  .timeline::before {
    left: -5px;
  }
  
  .timeline-dot {
    left: -20px;
    width: 16px;
    height: 16px;
    top: 26px;
  }
  
  .timeline-content {
    padding: 24px 20px;
  }
  
  .timeline-content::before, .timeline-content::after {
    display: none; /* Hide the arrow on very small screens to save space */
  }
  
  .releases-header h1 {
    font-size: 2.5rem;
  }
}
