@keyframes psVersionPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    border-color: rgba(0, 210, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.5);
    border-color: rgba(0, 210, 255, 0.6);
  }
}

@keyframes psBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

@keyframes psDownloadPulse {
  0% {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6), 0 0 60px rgba(138, 43, 226, 0.4);
  }
  100% {
    box-shadow: 0 0 45px rgba(0, 210, 255, 0.9), 0 0 90px rgba(138, 43, 226, 0.7);
  }
}

.ps-download-hub {
  width: 100%;
  position: relative;
  min-height: 200px;
}

/* Loading & Error States */
.ps-download-loading,
.ps-download-error {
  text-align: center;
  padding: 60px 20px;
  color: #00d2ff;
  font-size: 18px;
}

.ps-download-error {
  color: #ff4444;
}

/* Header Section */
.ps-download-header {
  text-align: center;
  margin-bottom: 50px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(0, 210, 255, 0.05);
  color: #00d2ff;
  padding: 16px 32px;
  border-radius: 8px;
  border: 2px solid rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
  animation: psVersionPulse 3s infinite alternate ease-in-out;
}

.version-dot {
  width: 10px;
  height: 10px;
  background-color: #00d2ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d2ff;
  animation: psBlink 2s infinite;
}

.ps-download-date {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-top: 12px;
}

/* Buttons */
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
  align-items: center;
}

.download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px 50px;
  border-radius: 50px;
  background: linear-gradient(90deg, #00d2ff 0%, #8a2be2 100%);
  color: #0a0a0a !important;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  width: 100%;
  max-width: 380px;
}

.download-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
  color: #000000 !important;
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.7);
}

.download-btn.ps-recommended {
  animation: psDownloadPulse 2s infinite alternate ease-in-out;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6), 0 0 60px rgba(138, 43, 226, 0.4);
}

.download-btn.ps-recommended::after {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  right: 10px;
  background: linear-gradient(90deg, #00d2ff 0%, #8a2be2 100%);
  color: #0a0a0a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-text {
  font-weight: 800;
}

/* Release Notes */
.release-notes {
  background: rgba(13, 13, 21, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.release-notes h3 {
  margin: 0 0 20px 0;
  font-size: 24px;
  font-weight: 700;
  color: #00d2ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notes-content {
  font-family: 'Roboto', monospace;
  font-size: 15px;
  line-height: 1.8;
  color: #cccccc;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.github-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #00d2ff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.github-link:hover {
  color: #8a2be2;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .version-badge {
    font-size: 14px;
    padding: 12px 24px;
  }

  .download-btn {
    min-width: 100%;
    padding: 16px 30px;
    font-size: 16px;
  }

  .release-notes {
    padding: 20px;
  }

  .release-notes h3 {
    font-size: 20px;
  }

  .notes-content {
    font-size: 14px;
  }
}
