body {
  padding: 0;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  width: 100dvw;
  min-height: 100dvh;
  color: var(--text-950);
  background: linear-gradient(
    135deg,
    var(--background-50) 0%,
    var(--background-100) 100%
  );
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(45deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.8;
  margin: 0;
}

.version-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.version-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.version-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.version-card h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  opacity: 0.9;
}

.version-number {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
  font-family: "Courier New", monospace;
}

.latest-release .version-number {
  color: #22c55e;
}

.latest-beta .version-number {
  color: #f59e0b;
}

.version-type {
  font-size: 1rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.version-history {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.version-history h2 {
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.version-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.version-list {
  max-height: 500px;
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
  padding-right: 8px; /* Space for scrollbar */
}

.version-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.version-item:hover {
  background: rgba(255, 255, 255, 0.1);
  /* transform: translateX(5px); */
}

.version-item.has-download {
  border-left: 3px solid rgba(34, 197, 94, 0.4);
}

.version-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.version-name {
  font-family: "Courier New", monospace;
  font-weight: 600;
  font-size: 1.1rem;
}

.version-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.version-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-badge.release {
  background: #dcfce7;
  color: #166534;
}

.version-badge.beta {
  background: #fef3c7;
  color: #92400e;
}

.download-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.download-badge.subtle {
  padding: 0.15rem 0.4rem;
  font-size: 0.8rem;
  background: rgba(34, 197, 94, 0.1);
  color: rgba(34, 197, 94, 0.8);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.download-badge.unavailable {
  background: rgba(156, 163, 175, 0.1);
  color: rgba(156, 163, 175, 0.6);
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.download-badge.subtle.unavailable {
  background: rgba(156, 163, 175, 0.05);
  color: rgba(156, 163, 175, 0.5);
  border: 1px solid rgba(156, 163, 175, 0.1);
}

.availability-indicator {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.availability-indicator.available {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.availability-indicator.unavailable {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.indicator-icon {
  font-weight: bold;
  margin-right: 0.5rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  opacity: 0.7;
  font-style: italic;
}

/* Scrollbar styling for version list */
.version-list::-webkit-scrollbar {
  width: 8px;
}

.version-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 4px 0;
}

.version-list::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.version-list::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.5);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .main {
    padding: 1rem;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .version-number {
    font-size: 2rem;
  }
  
  .version-cards {
    grid-template-columns: 1fr;
  }
}

/* Dialog Styles */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
}

.dialog {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  /* Transform and transitions handled by JavaScript */
}

/* Dialog scrollbar styling */
.dialog::-webkit-scrollbar {
  width: 10px;
}

.dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 10px 0;
}

.dialog::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.4);
  border-color: rgba(34, 197, 94, 0.2);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.dialog-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: inherit;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dialog-content {
  padding: 2rem;
  padding-right: 1.5rem; /* Less padding on right for scrollbar */
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.detail-value {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-value span {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.copy-btn {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  transform: scale(1.05);
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.4);
  color: #16a34a;
}

.codes-grid {
  display: grid;
  gap: 1rem;
  margin-right: 8px; /* Space for potential scrolling */
}

.code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.code-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.code-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.code-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.code-value span {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 1rem;
}

.variants-list {
  display: grid;
  gap: 1rem;
  margin-right: 8px; /* Space for potential scrolling */
}

.variant-item {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.variant-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}

.variant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.variant-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.variant-size {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.variant-url {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  word-break: break-all;
  margin-top: 0.5rem;
}

/* Clickable indicators */
.version-card {
  cursor: pointer;
}

.version-item {
  cursor: pointer;
}

.version-card:hover,
.version-item:hover {
  transform: translateY(-2px);
}
