/* ============================================================
 *  SKELETON LOADERS  (shared, site-wide)
 * ------------------------------------------------------------
 *  Lightweight shimmer placeholders shown while async lists
 *  load, instead of a blank panel or "Loading…" text. Used by:
 *    - the chat widget conversation list  (chat-widget.hbs)
 *    - the /social/chat sidebar            (chat-main.js)
 *    - the activity feed dropdown          (activity-panel.js)
 *
 *  Loaded globally from views/partials/menu.hbs so every surface
 *  can reference the same classes. The shimmer is a single
 *  transform-animated overlay (cheap, GPU-friendly) and respects
 *  prefers-reduced-motion.
 * ============================================================ */

.skel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.09) 50%,
      transparent);
  animation: skel-shimmer 1.25s ease-in-out infinite;
}

@keyframes skel-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ---- Generic shapes ---- */
.skel-circle {
  border-radius: 50%;
}

.skel-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.skel-line {
  display: block;
  height: 11px;
  border-radius: 6px;
}

.skel-line.is-title {
  width: 58%;
}

.skel-line.is-text {
  width: 38%;
}

/* ---- Generic list row (avatar + two text lines) ---- */
.skel-conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
}

.skel-conv-lines {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .skel::after {
    animation: none;
  }
}