/* pe-004-a1.css — Default Post Element (Ghost White). Generic card; values from Figma 2026-06-16. */

.post-element-card.post-element-card--pe-004-a1 {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  height: 100%;
  box-sizing: border-box;
  background: #F7F7F7; /* FLAG: off-token literal (nearest token is --color-base-daisy-white #F7F7FB); reconcile later */
  border-radius: var(--radius-3xl);
  padding: var(--spacing-5) var(--spacing-5); /* mobile: p-5 20 (Figma); tablet+ restores py-6 below */
}

.post-element-card--pe-004-a1 .post-element-card__image-wrap {
  width: 100%;
  height: 225px; /* logo cards: fixed box; the wide logo fits inside via object-fit:contain */
  border-radius: var(--radius-xl); /* mobile (Figma); tablet+ restores radius-3xl below */
  overflow: hidden;
}

/* Photo cards (non-logo — casino-game/news featured images are ~3:2 landscape):
   shape the box to the image's 3:2 ratio so object-fit:cover shows the whole photo
   (still centered) instead of scaling it up and cropping the sides. */
.post-element-card--pe-004-a1:not(.post-element-card--logo) .post-element-card__image-wrap {
  height: auto;
  aspect-ratio: 3 / 2;
}

.post-element-card--pe-004-a1 .post-element-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* default: 1:1 logos + landscape photos fill the card */
  object-position: center;
  display: block;
}

/* Wide brand logos (payment-method / game-provider): show the whole logo,
   letterboxed on the card bg, instead of cropping the sides. Set by the
   post-element-card--logo modifier (see PostElementShortcode::renderGrid). */
.post-element-card--pe-004-a1.post-element-card--logo .post-element-card__image {
  object-fit: contain;
}

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

.post-element-card--pe-004-a1 .post-element-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1); /* tight title -> excerpt, matching the Brizy element */
}

.post-element-card--pe-004-a1 .post-element-card__title {
  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-default-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-element-card--pe-004-a1 .post-element-card__excerpt {
  font-family: var(--font-family-paragraph);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-p2-base);
  line-height: var(--line-height-p2-base);
  color: var(--color-default-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-element-card--pe-004-a1 .post-element-card__readmore {
  margin-top: auto; /* pin to the card bottom so buttons align across cards */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-1);
  height: var(--spacing-14); /* 56px */
  background: var(--gradient-button-default);
  border-radius: var(--radius-xl);
  color: var(--color-base-white);
  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.3s ease, transform 0.2s ease;
}

.post-element-card--pe-004-a1 .post-element-card__readmore:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.post-element-card--pe-004-a1 .post-element-card__arrow {
  width: var(--spacing-6);
  height: var(--spacing-6);
  flex-shrink: 0;
}

/* Tablet + desktop keep the original Figma values; mobile uses the smaller ones (base above). */
@media (min-width: 768px) {
  .post-element-card.post-element-card--pe-004-a1 {
    padding: var(--spacing-6) var(--spacing-5); /* py-6 24 / px-5 20 */
  }
  .post-element-card--pe-004-a1 .post-element-card__image-wrap {
    border-radius: var(--radius-3xl);
  }
}

/* Grid — 3 cards (~324px) at the Figma container width, 24px gaps */
@media (min-width: 1440px) {
  .post-element-wrapper .post-element-grid--pe-004-a1 {
    max-width: 1041px; /* 3 cards × 331 + 2 × 24 gap → 291px content/image */
    margin-inline: auto;
    gap: var(--spacing-6);
  }
}
