/* ==============================
   BLOG POST ACTIONS (GLOBAL)
   ============================== */
.blog-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==============================
   LIKE CONTAINER
   ============================== */
.zf-like-simple {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==============================
   HEART BUTTON (BASE)
   ============================== */
.zf-heart {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  -webkit-tap-highlight-color: transparent;
}

/* ==============================
   HEART ICON (BASE / FEED)
   ============================== */
.zf-heart-svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #888;
  stroke-width: 2.2;
  transition:
    fill .2s ease,
    stroke .2s ease,
    transform .15s ease,
    filter .2s ease;
}

/* liked state */
.zf-heart-svg.liked {
  fill: #e53935;
  stroke: #e53935;
  filter: drop-shadow(0 0 6px rgba(229,57,53,.4));
}

/* tap feedback */
.zf-heart:active .zf-heart-svg {
  transform: scale(1.15);
}

/* ==============================
   RATING COUNT
   ============================== */
.rating-count {
  font-size: 13px;
  font-weight: 500;
  color: #777;
  line-height: 1;
  pointer-events: none;
  margin-left: 4px;
}

/* darken when liked */
.zf-heart-svg.liked + .rating-count {
  color: #444;
}

/* hide rating count in feed */
.blog-post-actions .rating-count {
  display: none !important;
}

/* hide native DLE plus */
.zf-rate-plus {
  display: none !important;
}

/* =====================================================
   SHORT STORY FOOTER
   ===================================================== */
.zf-short-footer {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 26px;
  padding-bottom: 12px; /* space for divider */
}

/* divider at bottom */
.zf-short-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.22),
    transparent
  );
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

/* right side: share + like */
.zf-short-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* =========================
   HEART — SHORT FOOTER ONLY
   ========================= */
.zf-short-footer .zf-heart {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
}

.zf-short-footer .zf-heart-svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.8;
  stroke: #9aa0a6;
  fill: rgba(229,57,53,0.04);
  transform: scale(1.08);
}

.zf-short-footer .zf-heart-svg.liked {
  fill: #e53935;
  stroke: #e53935;
  transform: scale(1.12);
}

.zf-short-footer .zf-heart:active {
  background: rgba(229,57,53,0.1);
}

.zf-short-footer .zf-heart:active .zf-heart-svg {
  transform: scale(1.2);
}

/* =========================
   SHARE BUTTON
   ========================= */
.zf-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  -webkit-tap-highlight-color: transparent;
}

.zf-share-btn:hover {
  color: #111;
}

.zf-share-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* =========================
   SAFETY OVERRIDE
   ========================= */
.blog-post .zf-short-footer {
  justify-content: flex-end !important;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {
  .zf-short-footer {
    margin-top: 14px;
    margin-bottom: 22px;
  }
}
