/* ============================================================
   SALAS — directory of chat rooms (WhatsApp-style list). Opens
   each room in /chat?room=<name>.
   ============================================================ */
:root {
  --sl-card: #14151d;
  --sl-line: rgba(255, 255, 255, 0.07);
  --sl-muted: #8b90a0;
}

.sl-content { max-width: 760px; margin: 0 auto; padding: 18px 16px 80px; }
.sl-new { margin-left: auto; padding: 7px 13px; border-radius: 999px; text-decoration: none; font-size: 0.82rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7c3aed, #22d3ee); }

.sl-search { position: relative; margin-bottom: 14px; }
.sl-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--sl-muted); stroke-width: 2; }
.sl-search input { width: 100%; padding: 12px 14px 12px 42px; border-radius: 14px; border: 1px solid var(--sl-line); background: var(--sl-card); color: var(--text-primary); font-size: 0.9rem; }
.sl-search input:focus { outline: none; border-color: rgba(124, 58, 237, 0.5); }

.sl-list { display: flex; flex-direction: column; gap: 4px; }

.sl-row {
  display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 14px;
  text-decoration: none; color: var(--text-primary); cursor: pointer;
  border: 1px solid transparent; transition: background .14s ease, border-color .14s ease;
}
.sl-row:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--sl-line); }

.sl-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 1.45rem; background: rgba(124, 58, 237, 0.16); border: 1px solid rgba(124, 58, 237, 0.22);
}
.sl-body { flex: 1; min-width: 0; }
.sl-name { font-weight: 700; font-size: 0.98rem; }
.sl-name .hash { color: var(--sl-muted); margin-right: 1px; }
.sl-desc { font-size: 0.84rem; color: var(--sl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.sl-count {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--sl-line); color: var(--sl-muted);
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sl-count .dot { width: 7px; height: 7px; border-radius: 50%; background: #3a3f4d; }
.sl-count.is-live { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.34); color: #86efac; }
.sl-count.is-live .dot { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }

.sl-skel { color: var(--sl-muted); font-size: 0.9rem; padding: 24px 8px; text-align: center; }
.sl-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 20px; color: var(--sl-muted); text-align: center; }
.sl-empty-ic { font-size: 2.6rem; }
