/* ── news-card.css — общий компонент карточки новости ──
   Используется на /news (news_list) и на главной странице.
   Требует переменные --card-border, --radius, --text, --muted, --accent
   (уже объявлены в base.css/home.css/news_list.css). */

.news-card {
  background: #12151D;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .25s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  animation: newsCardFadeUp .4s ease both;
  min-height: 180px;
}
.news-card:focus-visible {
  outline: 2px solid rgba(117,255,240,.6); outline-offset: 2px;
}
.news-card:hover {
}
@keyframes newsCardFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.card-date {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
  color: #9BA1AE;
}
.pin-badge {
  display: flex; align-items: center; gap: 4px;
  font-family: 'Rubik', sans-serif;
  font-size: 11px; font-weight: 400; color: #E2E2E5;
  background: #1C202B;
  border: 1px solid var(--border-default);
  border-radius: 5px; padding: 3px 9px;
}
.news-card .card-title {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0;
  color: #E2E2E5; margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 2);
}.card-desc {
  font-size: 12px; color: var(--muted); line-height: 1.75;
  flex: 1; margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 7px;
}
.card-desc .news-icon {
  flex-shrink: 0; margin-top: 2px; opacity: .55;
}
.card-desc span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom {
  display: flex; align-items: center; justify-content: flex-start;
  border-top: 1px solid var(--border-default);
  padding-top: 14px; margin-top: auto;
}
.read-btn {
  width: auto;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  color: #E2E2E5;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  text-decoration: underline solid;
  text-underline-offset: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .2s, border-color .2s;
}
.news-card:hover .read-btn {
  background: none;
  border-color: transparent;
}
