/* ============================================================================
   PixelClub — La ventana de noticias
   ============================================================================
   Todo con las variables del sistema. El color de cada medio llega por `--c`
   desde el JavaScript, igual que el de cada tienda en la pantalla de gratis:
   de un vistazo se sabe de dónde viene un titular sin leer una palabra.
   ========================================================================== */

.not-modal {
  width: min(760px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 3px solid var(--accent-games);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 3px var(--bg-primary), 0 0 40px rgba(0, 245, 212, .25);
  overflow: hidden;
}

/* ── Cabecera ───────────────────────────────────────────────────────────── */

.not-cab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid rgba(0, 245, 212, .3);
  background: rgba(0, 245, 212, .06);
  flex-shrink: 0;
}

.not-cab-tit {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--pixel-base);
  color: var(--accent-games);
  letter-spacing: .06em;
}

.not-cab-nota {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-left: auto;
}

.not-cerrar {
  background: none;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-pixel);
  font-size: var(--pixel-xs);
  padding: 6px 9px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.not-cerrar:hover { color: var(--accent-danger); border-color: var(--accent-danger); }

/* ── La lista ───────────────────────────────────────────────────────────── */

.not-lista { overflow-y: auto; flex: 1; }

.not-fila {
  display: grid;
  grid-template-columns: 92px 1fr 22px;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  /* La franja del medio, a la izquierda. Mismo recurso que el borde superior
     de color en las tarjetas de juegos gratis, girado 90 grados porque aquí
     las filas son horizontales. */
  border-left: 3px solid var(--c);
  transition: var(--transition-fast);
}
.not-fila:hover { background: rgba(255, 255, 255, .04); }

.not-arte { width: 92px; height: 58px; overflow: hidden; border-radius: var(--radius-sm); }
.not-img  { width: 100%; height: 100%; object-fit: cover; display: block; }
.not-img-vacia {
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.not-txt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.not-alto { display: flex; align-items: center; gap: var(--space-xs); }

.not-medio {
  font-family: var(--font-pixel);
  font-size: var(--pixel-xs);
  color: var(--c);
}

.not-cuando { font-size: var(--text-sm); color: var(--text-muted); }

/* El punto de «sin leer». Es lo único que distingue lo nuevo, y con eso basta:
   una fila entera resaltada convertiría la lista en un semáforo. */
.not-punto {
  width: 7px;
  height: 7px;
  background: var(--accent-games);
  box-shadow: 0 0 8px currentColor;
  margin-left: auto;
  flex-shrink: 0;
}

.not-titular {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--text-primary);
}
.not-nueva .not-titular { color: #fff; }

.not-resumen {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.3;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.not-flecha { color: var(--text-muted); opacity: .5; }
.not-fila:hover .not-flecha { color: var(--accent-games); opacity: 1; }

/* ── Pie y estado vacío ─────────────────────────────────────────────────── */

.not-pie {
  padding: var(--space-sm) var(--space-lg);
  border-top: 2px solid rgba(255, 255, 255, .08);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
  flex-shrink: 0;
}

.not-vacio { padding: var(--space-xl) var(--space-lg); text-align: center; color: var(--text-secondary); }
.not-vacio p { margin: var(--space-sm) 0 0; }
.not-vacio-nota { font-size: var(--text-base); color: var(--text-muted); }

/* ── El contador de la barra ────────────────────────────────────────────── */

.navbar-noticias {
  position: relative;
  /* El contador sigue viéndose pequeño, pero el dedo recibe un área completa. */
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
}

.navbar-noticias-conteo {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: var(--pixel-xs);
  color: var(--text-inverse);
  background: var(--accent-games);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px rgba(0, 245, 212, .6);
}

/* ── Móvil ──────────────────────────────────────────────────────────────── */

@media (max-width: 620px) {
  .not-modal { width: 96vw; max-height: 90vh; }
  .not-fila { grid-template-columns: 66px 1fr; padding: var(--space-sm); }
  .not-arte { width: 66px; height: 44px; }
  .not-flecha { display: none; }
  .not-resumen { -webkit-line-clamp: 1; }
  .not-cab-nota { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVEDADES — las dos fuentes que sí están vivas
   ══════════════════════════════════════════════════════════════════════════
   La actividad de creadores lleva sin moverse desde el 1 de agosto (ver la
   cabecera de pages/Feed.js). Estas fichas pintan lo que la tarea programada
   SÍ refresca cuatro veces al día: 30 titulares y las ofertas activas.

   Mismo lenguaje que el resto: esquinas rectas, borde de 2px, sombra dura y
   transiciones a saltos. Ni un gradiente. */

.nov-rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.nov-ficha {
  display: flex;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 2px solid var(--border-color, #2a2a3e);
  padding: var(--space-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .12s steps(2), box-shadow .12s steps(2), border-color .12s steps(2);
}
.nov-ficha:hover,
.nov-ficha:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--zone-primary, #00f5d4);
  border-color: var(--zone-primary, #00f5d4);
}

.nov-ficha-img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  flex-shrink: 0;
  image-rendering: auto;
  border: 2px solid var(--border-color, #2a2a3e);
}

.nov-ficha-cuerpo { min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.nov-ficha-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: .04em;
}
.nov-medio  { color: var(--zone-primary, #00f5d4); }
.nov-cuando { color: var(--text-muted); }
.nov-urge   { color: var(--accent-danger, #f72585); }

/* Aquí «NUEVO» significa algo: menos de 6 horas. En la lista de creadores el
   distintivo no salía NUNCA porque el dato más reciente tiene semanas. */
.nov-nuevo {
  color: #06121a;
  background: var(--pixel-green, #39ff14);
  padding: 2px 5px;
}
.nov-gratis {
  color: #06121a;
  background: var(--pixel-green, #39ff14);
  padding: 2px 5px;
}

.nov-ficha-titulo {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nov-ficha-resumen {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--pixel-lg);
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .nov-rejilla { grid-template-columns: 1fr; }
  .nov-ficha-img { width: 72px; height: 72px; }
}
