/* --------------------------------
   SOFTWARE DOWNLOAD PAGE
-------------------------------- */

/* --- Featured (New Version) Card --- */
.sw-featured {
  position: relative;
  margin-top: 10px;
}

.sw-badge {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF5782, #ff7e5f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 22px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 87, 130, 0.4);
}

.sw-card--new {
  border: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #457fca, #5691c8, #FF5782);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 40px rgba(69, 127, 202, 0.15), 0 2px 10px rgba(0, 0, 0, 0.06);
  padding-top: 35px;
}

.sw-header--new {
  background: linear-gradient(135deg, #457fca, #5691c8);
  color: #fff;
  padding: 14px 20px;
  border-radius: 4px;
  margin-bottom: 25px;
  position: relative;
}
.sw-header--new h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sw-header--new h3 i {
  margin-right: 6px;
}

.sw-version-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  vertical-align: middle;
}

/* Hero text area */
.sw-hero-text {
  text-align: center;
  padding: 10px 0 5px;
}
.sw-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.sw-sites {
  font-size: 1rem;
  color: #666;
  margin-bottom: 6px;
}
.sw-slogan {
  font-size: 1rem;
  color: #9599A7;
}

/* Feature highlights row */
.sw-highlights {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}
.sw-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0f6ff, #fdf2f5);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #457fca;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sw-highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 127, 202, 0.15);
}
.sw-highlight-item i {
  font-size: 1rem;
  color: #FF5782;
}

/* Download button enhancements */
.sw-download-btn {
  font-size: 1.05rem;
  padding: 14px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sw-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 130, 0.35);
}
.sw-download-btn i {
  margin-right: 6px;
}

/* --- Legacy Version Section --- */
.sw-legacy-wrapper {
  margin-top: 50px;
  padding-bottom: 10px;
}

.sw-legacy-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.sw-divider-line {
  flex: 1;
  height: 1px;
  background: #d0d5dd;
}
.sw-divider-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9599A7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.sw-card--legacy {
  opacity: 0.75;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
  transition: opacity 0.3s ease;
}
.sw-card--legacy:hover {
  opacity: 0.9;
}

.sw-header--legacy {
  background: #7a8a9e;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  user-select: none;
}
.sw-header--legacy:hover {
  background: #687d94;
}
.sw-header--legacy h3 {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-header--legacy h3 i:first-child {
  margin-right: 6px;
}

/* Toggle icon */
.sw-toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  margin-left: auto;
}
.sw-toggle-icon.sw-rotated {
  transform: rotate(-90deg);
}

/* Collapsible content */
.sw-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
#legacy-content:not(.sw-collapsed) {
  max-height: 800px;
  padding-top: 20px;
}

/* Legacy button toned down */
.sw-card--legacy .c-btn--action {
  background: #7a8a9e;
  background-image: linear-gradient(to right, #7a8a9e 0%, #93a3b5 51%, #7a8a9e 100%);
  background-size: 200% auto;
}
.sw-card--legacy .c-btn--action:hover {
  background-position: right center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .sw-highlights {
    gap: 10px;
  }
  .sw-highlight-item {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .sw-tagline {
    font-size: 1.25rem;
  }
  .sw-header--new h3,
  .sw-header--legacy h3 {
    font-size: 1.1rem;
  }
  .sw-badge {
    font-size: 0.65rem;
    padding: 4px 16px;
  }
}
