*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #020617;
  color: #fff;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  padding-bottom: 60px; /* Space for fixed bottom bar */
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 35%,
      #1e3a8a44 0%,
      transparent 70%
    );
  z-index: 0;
  pointer-events: none;
}

.back-home {
  position: fixed;
  top: 20px;
  left: 24px;
  font-size: 0.85rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
  z-index: 20;
}

.back-home:hover {
  color: #fff;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  margin: auto;
  padding: 90px 24px 80px;
}

.page-header {
  text-align: center;
  margin-bottom: 42px;
}

.eyebrow {
  color: #3b82f6;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-header h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 900;
  letter-spacing: -3px;
  margin: 0 0 10px;
}

.page-header p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

.archive {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.release-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
  text-decoration: none;

  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 17px;
  padding: 22px;

  cursor: pointer;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;

  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.5s ease forwards;
}

.release-card:nth-child(1) { animation-delay: 0.05s; }
.release-card:nth-child(2) { animation-delay: 0.1s; }
.release-card:nth-child(3) { animation-delay: 0.15s; }
.release-card:nth-child(4) { animation-delay: 0.2s; }
.release-card:nth-child(5) { animation-delay: 0.25s; }
.release-card:nth-child(6) { animation-delay: 0.3s; }
.release-card:nth-child(7) { animation-delay: 0.35s; }
.release-card:nth-child(8) { animation-delay: 0.4s; }
.release-card:nth-child(9) { animation-delay: 0.45s; }
.release-card:nth-child(10) { animation-delay: 0.5s; }
.release-card:nth-child(11) { animation-delay: 0.55s; }
.release-card:nth-child(12) { animation-delay: 0.6s; }
.release-card:nth-child(13) { animation-delay: 0.65s; }
.release-card:nth-child(14) { animation-delay: 0.7s; }
.release-card:nth-child(15) { animation-delay: 0.75s; }
.release-card:nth-child(16) { animation-delay: 0.8s; }
.release-card:nth-child(17) { animation-delay: 0.85s; }

.release-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.release-card.latest {
  border-color: rgba(59, 130, 246, 0.38);
  background:
    linear-gradient(
      135deg,
      rgba(30, 58, 138, 0.2),
      rgba(15, 23, 42, 0.7)
    );
}

.release-card.news {
  border-color: rgba(168, 85, 247, 0.3);
  background:
    linear-gradient(
      135deg,
      rgba(88, 28, 135, 0.16),
      rgba(15, 23, 42, 0.7)
    );
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 11px;
}

.version-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.version {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.latest-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.news-badge {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.date {
  color: #475569;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.title {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.description {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.55;
  margin-bottom: 17px;
  max-width: 650px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat {
  color: #64748b;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(51, 65, 85, 0.45);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 0.58rem;
  font-weight: 600;
}

.stat strong {
  color: #94a3b8;
}

.view {
  color: #3b82f6;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.release-card:hover .view {
  transform: translateX(3px);
}

/* Fixed Bottom Bar */

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  font-size: 0.8rem;
}

.bottom-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
}

.bottom-bar-left strong {
  color: #60a5fa;
  font-weight: 600;
}

.bottom-bar-right a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-bar-right a:hover {
  color: #fff;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 78px 16px 60px;
  }

  .back-home {
    top: 16px;
    left: 16px;
  }

  .release-card {
    padding: 18px;
  }

  .card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .view {
    display: none;
  }

  .bottom-bar {
    padding: 0 16px;
    font-size: 0.75rem;
  }
}
