/* Roomove-style compact engagement bar */
.wm-engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 0;
  padding: 7px 12px;
  background: #f0f0f0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
  color: #888;
  line-height: 1.2;
}

.wm-engagement-time,
.wm-engagement-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wm-engagement-votes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.wm-engagement button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  padding: 2px 4px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  color: #888;
  line-height: 1.2;
  transition: opacity 0.15s ease;
}

.wm-engagement button:hover {
  opacity: 0.85;
}

.wm-engagement button.is-voted {
  font-weight: 600;
}

.wm-eng-like,
.wm-eng-like .wm-eng-likes {
  color: #5a9e4a;
}

.wm-eng-dislike,
.wm-eng-dislike .wm-eng-dislikes {
  color: #c0392b;
}

.wm-eng-like:hover,
.wm-eng-like.is-voted {
  color: #4a8f3c;
}

.wm-eng-dislike:hover,
.wm-eng-dislike.is-voted {
  color: #a93226;
}

.wm-eng-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  line-height: 0;
  overflow: visible;
}

.wm-eng-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  overflow: visible;
}

/* Thumbs need a bit more room so the full shape is visible */
.wm-eng-icon--vote {
  width: 16px;
  height: 16px;
}

.wm-eng-icon--vote svg {
  width: 16px;
  height: 16px;
}

/* Cards on home / gallery */
.wm-post-card,
.wm-gallery-card {
  display: flex;
  flex-direction: column;
}

.wm-post-card .wm-engagement,
.wm-gallery-card .wm-engagement {
  margin: 0;
  border-top: 1px solid #e8e8e8;
  background: #f0f0f0;
  font-size: 11px;
  padding: 6px 10px;
  gap: 8px 12px;
}

.wm-post-card .wm-engagement-votes button,
.wm-gallery-card .wm-engagement-votes button {
  pointer-events: auto;
}

.wm-post-card .wm-engagement button,
.wm-gallery-card .wm-engagement button {
  position: relative;
  z-index: 2;
}

/* Blog archive (Accepta theme) */
body.home .wm-engagement,
body.blog .wm-engagement,
body.archive .wm-engagement {
  margin: 0 1rem 1rem;
}

.single .wm-engagement {
  margin: 0 0 1.25rem;
  border-radius: 2px;
}

.single .entry-content > .wm-engagement:first-child,
.single .entry-content > .wm-engagement--interactive:first-child {
  margin-top: 0;
}
