/* Posts Feed widget (neutral base, themed through --pf-* / --bio-* variables) */
.pf { margin: 1.5rem 0 0; }
.pf-title {
  display: flex; align-items: center; gap: .75rem;
  margin: 0 0 .9rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-align: center;
  color: var(--pf-title, var(--bio-text-muted)) !important;
}
.pf-title::before, .pf-title::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.pf-grid {
  display: grid;
  grid-template-columns: repeat(var(--pf-cols, 3), minmax(0, 1fr));
  gap: var(--pf-gap, 6px);
}
.pf-tile {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--pf-radius, 14px);
  background: var(--pf-placeholder, rgba(127, 127, 127, .15));
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.pf-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.pf-tile:hover img, .pf-tile:focus-visible img { transform: scale(1.06); }
.pf-tile:active { transform: scale(.985); }
.pf-tile:focus-visible { outline: 2px solid var(--pf-focus, currentColor); outline-offset: 2px; }
.pf-badge {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pf-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .55rem .5rem;
  font-size: .68rem; font-weight: 600; line-height: 1.25; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) {
  .pf-tile:hover .pf-name, .pf-tile:focus-visible .pf-name { opacity: 1; transform: none; }
}
.pf-tile.pf-broken { display: flex; align-items: center; justify-content: center; }
.pf-tile.pf-broken::before {
  content: ""; width: 38%; aspect-ratio: 1; opacity: .35;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7 6 5 10 7 14c1 2 3 3 5 3s4-1 5-3c2-4 0-8-5-12zm0 18v-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7 6 5 10 7 14c1 2 3 3 5 3s4-1 5-3c2-4 0-8-5-12zm0 18v-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pf-more {
  display: block; margin: 1.1rem auto 0; min-height: 48px; padding: .7rem 1.6rem;
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
  color: var(--pf-btn-text, var(--bio-text)); background: transparent;
  border: 1.5px solid var(--pf-btn-border, currentColor); border-radius: 999px;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.pf-more[hidden] { display: none; }
.pf-more.is-loading { opacity: .55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .pf-tile img, .pf-name { transition: none; }
}

/* Editor-preview hint when no account is connected yet */
.pf-notice { margin: 16px 0; padding: 14px 16px; border: 1px dashed rgba(0,0,0,.25); border-radius: 12px; font-size: 13px; text-align: center; opacity: .75; }
