/* ─── Downloads Page Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ─── Page Container ─── */
.downloads-page {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 20% 50%, #0d1b2a 0%, #0a0f18 100%);
  position: relative;
}

.downloads-page::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(24, 139, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.downloads-page::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(24, 139, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .downloads-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 32px 16px;
  }
}

/* ─── Layout Structure ─── */
.layout-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  justify-content: center;
  gap: 60px;
  z-index: 1;
}

@media (max-width: 992px) {
  .layout-container {
    flex-direction: column;
    gap: 40px;
  }
}

.image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.6s ease-out both;
}

@media (max-width: 992px) {
  .image-wrapper {
    display: none;
  }
}

.image-box {
  width: 100%;
  max-width: 450px;
  position: relative;
  aspect-ratio: 1;
}

.image-box img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  filter: brightness(1.95);
}

.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ─── Branding & Titles ─── */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease-out both;
  z-index: 1;
}

@media (max-width: 768px) {
  .logo-section {
    margin-bottom: 16px;
  }
}

.logo-image {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(24, 139, 255, 0.35));
  animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .logo-image {
    height: 44px;
  }
}

.headline {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 12px 0;
  text-align: center;
  animation: fadeUp 0.6s ease-out 0.1s both;
  z-index: 1;
}

@media (max-width: 768px) {
  .headline {
    font-size: 18px;
    margin: 0 0 8px 0;
  }
}

.tagline {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.6px;
  margin: 0 0 24px 0;
  text-align: center;
  animation: fadeUp 0.6s ease-out 0.15s both;
  z-index: 1;
}

@media (max-width: 768px) {
  .tagline {
    font-size: 13px;
    margin: 0 0 16px 0;
  }
}

.overlay-image-wrapper {
  width: 100%;
  max-width: 250px;
  margin: 10px 0 20px 0;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.overlay-image-wrapper img {
  width: 100%;
  height: auto;
  filter: brightness(1.95) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.section-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  animation: fadeUp 0.6s ease-out 0.25s both;
  z-index: 1;
}

@media (max-width: 768px) {
  .section-label {
    font-size: 11px;
    margin: 0 0 12px 0;
  }
}

/* ─── Cards Row & Glass Cards ─── */
.cards-row {
  display: flex;
  gap: 28px;
  z-index: 1;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

@media (max-width: 768px) {
  .cards-row {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 36px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 139, 255, 0.25);
  box-shadow: 0 20px 60px rgba(24, 139, 255, 0.1);
}

@media (max-width: 768px) {
  .glass-card {
    min-width: unset;
    width: 100%;
    padding: 24px 20px;
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #188bff 0%, #0066cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(24, 139, 255, 0.3);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.card-description {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  margin: 0;
  max-width: 260px;
}

/* ─── Store Buttons ─── */
.store-buttons-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .store-buttons-row {
    flex-direction: column;
    align-items: center;
  }
}

.store-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  min-width: 0;
  text-decoration: none;
}

.store-button:hover {
  background: rgba(24, 139, 255, 0.15);
  border-color: rgba(24, 139, 255, 0.4);
  transform: scale(1.03);
}

.store-button:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .store-button {
    width: 100%;
    justify-content: center;
  }
}

.store-button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-button-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  line-height: 1.2;
}

.store-button-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ─── TV Links Grid ─── */
.tv-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.tv-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tv-link:hover {
  background: rgba(24, 139, 255, 0.12);
  border-color: rgba(24, 139, 255, 0.3);
  transform: translateX(2px);
}

.tv-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ─── Card Divider ─── */
.card-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(24, 139, 255, 0.3) 30%,
    rgba(24, 139, 255, 0.3) 70%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .card-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(24, 139, 255, 0.3) 30%,
      rgba(24, 139, 255, 0.3) 70%,
      transparent 100%
    );
  }
}
