/* =============================================================
   download/download.css
   Uses the site's existing color tokens:
     #1a1a3e  — dark navy  (navbar/header backgrounds)
     #fdbb30  — gold       (primary accent, selections)
     #6666ff  — blue-purple (link accent used site-wide)
     #9a2732  — deep red   (used in style.css for emphasis)
   ============================================================= */

/* ── Page layout ─────────────────────────────────────────────── */
.download-page {
  padding: 40px 15px 60px;
}

/* ── Heading block ───────────────────────────────────────────── */
.dl-heading {
  text-align: left;
  margin-bottom: 32px;
}

.dl-heading .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a3e;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.dl-heading .section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #fdbb30;
  border-radius: 2px;
}

.dl-subhead {
  color: #555;
  margin-top: 12px;
  font-size: 0.95rem;
  /* max-width: 620px; */
  margin-left: auto;
  margin-right: auto;
}

/* ── Table wrapper ───────────────────────────────────────────── */
.dl-table-wrap {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 36px;
}

/* ── Table ───────────────────────────────────────────────────── */
.dl-table {
  margin-bottom: 0;
  font-size: 0.92rem;
  border-collapse: collapse;
}

/* Header row — dark navy matching reference image */
.dl-table thead tr {
  background-color: #1a1a3e;
  color: #ffffff;
}

.dl-table thead th {
  padding: 14px 16px;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  white-space: nowrap;
}

/* Body rows */
.dl-table tbody tr {
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}

.dl-table tbody tr:nth-child(even) {
  background-color: #f8f6ff;   /* very light tint of the blue-purple */
}

.dl-table tbody tr:hover {
  background-color: #fff7e0;   /* warm gold tint on hover */
}

.dl-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid #e8e6f0;
  color: #2c2c2c;
}

/* ── Filename column ─────────────────────────────────────────── */
.dl-filename {
  min-width: 180px;
}

.dl-link {
  color: #6666ff;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.dl-link:hover {
  color: #1a1a3e;
  text-decoration: underline;
}

.dl-icon {
  margin-right: 6px;
  color: #9a2732;
  font-size: 1rem;
}

/* ── Download button ─────────────────────────────────────────── */
.btn-dl {
  background-color: #fdbb30;
  border: none;
  color: #1a1a3e;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-dl:hover,
.btn-dl:focus {
  background-color: #1a1a3e;
  color: #fdbb30;
  text-decoration: none;
}

.btn-dl .fa {
  margin-right: 4px;
}

/* ── Download count badge ────────────────────────────────────── */
.dl-count {
  white-space: nowrap;
}

.dl-badge {
  background-color: #1a1a3e;
  color: #fdbb30;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

/* ── Date column ─────────────────────────────────────────────── */
.dl-date {
  white-space: nowrap;
  color: #555;
  font-size: 0.85rem;
}

/* ── Description column ──────────────────────────────────────── */
.dl-desc {
  color: #444;
  line-height: 1.5;
  min-width: 200px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.dl-empty {
  background-color: #fff7e0;
  border-left: 4px solid #fdbb30;
  color: #5a4300;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
}

/* ── Info box (mirrors reference "Next Release" section) ──────── */
.dl-info-box {
  background-color: #f4f3fb;
  border-top: 4px solid #1a1a3e;
  border-radius: 0 0 6px 6px;
  padding: 24px 28px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.dl-info-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a3e;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fdbb30;
  display: inline-block;
}

.dl-info-list {
  padding-left: 20px;
  margin-bottom: 0;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.8;
}

.dl-info-list li {
  margin-bottom: 6px;
}

.dl-info-list a {
  color: #6666ff;
  text-decoration: none;
}

.dl-info-list a:hover {
  text-decoration: underline;
  color: #1a1a3e;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 767px) {
  .dl-table thead th:nth-child(5),
  .dl-table tbody td:nth-child(5) {
    display: none;          /* hide description on small screens */
  }

  .dl-heading .section-heading {
    font-size: 1.5rem;
  }

  .dl-info-box {
    padding: 18px 16px;
  }
}
