/* =========================================================
   AConfession X-like Feed Cards
   Path: public_html/assets/css/feed-x.css
   Scope: home feed + search results only.
   ========================================================= */

.acf-feed-card.is-x-feed,
.acf-search-page .acf-feed-card.is-x-feed {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 24px;
  padding: 13px 13px 11px;
  background:
    radial-gradient(180px 110px at 0 0, rgba(6,182,212,.095), transparent 74%),
    radial-gradient(180px 120px at 100% 0, rgba(124,58,237,.12), transparent 74%),
    linear-gradient(180deg, rgba(15,23,42,.78), rgba(3,7,18,.86));
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  min-width: 0;
}

.acf-feed-card.is-x-feed:active,
.acf-search-page .acf-feed-card.is-x-feed:active {
  transform: translateY(1px);
}

.acf-feed-card.is-x-feed .acf-feed-link,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.acf-feed-card.is-x-feed .acf-feed-head,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.acf-feed-card.is-x-feed .acf-feed-avatar-wrap,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(124,58,237,.55), rgba(6,182,212,.38));
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}

.acf-feed-card.is-x-feed .acf-feed-avatar-wrap.is-ghost,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-avatar-wrap.is-ghost {
  background: linear-gradient(135deg, rgba(148,163,184,.32), rgba(6,182,212,.20));
}

.acf-feed-card.is-x-feed .acf-feed-avatar,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-avatar {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  background: rgba(15,23,42,.90);
}

.acf-feed-card.is-x-feed .acf-feed-head-body,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-head-body {
  display: block;
  min-width: 0;
}

.acf-feed-card.is-x-feed .acf-feed-meta,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: #8fa0ba;
  font-size: 12px;
}

.acf-feed-card.is-x-feed .acf-feed-meta.is-no-author,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-meta.is-no-author {
  margin-bottom: 7px;
}

.acf-feed-card.is-x-feed .acf-feed-author-line,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.acf-feed-card.is-x-feed .acf-feed-author-name,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
}

.acf-feed-card.is-x-feed .acf-feed-author-name.is-ghost,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-name.is-ghost {
  color: #e5e7eb;
}

.acf-feed-card.is-x-feed .acf-feed-author-handle,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-handle {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  unicode-bidi: plaintext;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 780;
}

.acf-feed-card.is-x-feed .acf-feed-date,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-date {
  direction: ltr;
  unicode-bidi: plaintext;
  color: #7f8da5;
  font-size: 11px;
  font-weight: 760;
}

.acf-feed-card.is-x-feed .acf-feed-date:before,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-date:before {
  content: "·";
  margin: 0 2px;
  color: #64748b;
}

.acf-feed-card.is-x-feed .acf-feed-hash,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-hash {
  max-width: 126px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: plaintext;
  color: #67e8f9;
  font-size: 11.5px;
  font-weight: 950;
  border: 1px solid rgba(103,232,249,.14);
  background: rgba(6,182,212,.06);
  border-radius: 999px;
  padding: 3px 7px;
  line-height: 1.35;
}

.acf-feed-card.is-x-feed .acf-feed-text,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-text {
  display: block;
  margin: 10px 0 0;
  color: #f8fafc;
  font-size: 15.6px;
  line-height: 1.72;
  font-weight: 730;
  overflow-wrap: anywhere;
  white-space: normal;
}

.acf-feed-card.is-x-feed .acf-feed-bottom,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.acf-feed-card.is-x-feed .acf-feed-stats,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.acf-feed-card.is-x-feed .acf-feed-stat,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat,
.acf-feed-card.is-x-feed .acf-feed-stats span,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats span {
  min-width: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(148,163,184,.10);
  border-radius: 999px;
  background: rgba(15,23,42,.45);
  color: #9fb0c8;
  line-height: 1;
}

.acf-feed-card.is-x-feed .acf-feed-stat i,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat i {
  width: 15px;
  min-width: 15px;
  text-align: center;
  font-style: normal;
  line-height: 1;
  opacity: .88;
}

.acf-feed-card.is-x-feed .acf-feed-stat.is-views i:before,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat.is-views i:before { content: "👁"; font-size: 12px; }

.acf-feed-card.is-x-feed .acf-feed-stat.is-comments i:before,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat.is-comments i:before { content: "💬"; font-size: 12px; }

.acf-feed-card.is-x-feed .acf-feed-stat.is-reactions i:before,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat.is-reactions i:before { content: "✦"; font-size: 13px; color: #a78bfa; }

.acf-feed-card.is-x-feed .acf-feed-stat b,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat b,
.acf-feed-card.is-x-feed .acf-feed-stats b,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats b {
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 950;
}

.acf-feed-card.is-x-feed .acf-feed-stat small,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat small,
.acf-feed-card.is-x-feed .acf-feed-stats small,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats small {
  display: none;
}

.acf-feed-card.is-x-feed .acf-feed-save,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save {
  position: relative;
  overflow: visible;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 999px;
  background: rgba(15,23,42,.56);
  display: grid;
  place-items: center;
  padding: 0;
  color: #cbd5e1;
  transition: transform .16s ease, background .16s ease, opacity .16s ease, border-color .16s ease;
}

.acf-feed-card.is-x-feed .acf-feed-save img,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save img {
  width: 19px;
  height: 19px;
  display: block;
  opacity: .78;
  transform: scale(1);
  transition: opacity .16s ease, transform .16s ease, filter .16s ease;
}

.acf-feed-card.is-x-feed .acf-feed-save:active,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save:active {
  transform: scale(.94);
}

.acf-feed-card.is-x-feed .acf-feed-save.is-loading,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save.is-loading {
  opacity: .65;
  pointer-events: none;
}

.acf-feed-card.is-x-feed .acf-feed-save.is-saved,
.acf-feed-card.is-x-feed .acf-feed-save.saved,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save.is-saved,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save.saved {
  border-color: rgba(34,197,94,.45);
  background: radial-gradient(circle at 50% 35%, rgba(34,197,94,.22), rgba(34,197,94,.09));
  box-shadow: 0 0 0 1px rgba(34,197,94,.16), 0 10px 28px rgba(34,197,94,.12);
}

.acf-feed-card.is-x-feed .acf-feed-save.is-saved img,
.acf-feed-card.is-x-feed .acf-feed-save.saved img,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save.is-saved img,
.acf-search-page .acf-feed-card.is-x-feed .acf-feed-save.saved img {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 9px rgba(34,197,94,.50));
}

.acf-feed-card.is-x-feed.is-saved,
.acf-search-page .acf-feed-card.is-x-feed.is-saved {
  border-color: rgba(34,197,94,.18);
}

@media (max-width: 420px) {
  .acf-feed-card.is-x-feed,
  .acf-search-page .acf-feed-card.is-x-feed {
    border-radius: 22px;
    padding: 12px 11px 10px;
  }

  .acf-feed-card.is-x-feed .acf-feed-head,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .acf-feed-card.is-x-feed .acf-feed-avatar-wrap,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-avatar-wrap {
    width: 42px;
    height: 42px;
  }

  .acf-feed-card.is-x-feed .acf-feed-avatar,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-avatar {
    width: 38px;
    height: 38px;
  }

  .acf-feed-card.is-x-feed .acf-feed-meta,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-meta {
    gap: 6px;
  }

  .acf-feed-card.is-x-feed .acf-feed-author-name,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-name {
    max-width: 92px;
    font-size: 12.7px;
  }

  .acf-feed-card.is-x-feed .acf-feed-author-handle,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-handle {
    max-width: 68px;
    font-size: 11px;
  }

  .acf-feed-card.is-x-feed .acf-feed-hash,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-hash {
    max-width: 112px;
    font-size: 10.8px;
  }

  .acf-feed-card.is-x-feed .acf-feed-text,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-text {
    margin-top: 9px;
    font-size: 15.2px;
    line-height: 1.70;
  }

  .acf-feed-card.is-x-feed .acf-feed-bottom,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-bottom {
    gap: 7px;
  }

  .acf-feed-card.is-x-feed .acf-feed-stats,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats {
    gap: 5px;
  }

  .acf-feed-card.is-x-feed .acf-feed-stat,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat,
  .acf-feed-card.is-x-feed .acf-feed-stats span,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats span {
    height: 29px;
    padding: 0 8px;
  }

  .acf-feed-card.is-x-feed .acf-feed-save,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-save {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

@media (max-width: 340px) {
  .acf-feed-card.is-x-feed .acf-feed-author-handle,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-author-handle,
  .acf-feed-card.is-x-feed .acf-feed-date,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-date {
    display: none;
  }

  .acf-feed-card.is-x-feed .acf-feed-hash,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-hash {
    max-width: 96px;
  }

  .acf-feed-card.is-x-feed .acf-feed-stat,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-stat,
  .acf-feed-card.is-x-feed .acf-feed-stats span,
  .acf-search-page .acf-feed-card.is-x-feed .acf-feed-stats span {
    width: 34px;
    padding: 0;
  }
}
