/* =====================================================
   NOTICIAS — solucionesextranjeria.es
===================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--primary-border);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.news-source {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.news-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.news-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sources {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.news-sources p {
  font-size: 0.75rem;
  color: var(--muted);
}

.news-sources a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-sources a:hover {
  color: var(--text);
}

/* Loading state */
.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
}

.news-loading p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 10px;
}

.news-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: newsSpin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes newsSpin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-card { padding: 16px; }
  .news-title { font-size: 0.88rem; }
}
