/* Hub Mods / Downloads (/hub/mods e /hub/mods/downloads) — hero no mesmo
   padrão visual dos artigos do hub (glow radial + textura diagonal), tema
   verde-neon/violeta "hacker" pra combinar com o assunto (mods, clients de
   terceiros, downloads). Prefixo smd- (Slithermania Mods & Downloads). */

.smd-hero {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 160% at 10% -10%, rgba(57, 255, 152, 0.18), transparent 55%),
    radial-gradient(110% 160% at 105% -20%, rgba(167, 139, 250, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(10, 18, 14, 0.92), rgba(10, 12, 18, 0.97));
}

.smd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 28px);
  pointer-events: none;
}

.smd-hero-inner {
  position: relative;
}

.smd-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.smd-hero .hub-kicker {
  color: #39ff98;
}

.smd-hero h1 {
  margin: 0 0 8px;
  text-shadow: 0 0 24px rgba(57, 255, 152, 0.22);
}

.smd-hero-tag {
  margin: 0;
  color: #cfd6e4;
  font-size: 15px;
  max-width: 62ch;
}

.smd-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.12);
  color: #ded9fe;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.smd-hero-link:hover {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(167, 139, 250, 0.6);
  transform: translateY(-1px);
}

.smd-hero-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Cards de download (usado em /hub/mods/downloads) */
.smd-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.smd-download-card {
  --accent: #39ff98;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: center;
}

.smd-download-icon {
  font-size: 32px;
  line-height: 1;
}

.smd-download-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.smd-download-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.smd-download-card .btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .smd-download-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .smd-hero {
    padding: 22px 18px 18px;
  }
  .smd-hero-top {
    flex-direction: column;
  }
  .smd-hero-link {
    align-self: flex-start;
  }
}

/* Cards de mod: cabecalho com badges + botoes minimalistas de compartilhar
   e minimizar/maximizar. Todos os cards abrem recolhidos (ver hub-mods.html
   e hub-mods.js) pra manter a lista compacta tanto no PC quanto no celular. */
.smd-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.smd-card-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.smd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(110, 168, 254, 0.34);
  background: rgba(110, 168, 254, 0.10);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease;
}

.smd-icon-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.smd-icon-btn.share:hover {
  border-color: rgba(37, 211, 102, 0.42);
  background: rgba(37, 211, 102, 0.12);
}

.smd-icon-btn.toggle:hover {
  border-color: rgba(110, 168, 254, 0.55);
  background: rgba(110, 168, 254, 0.18);
}

.smd-toggle-chevron {
  transition: transform 160ms ease;
}

.smd-mod-card[data-collapsed="false"] .smd-toggle-chevron {
  transform: rotate(180deg);
}

.smd-card-body:not([hidden]) {
  display: grid;
  gap: 10px;
}

.hub-actions.center {
  justify-content: center;
}
