body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}
@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap");

.font-junicode {
  font-family: "Crimson Pro", serif;
}
.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.version-card {
  background-color: #ffffff00;
  border: 2px solid var(--zen-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.version-card:hover {
  transform: scale(1.02);
  border-color: var(--zen-coral);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.version-card h2 {
  font-family: "Junicode", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--zen-dark);
}

.version-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.7;
  margin-bottom: 1rem;
  color: var(--zen-dark);
}

.version-card .explore-link {
  color: var(--zen-coral);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.loader {
  text-align: center;
  padding: 2rem;
  color: var(--zen-dark);
  opacity: 0.7;
}

.loader::after {
  content: "Loading versions...";
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--zen-dark);
  opacity: 0.7;
}

.subtitle-small {
  font-size: 0.875rem;
  opacity: 0.6;
  text-align: center;
  margin-top: 0.5rem;
}
body {
  animation: fadeInPage 0.5s ease-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--zen-dark);
  padding: 0.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--zen-paper);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--zen-dark);
}

.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.mobile-menu nav li {
  margin-bottom: 1rem;
}

.mobile-menu nav a {
  color: var(--zen-dark);
  text-decoration: none;
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-menu nav a:hover {
  color: var(--zen-coral);
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }
  .menu-toggle {
    display: block;
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  background: var(--zen-dark);
  color: var(--zen-paper);
  width: 10rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--zen-subtle);
  gap: 15px;
}

.back-to-top:hover {
  background: var(--zen-coral);
  transform: scale(1.05);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top i {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .back-to-top i {
    font-size: 1rem;
  }
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body::-webkit-scrollbar {
    width: 0;
    background: transparent;
  }

  body {
    scrollbar-width: none;
  }
}
