/* ============================================================
   motex-hub.css — Hub visiteur MoteX
   v1 — s'appuie sur design-system.css (tokens + .badge + .section-*)
        Prefixe .mxh- (distinct de .mtx- du jeu).
   ============================================================ */

.mxh { padding: var(--space-8) 0 var(--space-12); }

/* ===== Hero ===== */
.mxh-hero { text-align: center; margin-bottom: var(--space-10); }

.mxh-logo { margin-bottom: var(--space-4); }
.mxh-logo .card-logo { vertical-align: middle; }

.mxh-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -1px;
  margin: 0;
}
.mxh-sub {
  color: var(--muted-2);
  font-size: .85rem;
  margin-top: var(--space-2);
}

/* ===== Sections ===== */
.mxh-sec { margin-bottom: var(--space-8); }

.mxh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

/* ===== Cartes ===== */
.mxh-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s ease;
}
.mxh-card:hover { transform: translateY(-4px); border-color: var(--border-2); }

.mxh-card--lead {
  background: linear-gradient(135deg, rgba(255, 60, 110, .10), rgba(255, 110, 180, .02));
  border-color: rgba(255, 60, 110, .3);
}
.mxh-card--lead:hover { border-color: var(--red); }

/* Carte live : icone a gauche, badge a droite */
.mxh-card--live {
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
}

.mxh-card--soon {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

/* ===== Icone ===== */
.mxh-icn {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 60, 110, .12);
  border: 1px solid rgba(255, 60, 110, .3);
  color: var(--red);
}
.mxh-icn svg { width: 21px; height: 21px; }
.mxh-icn--lg { width: 48px; height: 48px; }
.mxh-icn--lg svg { width: 25px; height: 25px; }

/* ===== Corps ===== */
.mxh-body { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }

.mxh-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}
.mxh-desc {
  font-size: .8rem;
  color: var(--muted-2);
  line-height: 1.5;
}
.mxh-card:not(.mxh-card--live) .mxh-desc { min-height: 36px; }

/* ===== Pied de carte ===== */
.mxh-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.mxh-foot--col {
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0;
  flex-shrink: 0;
}
.mxh-note { font-size: .68rem; color: var(--gold); letter-spacing: .5px; }
.mxh-note--dim { color: var(--muted); }

/* ===== Paliers du mot du jour ===== */
.mxh-paliers { display: flex; align-items: center; gap: var(--space-1); }
.mxh-pal {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 209, 102, .25);
}
.mxh-pal.is-on { background: var(--gold); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .mxh-card--live { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .mxh-foot--col { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
