/* BuzzScaler — post cards (partials/post-card.php). Builds on .post-card base rules in app.css. */
.pc { position: relative; isolation: isolate; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: opacity .8s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.pc::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--grad); opacity: 0; transition: opacity .4s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pc:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 1px 2px rgba(20, 12, 50, .04), 0 26px 50px -24px rgba(124, 58, 237, .38), 0 12px 30px -20px rgba(255, 67, 148, .35); }
.pc:hover::after, .pc:focus-within::after { opacity: .85; }
.reveal.in.pc:hover { transform: translateY(-6px); }

.pc .post-cover { flex: none; aspect-ratio: 16 / 9; }
.pc .post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc .post-cover img, .pc .post-cover .plogo, .pc .cover-ico { transition: transform .7s var(--ease); }
.pc:hover .post-cover img, .pc:hover .post-cover .plogo, .pc:hover .cover-ico { transform: scale(1.04); }
.pc .cover-word { display: none; }
.pc-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  background: rgba(255, 255, 255, .68); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 6px 16px -8px rgba(20, 12, 50, .3);
}
.pc-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--violet-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #7c3aed) 18%, transparent); }

.pc .post-body { gap: 10px; padding: 20px 22px 18px; }
.pc .pc-title { font-size: 18.5px; line-height: 1.32; letter-spacing: -.018em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.pc:hover .pc-title { color: #3b1d9a; }
.pc .post-body p { font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-link::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r); }
.pc-link:focus-visible { outline: none; }
.pc-link:focus-visible::before { outline: 3px solid var(--violet); outline-offset: 2px; }
.pc .pc-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; }
.pc-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); color: var(--violet-2); transition: background .3s, color .3s, transform .3s var(--ease); }
.pc-go .i { width: 15px; height: 15px; }
.pc:hover .pc-go { background: var(--grad); color: #fff; transform: translateX(2px); }

/* Featured variants: 16:9 cover with a glass panel overlapping its lower edge */
.pc-over { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.pc-over .pc-chip { top: 16px; left: 16px; }
.pc-over .post-body {
  position: relative; z-index: 1; margin: -64px 14px 14px; padding: 22px 24px 16px; border-radius: calc(var(--r) - 6px);
  background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-edge);
}
.pc-lead .post-cover .plogo, .pc-lead .cover-ico { width: 96px; height: 96px; margin-bottom: 48px; }
.pc-lead .cover-ico { border-radius: 26px; }
.pc-lead .cover-ico .i { width: 44px; height: 44px; }
.pc-lead .pc-title { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.16; letter-spacing: -.03em; }
.pc-lead .post-body p { font-size: 16px; -webkit-line-clamp: 2; }
.pc-lead .pc-meta { font-size: 13.5px; }
.pc-side .post-body { margin: -40px 12px 12px; padding: 16px 18px 12px; }
.pc-side .post-cover .plogo, .pc-side .cover-ico { width: 52px; height: 52px; margin-bottom: 30px; }
.pc-side .pc-title { font-size: 17px; -webkit-line-clamp: 2; }
.pc-side .pc-meta { padding-top: 10px; }
@media (max-width: 640px) {
  .pc-over .post-body { margin: 10px; padding: 18px 18px 14px; }
  .pc-lead .post-cover .plogo, .pc-lead .cover-ico { width: 72px; height: 72px; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc:hover, .reveal.in.pc:hover { transform: none; }
  .pc:hover .post-cover img, .pc:hover .post-cover .plogo, .pc:hover .cover-ico { transform: none; }
}
