/**
 * Premium news cards — home + news page
 */

@keyframes mopdicNewsCardShimmer {
  0%, 72% { left: -70%; opacity: 0; }
  82% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.premium-news-grid {
  gap: 26px;
}

.premium-news-grid .card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}

.premium-news-grid .card::before {
  height: 4px;
  opacity: 1;
  transform: none;
  animation: none;
}

.premium-news-grid .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 42%;
  height: 100%;
  inset: auto;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-12deg);
  animation: mopdicNewsCardShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
  opacity: 1;
}

.premium-news-grid .card:nth-child(4n+2)::after { animation-delay: 1s; }
.premium-news-grid .card:nth-child(4n+3)::after { animation-delay: 2s; }
.premium-news-grid .card:nth-child(4n)::after { animation-delay: 3s; }

.premium-news-grid .card:hover {
  transform: translateY(-12px) rotate(-0.3deg);
}

.premium-news-grid .card:hover::after {
  animation-duration: 2.4s;
}

/* Light themes */
.premium-news-grid .card--sky {
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 55%, #eef5ff 100%);
  border-color: rgba(66, 124, 208, 0.14);
  box-shadow: 0 12px 36px rgba(66, 124, 208, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.premium-news-grid .card--sky::before {
  background: linear-gradient(90deg, #6ba3e8, #427cd0);
}
.premium-news-grid .card--sky .card__category-badge {
  background: linear-gradient(135deg, #427cd0, #3266b5);
  box-shadow: 0 6px 16px rgba(66, 124, 208, 0.32);
}
.premium-news-grid .card--sky .card__meta {
  color: #3266b5;
  background: rgba(66, 124, 208, 0.1);
  border: 1px solid rgba(66, 124, 208, 0.14);
  border-radius: 50px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.premium-news-grid .card--sky .card__link {
  border-color: rgba(66, 124, 208, 0.35);
  color: #3266b5;
}
.premium-news-grid .card--sky .card__link::before {
  background: linear-gradient(135deg, #427cd0, #3266b5);
}

.premium-news-grid .card--mint {
  background: linear-gradient(165deg, #ffffff 0%, #f2fbf4 55%, #eaf8ee 100%);
  border-color: rgba(59, 178, 60, 0.14);
  box-shadow: 0 12px 36px rgba(59, 178, 60, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.premium-news-grid .card--mint::before {
  background: linear-gradient(90deg, #6fd672, #3bb23c);
}
.premium-news-grid .card--mint .card__category-badge {
  background: linear-gradient(135deg, #3bb23c, #2d8f30);
  box-shadow: 0 6px 16px rgba(59, 178, 60, 0.3);
}
.premium-news-grid .card--mint .card__meta {
  color: #2d8f30;
  background: rgba(59, 178, 60, 0.1);
  border: 1px solid rgba(59, 178, 60, 0.14);
  border-radius: 50px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.premium-news-grid .card--mint .card__link {
  border-color: rgba(59, 178, 60, 0.35);
  color: #2d8f30;
}
.premium-news-grid .card--mint .card__link::before {
  background: linear-gradient(135deg, #3bb23c, #2d8f30);
}

.premium-news-grid .card--lavender {
  background: linear-gradient(165deg, #ffffff 0%, #f7f4ff 55%, #f0ebff 100%);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.07), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.premium-news-grid .card--lavender::before {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}
.premium-news-grid .card--lavender .card__category-badge {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}
.premium-news-grid .card--lavender .card__meta {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 50px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.premium-news-grid .card--lavender .card__link {
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}
.premium-news-grid .card--lavender .card__link::before {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.premium-news-grid .card--peach {
  background: linear-gradient(165deg, #ffffff 0%, #fff8f2 55%, #fff3e8 100%);
  border-color: rgba(254, 185, 30, 0.16);
  box-shadow: 0 12px 36px rgba(254, 185, 30, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.premium-news-grid .card--peach::before {
  background: linear-gradient(90deg, #ffd54f, #feb91e);
}
.premium-news-grid .card--peach .card__category-badge {
  background: linear-gradient(135deg, #feb91e, #d97706);
  box-shadow: 0 6px 16px rgba(254, 185, 30, 0.3);
}
.premium-news-grid .card--peach .card__meta {
  color: #b45309;
  background: rgba(254, 185, 30, 0.12);
  border: 1px solid rgba(254, 185, 30, 0.18);
  border-radius: 50px;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.premium-news-grid .card--peach .card__link {
  border-color: rgba(254, 185, 30, 0.35);
  color: #b45309;
}
.premium-news-grid .card--peach .card__link::before {
  background: linear-gradient(135deg, #feb91e, #d97706);
}

.premium-news-grid .card__image {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.premium-news-grid .card__body {
  padding: 22px 22px 24px;
}

.premium-news-grid .card h3 {
  font-size: 1.02rem;
  line-height: 1.45;
}

.premium-news-grid .card__link {
  border-radius: 12px;
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.premium-news-grid .card__link:hover,
.premium-news-grid .card__link:hover i {
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .premium-news-grid .card::after {
    animation: none;
    opacity: 0;
  }
}
