/* =========================================================
   AConfession Main/Home Feed UI
   Path: public_html/assets/css/main.css
   Scope: home page + public feed cards only.
   ========================================================= */
.acf-main-page {
  display: grid;
  gap: 12px;
  direction: rtl;
  text-align: right;
}

.acf-main-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 26px;
  padding: 16px 14px;
  margin: 8px 0 2px;
  background:
    radial-gradient(220px 160px at 100% -20%, rgba(124,58,237,.26), transparent 72%),
    radial-gradient(220px 160px at -20% 20%, rgba(6,182,212,.13), transparent 72%),
    linear-gradient(145deg, rgba(18,26,44,.88), rgba(7,10,18,.88));
  box-shadow: 0 14px 42px rgba(0,0,0,.28);
}

.acf-main-hero .eyebrow {
  margin: 0 0 5px;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 950;
}

.acf-main-hero h1 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.28;
  letter-spacing: -.35px;
  color: #fff;
}

.acf-main-hero p {
  margin: 0;
  color: #aab5c8;
  line-height: 1.8;
  font-size: 14px;
}

.acf-main-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
}

.acf-main-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 5px;
  margin: 2px 0 0;
  scrollbar-width: none;
  direction: rtl;
}

.acf-main-tabs::-webkit-scrollbar {
  display: none;
}

.acf-main-tabs a {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #aab5c8;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.acf-main-tabs a.active {
  color: #fff;
  border-color: rgba(124,58,237,.55);
  background: linear-gradient(135deg, rgba(124,58,237,.42), rgba(6,182,212,.20));
}

.acf-main-feed {
  display: grid;
  gap: 10px;
}

.acf-feed-card {
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 22px;
  background:
    radial-gradient(160px 120px at 100% 0, rgba(124,58,237,.10), transparent 75%),
    linear-gradient(155deg, rgba(37,55,96,.66), rgba(12,18,32,.78));
  box-shadow: 0 12px 32px rgba(0,0,0,.20);
  padding: 12px;
  display: grid;
  gap: 9px;
  overflow: hidden;
}

.acf-feed-link {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.acf-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #aab5c8;
  font-size: 12px;
  min-width: 0;
}

.acf-feed-hash {
  direction: ltr;
  unicode-bidi: plaintext;
  color: #93c5fd;
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acf-feed-author {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  padding: 4px 8px;
  color: #e5e7eb;
  font-size: 11.5px;
}

.acf-feed-author.is-ghost {
  color: #aab5c8;
}

.acf-feed-date {
  direction: ltr;
  unicode-bidi: plaintext;
  color: #8fa0ba;
  font-size: 11.5px;
}

.acf-feed-text {
  margin: 0;
  color: #fff;
  font-size: 15.4px;
  line-height: 1.88;
  white-space: normal;
  overflow-wrap: anywhere;
}

.acf-feed-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.acf-feed-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.acf-feed-stats span {
  min-width: 0;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.040);
  border: 1px solid rgba(255,255,255,.080);
  color: #9aa7bd;
  line-height: 1;
}

.acf-feed-stats b {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
}

.acf-feed-stats small {
  color: #9aa7bd;
  font-size: 10px;
}

.acf-feed-save {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  display: grid;
  place-items: center;
  padding: 0;
  color: #cbd5e1;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}

.acf-feed-save img {
  width: 20px;
  height: 20px;
  display: block;
}

.acf-feed-save:active {
  transform: scale(.94);
}

.acf-feed-save.is-saved,
.acf-feed-save.saved {
  background: rgba(34,197,94,.14);
}

.acf-feed-save.is-loading {
  opacity: .65;
  pointer-events: none;
}

.acf-main-loader {
  padding: 14px;
  text-align: center;
  color: #aab5c8;
  font-weight: 850;
}

.acf-main-sentinel {
  height: 48px;
}

@media (max-width: 420px) {
  .acf-main-hero {
    border-radius: 23px;
    padding: 14px 12px;
  }

  .acf-main-hero h1 {
    font-size: 21px;
  }

  .acf-main-hero p {
    font-size: 13.5px;
  }

  .acf-feed-card {
    border-radius: 20px;
    padding: 11px;
  }

  .acf-feed-text {
    font-size: 15px;
    line-height: 1.82;
  }

  .acf-feed-bottom {
    grid-template-columns: 1fr auto;
  }

  .acf-feed-stats {
    gap: 5px;
  }

  .acf-feed-stats span {
    padding: 0 7px;
  }

  .acf-feed-stats small {
    font-size: 9.5px;
  }

  .acf-feed-save {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 15px;
  }
}

@media (max-width: 340px) {
  .acf-feed-stats small {
    display: none;
  }

  .acf-feed-stats span {
    width: 34px;
    justify-content: center;
  }
}

/* =========================================================
   Save icon visual feedback - home/main cards
   ========================================================= */
.acf-feed-save {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

.acf-feed-save img {
  opacity: .72;
  transform: scale(1);
  transition: opacity .16s ease, transform .16s ease, filter .16s ease;
}

.acf-feed-save.is-saved,
.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-save.is-saved img,
.acf-feed-save.saved img {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 9px rgba(34,197,94,.50));
}

.acf-feed-save.just-saved {
  animation: acfSavePop .28s ease;
}

.acf-feed-save.just-unsaved {
  animation: acfUnsavePop .20s ease;
}

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

@keyframes acfSavePop {
  0% { transform: scale(.92); }
  60% { transform: scale(1.10); }
  100% { transform: scale(1); }
}

@keyframes acfUnsavePop {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
