/* ════════════════════════════════════════════════════════════════
   Download page — /download
   ════════════════════════════════════════════════════════════════ */

.dl-page {
  padding: 70px 0 90px;
}

/* ── Section ─────────────────────────────────────────────────────── */
.dl-section {
  margin-bottom: 44px;
}
.dl-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dl-section-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--theme-color2), 1) 0%, rgba(var(--theme-color), 1) 100%);
}
.dl-section-head h2 {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.dl-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #8b90a0;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 11px;
  border-radius: 999px;
}

/* ── Cards grid ──────────────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.dl-card {
  background: #15161e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.dl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--theme-color), 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.dl-card-img {
  margin: -20px -20px 2px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  height: 160px;
  background: #0e0f15;
}
.dl-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.dl-card:hover .dl-card-img img {
  transform: scale(1.04);
}
.dl-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}
.dl-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  color: rgba(var(--theme-color), 1);
  background: rgba(var(--theme-color), 0.12);
  border: 1px solid rgba(var(--theme-color), 0.22);
}
.dl-card-info {
  min-width: 0;
}
.dl-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  word-break: break-word;
}
.dl-card-host {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #8b90a0;
}
.dl-card-host i {
  font-size: 10px;
}

/* ── Card meta ───────────────────────────────────────────────────── */
.dl-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.dl-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9aa0b0;
}
.dl-card-meta i {
  font-size: 11px;
  color: rgba(var(--theme-color), 0.9);
}

/* ── Card buttons ────────────────────────────────────────────────── */
.dl-card-btns {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.dl-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(to right, rgba(var(--theme-color2), 1) 0%, rgba(var(--theme-color), 1) 100%);
  transition: filter .15s ease, transform .15s ease;
}
.dl-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  color: #fff !important;
}
.dl-btn-alt {
  background: transparent;
  border-color: rgba(var(--theme-color), 0.5);
  color: rgba(var(--theme-color), 1) !important;
}
.dl-btn-alt:hover {
  background: rgba(var(--theme-color), 0.1);
  color: rgba(var(--theme-color), 1) !important;
}
.dl-btn-disabled {
  background: rgba(255, 255, 255, 0.04);
  color: #61656f !important;
  cursor: default;
  pointer-events: none;
}

/* ── Empty state ─────────────────────────────────────────────────── */
.dl-empty {
  text-align: center;
  background: #15161e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 54px 30px;
  margin-bottom: 44px;
}
.dl-empty i {
  font-size: 42px;
  color: rgba(var(--theme-color), 1);
  margin-bottom: 16px;
}
.dl-empty h3 {
  font-size: 19px;
  color: #fff;
  margin: 0 0 8px;
}
.dl-empty p {
  font-size: 14px;
  color: #9aa0b0;
  margin: 0;
}

/* ── Quick start steps (page header) ─────────────────────────────── */
.dl-steps {
  margin-bottom: 48px;
}
.dl-steps-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 30px;
}
.dl-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.dl-step {
  display: flex;
  gap: 15px;
  background: #15161e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 20px;
}
.dl-step-num {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--theme-color2), 1) 0%, rgba(var(--theme-color), 1) 100%);
}
.dl-step-body h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0 6px;
}
.dl-step-body p {
  font-size: 12.5px;
  color: #9aa0b0;
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .dl-page { padding: 45px 0 60px; }
  .dl-title { font-size: 30px; }
  .dl-grid { grid-template-columns: 1fr; }
}
