/* ── Content Card ── */
/* Responsive: vertical on desktop, horizontal on mobile to leverage screen width */

.content-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.75rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  word-break: break-word;
}

/* ── Mobile: horizontal layout (image left, text right) ── */
@media (max-width: 600px) {
  .content-card {
    flex-direction: row;
    gap: 0;
  }

  .content-card__image-wrap {
    width: 140px;
    min-width: 140px;
    height: auto;
    min-height: 140px;
    position: relative;
    overflow: hidden;
  }

  .content-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
  }

  .content-card__image-overlay {
    display: none;
  }

  .content-card__body {
    flex: 1;
    padding: 0.9rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    justify-content: center;
  }

  .content-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .content-card__excerpt {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.45;
  }

  .content-card__meta {
    font-size: 0.7rem;
  }
}

/* ── Desktop: vertical layout (image top, text bottom) ── */
@media (min-width: 601px) {
  .content-card {
    flex-direction: column;
  }

  .content-card__image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  .content-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .content-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, 0.4) 100%);
  }

  .content-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .content-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
  }

  .content-card__excerpt {
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    line-height: 1.75;
  }

  .content-card__meta {
    font-size: 0.75rem;
  }
}

/* ── Shared styles ── */
.content-card__body {
  flex: 1;
  min-width: 0;
}

.content-card:hover {
  border-color: #FF1493;
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgba(255,20,147,0.12);
}

.content-card:hover .content-card__image {
  transform: scale(1.05);
}

.content-card__image {
  transition: transform 0.3s ease;
}

.content-card__title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #FFFFFF;
  margin: 0;
}

.content-card__excerpt {
  color: #757575;
}

.content-card__meta {
  color: #616161;
  margin-top: 0.25rem;
  font-family: var(--typography-fontFamily-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* ── Hero card variant: full-bleed image as background, text overlaid on gradient ── */
.content-card--hero {
  position: relative;
  border: none;
  background: transparent;
  height: 260px;
  min-height: 260px;
  border-radius: 0.65rem;
  overflow: hidden;
}

.content-card--hero:hover {
  border-color: transparent;
}

.content-card--hero:hover .content-card__image {
  transform: scale(1.08);
}

.content-card__image-wrap--hero {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: auto !important;
  min-height: 0 !important;
  border-radius: 0;
  overflow: hidden;
}

.content-card--hero .content-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.content-card__hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10,10,10,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.content-card__body--hero {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.85rem;
  gap: 0.15rem;
  min-height: 0;
  height: auto;
}

.content-card__title--hero {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.content-card__excerpt--hero {
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.content-card__body--hero .content-card__meta {
  display: none;
}

.content-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
  font-family: var(--typography-fontFamily-mono);
}
