/* pe-001.css — Casino Reviews card. Mobile-first; values validated vs Figma 2026-06-15. */

.post-element-card.post-element-card--pe-001 {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-2);
  width: 100%;
}

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

.post-element-card--pe-001 .post-element-card__head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  width: 100%;
  /* reserve a 2-line name so logos, ratings and buttons align across the row */
  min-height: calc(2 * var(--line-height-h7));
}

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

.post-element-card--pe-001 .post-element-card__media {
  display: flex;
  flex-direction: column;
}

.post-element-card--pe-001 .post-element-card__logo-wrap {
  width: 100%;
  height: 192px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

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

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

.post-element-card--pe-001 .post-element-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--spacing-14);
  background: var(--color-base-light-gray);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  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);
}

.post-element-card--pe-001 .post-element-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-1);
  height: var(--spacing-14);
  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;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.post-element-card--pe-001 .post-element-card__btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

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

@media (min-width: 768px) {
  .post-element-card--pe-001 .post-element-card__head {
    min-height: calc(2 * var(--line-height-h6));
  }
  .post-element-card--pe-001 .post-element-card__name {
    font-size: var(--font-size-h6);
    line-height: var(--line-height-h6);
  }
  .post-element-card--pe-001 .post-element-card__logo-wrap {
    height: 200px;
  }
}

@media (min-width: 1440px) {
  .post-element-wrapper .post-element-grid--pe-001 {
    max-width: 1044px; /* 4 cards × 243 + 3 × 24 gap → 243px-wide logo */
    margin-inline: auto;
  }
  .post-element-card--pe-001 .post-element-card__logo-wrap {
    height: 200px;
  }
}
