/* BITS - Wallets page
   Loaded after style.css and technology.css; reuses their hero, card, codeblock and check-list styles.
*/

/* ——— Hero release track ——— */
.release-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 44rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  position: relative;
}

.release-track::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--bits-lime), var(--bits-cyan) 50%, rgba(41, 77, 221, 0.6));
  z-index: 0;
}

.release {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.release-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: var(--bits-cyan);
  background: #050913;
  border: 2px solid rgba(59, 239, 255, 0.5);
}

.release--live .release-icon {
  color: #041018;
  background: var(--bits-gradient-cta);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(219, 230, 76, 0.45);
}

.release-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.release-when {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.release--live .release-when { color: var(--bits-lime); }

.section-head .eyebrow .pill {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ——— Downloads ——— */
.downloads {
  display: grid;
  gap: 1.25rem;
}

.download {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem;
}

.download:hover { transform: none; }

.download-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.download h3 { font-size: 1.4rem; margin: 0; }

.download-sub {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Full-colour OS logos on a light tile so they read from across the room */
.os-logo {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, #ffffff, #e6ecf5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.os-logo svg { width: 2.6rem; height: 2.6rem; }

.download--windows .os-logo { box-shadow: 0 0 28px rgba(0, 164, 239, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35); }
.download--macos .os-logo { box-shadow: 0 0 28px rgba(253, 184, 39, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35); }
.download--linux .os-logo { box-shadow: 0 0 28px rgba(245, 180, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35); }
.download--rpi .os-logo { box-shadow: 0 0 28px rgba(197, 26, 74, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35); }

/* "Recommended for you": shown on the card matching the visitor's computer (main.js) */
.recommended-pill {
  display: none;
  grid-column: 1 / -1;
  justify-self: start;
}

.download.is-recommended {
  background:
    linear-gradient(160deg, rgba(219, 230, 76, 0.12) 0%, #0b1220 50%, #070b14 100%) padding-box,
    linear-gradient(140deg, rgba(219, 230, 76, 0.9), rgba(116, 196, 101, 0.45) 50%, rgba(59, 239, 255, 0.55)) border-box;
  box-shadow: 0 0 40px rgba(219, 230, 76, 0.12);
}

.download.is-recommended .recommended-pill { display: inline-block; }

.variant {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(59, 239, 255, 0.14);
}

.variant.is-recommended { border-color: rgba(219, 230, 76, 0.6); }

.variant-name {
  font-weight: 600;
  color: var(--bits-text) !important;
}

.variant-name span {
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.btn-dl {
  justify-content: center;
  width: 100%;
}

.btn-dl .ico {
  width: 1.15rem;
  height: 1.15rem;
}

.btn.is-pending {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* inline flow so long file names wrap with the icon and size pill instead of stacking */
.file-meta {
  font-size: 0.82rem !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  overflow-wrap: anywhere;
}

.file-meta .ico {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.35rem;
  vertical-align: -0.15rem;
  color: var(--bits-cyan);
}

.file-meta .file-size { margin-left: 0.4rem; }

.file-size {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bits-lime);
  background: rgba(219, 230, 76, 0.1);
}

.file-size:empty { display: none; }

.checksum {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  background: #03060c;
  border: 1px solid rgba(59, 239, 255, 0.2);
}

.checksum-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
}

.checksum code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--bits-text);
  word-break: break-all;
}

.copy-btn {
  align-self: start;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--bits-cyan);
  background: rgba(41, 77, 221, 0.15);
  border: 1px solid rgba(59, 239, 255, 0.4);
  transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover,
.copy-btn.is-done {
  color: #041018;
  background: var(--bits-lime);
  border-color: var(--bits-lime);
}

.alt-link,
.sums-link {
  justify-self: start;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bits-cyan);
  border-bottom: 1px solid rgba(59, 239, 255, 0.35);
}

.alt-link:hover,
.sums-link:hover {
  color: var(--bits-lime);
  border-bottom-color: var(--bits-lime);
}

.sums-link { margin-top: auto; }

.hint {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.extras {
  border-radius: 1rem;
  border: 1px dashed rgba(59, 239, 255, 0.25);
}

.extras summary {
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
}

.extra-files {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem;
}

.extra-files li {
  display: grid;
  gap: 0.1rem;
}

.extra-files a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bits-cyan);
}

.extra-files a:hover { color: var(--bits-lime); }

.extra-what {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.extras-note {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.all-files {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 900px) {
  .downloads { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

.desktop-details {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.desktop-details > .card {
  padding: 1.75rem;
}

.desktop-details > .card:hover { transform: none; }

.howto {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.6;
}

.howto li::marker { color: var(--bits-lime); font-weight: 700; }

@media (min-width: 900px) {
  .desktop-details { grid-template-columns: 1fr 1fr; }
}

.verify {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 1.75rem;
}

.verify:hover { transform: none; }

.verify .rule-icon { margin-bottom: 1rem; }

.verify-cmds {
  display: grid;
  gap: 0.75rem;
  align-content: center;
}

@media (min-width: 900px) {
  .verify { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
}

/* ——— Coming next ——— */
.upcoming {
  display: grid;
  gap: 1.25rem;
}

.soon {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.75rem;
}

.soon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.soon h3 { font-size: 1.35rem; margin: 0; }

.soon-date {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(219, 230, 76, 0.08);
  border: 1px solid rgba(219, 230, 76, 0.35);
}

.soon-date strong {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bits-lime) !important;
}

.soon-date span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 860px) {
  .upcoming { grid-template-columns: 1fr 1fr; }
}

/* ——— Safety ——— */
.safety {
  display: grid;
  gap: 1rem;
}

.safety .rule-icon { margin-bottom: 0.5rem; }

@media (min-width: 700px) {
  .safety { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .safety { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 520px) {
  .release-name { font-size: 0.8rem; }
  .release-when { font-size: 0.72rem; text-align: center; }
}

