/* pe-002.css — Slot Reviews card. Mobile-first; values validated vs Figma 2026-06-16. */

.post-element-card.post-element-card--pe-002 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.post-element-card--pe-002 .post-element-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  width: 100%;
}

.post-element-card--pe-002 .post-element-card__head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  width: 100%;
  /* reserve 2-line name + provider so cover images and buttons align across cards */
  min-height: calc(2 * var(--line-height-h6) + var(--line-height-p3-caption));
}

.post-element-card--pe-002 .post-element-card__name {
  font-family: var(--font-family-header);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-h6);
  line-height: var(--line-height-h6);
  color: var(--color-deep-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-element-card--pe-002 .post-element-card__provider {
  font-family: var(--font-family-paragraph);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-p3-caption);
  line-height: var(--line-height-p3-caption);
  color: var(--color-default-text);
  margin: 0;
}

.post-element-card--pe-002 .post-element-card__thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1; /* square cover (190×190 at the desktop card width) */
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; /* rounded top only; flush with the play button */
  overflow: hidden;
}

.post-element-card--pe-002 .post-element-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-element-card--pe-002 .post-element-card__thumb--placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-deep);
}

.post-element-card--pe-002 .post-element-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: -17px; /* button overlaps the image bottom, sitting on top (Figma) */
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  background: var(--color-accent-gold-default);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  color: var(--color-deep-dark);
  font-family: var(--font-family-header);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-button);
  line-height: var(--line-height-button);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.post-element-card--pe-002 .post-element-card__play:hover {
  opacity: 0.92;
}

/* Grid — match Figma: container ~1020px so 5×1fr resolves to 188px cards, 20px column gap */
@media (min-width: 1440px) {
  .post-element-wrapper .post-element-grid--pe-002 {
    max-width: 1030px; /* 5 cards × 190 + 4 × 20 gap → 190px square cover */
    margin-inline: auto;
    column-gap: var(--spacing-5); /* 20px between cards */
    row-gap: var(--spacing-6);    /* 24px between rows */
  }
}
