/* ═══════════════════════════════════════════════════════════════════
   HYPERSPACE DESKTOP TERMINAL SECTION
   Cross-platform desktop terminal companion for HyperSpace-AGI mesh.
   Reuses .hs-* primitives from theme.css where they fit.
   ═══════════════════════════════════════════════════════════════════ */

#hyperspace-terminal-section {
  display: none;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(80, 160, 220, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(200, 240, 90, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #080a0e 0%, #0a0c10 100%);
  border-top: 1px solid rgba(80, 160, 220, 0.08);
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
#hyperspace-terminal-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 160, 220, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 160, 220, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Heading row — reuses .hs-title-row from theme.css; add the terminal emoji accent */
.hst-icon {
  font-size: 36px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(80, 160, 220, 0.5));
}

/* CTA row — download buttons for the three platforms */
.hst-downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hst-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(80, 160, 220, 0.25);
  background: rgba(80, 160, 220, 0.08);
  color: var(--fg);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.hst-download-btn:hover {
  background: rgba(80, 160, 220, 0.15);
  border-color: rgba(80, 160, 220, 0.45);
  transform: translateY(-1px);
}
.hst-download-btn .hst-platform {
  font-size: 18px;
  line-height: 1;
}
.hst-download-btn .hst-ext {
  font-size: 11px;
  color: rgba(80, 160, 220, 0.7);
  letter-spacing: 0.04em;
}

/* Source link under downloads — mirrors the GitHub badge style */
.hst-source-row {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.hst-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12px;
  color: rgba(200, 240, 90, 0.7);
  text-decoration: none;
  border: 1px solid rgba(200, 240, 90, 0.15);
  background: rgba(200, 240, 90, 0.04);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.hst-source-link:hover {
  color: #c8f05a;
  border-color: rgba(200, 240, 90, 0.3);
  background: rgba(200, 240, 90, 0.08);
}

/* Bilingual data-it / data-en toggle (matches .faq answer-text pattern) */
html[lang=en] #hyperspace-terminal-section [data-it] { display: none; }
html[lang=it] #hyperspace-terminal-section [data-en] { display: none; }

@media (max-width: 680px) {
  #hyperspace-terminal-section { padding: 36px 16px 48px; }
  .hst-downloads { grid-template-columns: 1fr; gap: 10px; }
}
