/* Story card component (idobi_render_story_card in functions.php).
   Used on the Read page and in Related Content on single posts. */

.read-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #121316;
  border: 1px solid #26282c;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.read-card:hover {
  border-color: #3a3d42;
  transform: translateY(-2px);
}

.read-card__media {
  display: block;
  overflow: hidden;
}

.read-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.read-card:hover .read-card__image {
  transform: scale(1.03);
}

/* Post has no image: dark tile with the idobi logo */
.read-card__image--placeholder {
  background: #1b1c20 url('../img/idobi logo 2026 - Reversed.png') center / 35% auto no-repeat;
}

.read-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

/* Fixed-height row so titles line up whether or not a card has a pill */
.read-card__tags {
  min-height: 22px;
  margin-bottom: 12px;
}

.read-card__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(129, 251, 253, 0.14);
  color: #81FBFD;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-card__title {
  margin: 0 0 20px;
  padding: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
}

.read-card__title a,
.read-card__title a:visited {
  color: #fff;
  text-decoration: none;
}

.read-card__title a:hover,
.read-card__title a:focus {
  color: #81FBFD;
}

/* Byline pinned to the bottom so cards in a row line up */
.read-card__byline {
  margin-top: auto;
  color: #9a9da3;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .read-card,
  .read-card__image { transition: none; }
  .read-card:hover,
  .read-card:hover .read-card__image { transform: none; }
}
