
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sp-color-surface-dark);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sp-duration-slow) var(--sp-ease-default);
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0 0 0 / 0.5) 0%,
    oklch(0 0 0 / 0.2) 40%,
    transparent 100%
  );
  pointer-events: none;
}

.card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--sp-color-surface-dark) 0%,
    var(--sp-color-bg-dark) 100%
  );
}

.card-image--placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--sp-color-text-disabled);
  opacity: 0.3;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(
    135deg,
    var(--sp-color-surface-dark) 0%,
    var(--sp-color-bg-dark) 100%
  );
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--sp-color-text-disabled);
  opacity: 0.3;
}

.featured-image .image-placeholder {
  min-height: 300px;
}

@media (prefers-reduced-motion: reduce) {
  .card-image img {
    transition: none;
  }
}
