/* ══════════════════════════════════════════
   NEWS CARD — BEM Component
   per SCHEMA.md Article + DESAIN Badge
   ══════════════════════════════════════════ */

.news-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Image wrap (container for badge overlay) */
.news-card__image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

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

/* Badge (breaking/live/headline overlay) */
.news-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
}

.news-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.news-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-light);
}

.news-card__author {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Featured variant */
.news-card--featured {
  grid-column: 1 / -1;
}
.news-card--featured .news-card__title {
  font-size: 22px;
}

/* Empty state */
.news-card--empty {
  cursor: default;
  border: 1px dashed var(--border);
}
.news-card--empty:hover {
  box-shadow: none;
  transform: none;
}

/* Loading state */
.news-card--loading {
  cursor: default;
  pointer-events: none;
}
.news-card--loading .news-card__image {
  background: var(--bg-secondary);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.news-card--loading .news-card__title {
  height: 22px;
  width: 80%;
  background: var(--bg-secondary);
  color: transparent;
  -webkit-line-clamp: unset;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.news-card--loading .news-card__excerpt {
  height: 16px;
  width: 60%;
  background: var(--bg-secondary);
  color: transparent;
  -webkit-line-clamp: unset;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
