/* =========================================================
   AConfession Related Posts - isolated post-page feature
   Path: public_html/assets/css/post-related.css
   ========================================================= */
.acf-related-panel,
.acf-related-panel *{
  box-sizing:border-box;
}

.acf-related-panel[hidden]{
  display:none!important;
}

.acf-related-panel{
  direction:rtl;
  text-align:right;
  display:grid;
  gap:8px;
  padding:11px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.046),rgba(255,255,255,.020));
}

.acf-related-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 2px;
}

.acf-related-head h2{
  margin:0;
  color:#f8fafc;
  font-size:15px;
  line-height:1.25;
  font-weight:950;
}

.acf-related-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.acf-related-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 26px;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(148,163,184,.10);
  border-radius:17px;
  background:rgba(15,23,42,.44);
  text-decoration:none;
  color:inherit;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}

.acf-related-card:active{
  transform:scale(.985);
}

.acf-related-card:hover,
.acf-related-card:focus-visible{
  border-color:rgba(6,182,212,.24);
  background:rgba(15,23,42,.58);
  outline:0;
}

.acf-related-body{
  min-width:0;
  display:grid;
  gap:5px;
}

.acf-related-content{
  color:#eef2ff;
  font-size:12.8px;
  line-height:1.58;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
}

.acf-related-meta{
  display:flex;
  align-items:center;
  min-width:0;
  color:#94a3b8;
  font-size:11px;
  line-height:1.25;
}

.acf-related-author{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.acf-related-cue{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:end;
  align-self:center;
  opacity:.82;
  transition:opacity .15s ease, transform .15s ease;
}

.acf-related-card:hover .acf-related-cue,
.acf-related-card:focus-visible .acf-related-cue{
  opacity:1;
  transform:translateX(-2px);
}

.acf-related-cue img{
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
}

.acf-related-cue-fallback:before{
  content:"";
  width:8px;
  height:8px;
  border-block-start:2px solid currentColor;
  border-inline-start:2px solid currentColor;
  transform:rotate(-45deg);
  color:#dbeafe;
}

.acf-related-empty{
  padding:9px 10px;
  border:1px dashed rgba(148,163,184,.16);
  border-radius:16px;
  color:#94a3b8;
  font-size:12px;
  line-height:1.6;
}

.acf-related-panel.is-loading .acf-related-list:before,
.acf-related-panel.is-loading .acf-related-list:after{
  content:"";
  min-height:84px;
  border-radius:17px;
  background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.075),rgba(255,255,255,.035));
  background-size:220% 100%;
  animation:acfRelatedPulse 1.15s ease infinite;
}

@keyframes acfRelatedPulse{
  0%{background-position:100% 0;}
  100%{background-position:-100% 0;}
}

@media (max-width:520px){
  .acf-related-panel{
    padding:10px;
    border-radius:20px;
  }

  .acf-related-list{
    grid-template-columns:1fr;
    gap:7px;
  }

  .acf-related-card{
    padding:9px 10px;
    border-radius:16px;
  }

  .acf-related-body{
  min-width:0;
  display:grid;
  gap:5px;
}

.acf-related-content{
    -webkit-line-clamp:2;
  }
}
