/* ===== Download Page - Redesigned ===== */

.download-page {
  padding: 0 0 20px;
}

/* ---- Header ---- */
.jw-section .download-header {
  text-align: center;
  margin-bottom: 40px;
}

.jw-section .download-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}

.jw-section .download-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin: 0;
}

.jw-section .download-divider {
  width: 56px;
  height: 3px;
  background: #E77800;
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---- Grid ---- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Card ---- */
.platform-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px 18px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* Disabled card (iOS coming soon) */
.platform-card--disabled {
  opacity: 0.85;
}

.platform-card--disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ---- Icon wrapper (colored circle) ---- */
.platform-card__icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.platform-card__icon-wrapper--windows {
  background: linear-gradient(135deg, #00a4ef, #0078d4);
}

.platform-card__icon-wrapper--android {
  background: linear-gradient(135deg, #a4c639, #6d8f1e);
}

.platform-card__icon-wrapper--ios {
  background: linear-gradient(135deg, #ddd, #bbb);
}

.platform-card__icon-wrapper--macos {
  background: linear-gradient(135deg, #999, #555);
}

.platform-card__icon-wrapper--linux {
  background: linear-gradient(135deg, #fcc624, #e5a700);
}

/* ---- SVG icon (mask-image inside wrapper) ---- */
.platform-card__icon {
  width: 26px;
  height: 26px;
  background: #fff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.platform-card__icon--windows {
  mask-image: url('/assets/images/icons/windows-logo.svg');
  -webkit-mask-image: url('/assets/images/icons/windows-logo.svg');
}

.platform-card__icon--android {
  mask-image: url('/assets/images/icons/android-logo.svg');
  -webkit-mask-image: url('/assets/images/icons/android-logo.svg');
}

.platform-card__icon--ios {
  mask-image: url('/assets/images/icons/apple-logo.svg');
  -webkit-mask-image: url('/assets/images/icons/apple-logo.svg');
}

.platform-card__icon--macos {
  mask-image: url('/assets/images/icons/apple-logo.svg');
  -webkit-mask-image: url('/assets/images/icons/apple-logo.svg');
}

.platform-card__icon--linux {
  mask-image: url('/assets/images/icons/linux-logo.svg');
  -webkit-mask-image: url('/assets/images/icons/linux-logo.svg');
}

/* ---- Title & Version ---- */
.platform-card__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 4px;
}

.platform-card__version {
  font-size: 1.2rem;
  color: #aaa;
  margin: 0 0 20px;
}

/* ---- Badge (Coming Soon label) ---- */
.platform-card__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #E77800;
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Buttons ---- */
.platform-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.platform-card__btn {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.platform-card__btn--primary {
  background: #E77800;
  color: #fff;
}

.platform-card__btn--primary:hover {
  background: #BF6200;
  color: #fff;
}

.platform-card__btn--disabled {
  background: #f0f0f0;
  color: #bbb;
  cursor: default;
  pointer-events: none;
}

/* ---- Footer links ---- */
.platform-card__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1.2rem;
}

.platform-card__links a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.platform-card__links a:hover {
  color: #E77800;
  text-decoration: underline;
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .platform-card {
    padding: 24px 14px 20px;
  }

  .platform-card__icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .platform-card__icon {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}
