/* ═══════════════════════════════════════════════════════════════
   BAT TAXI — Noticias en Tiempo Real (news-live.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── Strip de fuentes oficiales ───────────────────────────────── */
.news-sources-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.8rem;
  padding: .75rem 1.2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.sources-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-right: .4rem;
  white-space: nowrap;
}
.source-pill {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: .25rem .7rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: .35rem;
  cursor: default;
}
.source-pill i { color: #D4AF37; font-size: .65rem; }

/* ── Barra de filtros ─────────────────────────────────────────── */
.news-filters-live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.news-filters-live .filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.news-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  background: transparent;
  color: rgba(255,255,255,.65);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.news-filter-btn:hover {
  border-color: #D4AF37;
  color: #D4AF37;
}
.news-filter-btn.active {
  background: #D4AF37;
  border-color: #D4AF37;
  color: #000;
  font-weight: 700;
}
.filter-count {
  background: rgba(0,0,0,.25);
  border-radius: 10px;
  padding: 0 .45rem;
  font-size: .7rem;
  min-width: 1.2rem;
  text-align: center;
}
.news-filter-btn.active .filter-count { background: rgba(0,0,0,.3); }

.news-update-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}
.btn-refresh-news {
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.btn-refresh-news:hover {
  border-color: #D4AF37;
  color: #D4AF37;
  transform: rotate(180deg);
}

/* ── Grid de noticias ─────────────────────────────────────────── */
.news-grid-live {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Tarjeta individual ───────────────────────────────────────── */
.news-card-live {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.news-card-live:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,.35);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Imagen */
.news-card-img {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-card-live:hover .news-card-img img { transform: scale(1.05); }
.news-card-img.no-img img { display: none; }
.news-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 100%);
  opacity: .7;
}

/* Badge categoría */
.news-live-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  padding: .25rem .65rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
/* Tag con nombre del medio (periódico) */
.news-media-tag {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  font-size: .65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: .2rem .55rem;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Punto verde "en directo" */
.news-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
  display: inline-block;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* Cuerpo */
.news-card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
  gap: .5rem;
}
.news-source {
  font-size: .72rem;
  font-weight: 600;
  color: #D4AF37;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.news-time {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.news-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .8rem;
}
.news-card-cta {
  font-size: .75rem;
  font-weight: 600;
  color: #D4AF37;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: auto;
}

/* ── Skeleton loader ─────────────────────────────────────────── */
.news-skeleton {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  animation: skelPulse 1.4s ease-in-out infinite;
}
.skel-img  { height: 170px; background: rgba(255,255,255,.07); }
.skel-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.skel-line {
  height: .75rem;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  width: 100%;
}
.skel-line.short { width: 40%; }
.skel-line.mid   { width: 65%; }
.skel-line.long  { width: 90%; }

@keyframes skelPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* ── Estado error ────────────────────────────────────────────── */
.news-error, .news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,.4);
}
.news-error i, .news-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.btn-retry {
  margin-top: 1rem;
  padding: .6rem 1.4rem;
  border: 1px solid #D4AF37;
  border-radius: 22px;
  background: transparent;
  color: #D4AF37;
  font-size: .85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s;
}
.btn-retry:hover { background: #D4AF37; color: #000; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .news-grid-live { grid-template-columns: 1fr; }
  .news-filters-live { flex-direction: column; align-items: flex-start; }
  .news-update-bar { width: 100%; justify-content: flex-end; }
  .news-sources-strip { gap: .35rem; }
}
