/* =========================================================
   Post / course cover — dark brand infographic placeholder
   Used by Digital Trends posts and Academy course cards.
   Replaced by real featured images in WordPress.
   ========================================================= */
.ws-th {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: var(--space-4);
  aspect-ratio: 16 / 9;
  padding: var(--space-6);
  overflow: hidden;
  color: var(--text-on-dark);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fill) var(--ease), box-shadow var(--dur-fill) var(--ease);
}
/* dark covers on the light page: three dark green tones so the grid has rhythm */
.ws-th--mint { background: radial-gradient(ellipse 70% 80% at 100% 100%, rgba(207, 245, 90, 0.16), transparent 60%), linear-gradient(135deg, var(--color-dark-raised) 0%, var(--color-dark) 100%); }
.ws-th--teal { background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(14, 107, 92, 0.7), transparent 65%), linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-deep) 100%); }
.ws-th--lime { background: radial-gradient(ellipse 60% 70% at 0% 100%, rgba(207, 245, 90, 0.14), transparent 60%), linear-gradient(135deg, var(--color-dark-soft) 0%, var(--color-dark) 100%); }
:is(.ws-post__link, .ws-ac-card__link):hover .ws-th { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ws-th__copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws-th__title { margin-bottom: 4px; font-size: 18px; font-weight: var(--fw-bold); line-height: 1.15; color: #fff; }
.ws-th__stat { display: flex; align-items: baseline; gap: 6px; font-size: 9px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-on-dark-muted); }
.ws-th__stat b { flex: none; font-size: 16px; letter-spacing: 0; color: var(--color-accent); }
.ws-th__brand { margin-top: 6px; font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); }

.ws-th__fig { display: flex; align-items: center; justify-content: center; height: 100%; }
.ws-th__donut {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 82%; aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--color-accent) calc(var(--v) * 1%), rgba(255, 255, 255, 0.16) 0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 30px rgba(207, 245, 90, 0.12);
  transition: transform var(--dur-fill) var(--ease);
}
.ws-th__donut::before { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: var(--color-dark-deep); }
.ws-th__donut b { position: relative; font-size: 15px; color: #fff; }
.ws-th__bars { display: flex; align-items: flex-end; gap: 8%; width: 90%; height: 78%; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.ws-th__bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
  transform-origin: bottom;
  transition: transform var(--dur-fill) var(--ease);
}
.ws-th__bars i:last-child { background: linear-gradient(180deg, var(--color-accent), var(--color-accent-deep)); box-shadow: 0 0 18px rgba(207, 245, 90, 0.35); }
.ws-th__big { font-size: 46px; font-weight: var(--fw-bold); letter-spacing: -0.03em; color: var(--color-accent); }
.ws-th__big::after { content: ""; display: block; height: 4px; margin-top: 4px; background: rgba(255, 255, 255, 0.85); }
:is(.ws-post__link, .ws-ac-card__link):hover .ws-th__donut { transform: rotate(-12deg) scale(1.04); }
:is(.ws-post__link, .ws-ac-card__link):hover .ws-th__bars i { transform: scaleY(1.06); }


@media (prefers-reduced-motion: reduce) {
  .ws-th, .ws-th__donut, .ws-th__bars i { transition: none; }
}

/* Post card with a Featured image instead of the infographic cover */
.ws-post__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-dark); }
.ws-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-fill) var(--ease); }
.ws-post__link:hover .ws-post__img img { transform: scale(1.03); }
