/*
 * charodromo.css — Estilos de periódico para El Charódromo.
 * Complementa launcher.css (reutiliza .launcher, .launcher-footer, .footer-link,
 * fondo y tipografías). Aquí solo lo específico de la sección de prensa.
 */

/* Cabecera del diario ----------------------------------------------------- */
.cha-masthead {
  text-align: center;
  border-bottom: 4px double #ffd700;
  padding-bottom: 18px;
  margin-bottom: 8px;
}
.cha-masthead h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.3rem, 5vw, 2.6rem);
  color: #ffd700;
  letter-spacing: 1px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.cha-lema {
  font-style: italic;
  color: #cbb86a;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.cha-datos {
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #9a9aae;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cha-datos #cha-fecha { color: #e6e6f0; }

/* Ticker de breves -------------------------------------------------------- */
.cha-ticker {
  display: flex;
  align-items: stretch;
  margin: 18px 0 30px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 215, 0, 0.06);
}
.cha-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  background: #b22222;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 14px;
}
.cha-ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.cha-ticker-track {
  display: inline-block;
  padding: 10px 0;
  white-space: nowrap;
  will-change: transform;
  animation: cha-marquee 90s linear infinite;
}
.cha-ticker-item {
  display: inline-block;
  padding: 0 28px;
  color: #d8d8e4;
  font-size: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.cha-ticker-item::before { content: '●'; color: #ffd700; margin-right: 10px; font-size: 0.7em; vertical-align: middle; }
@keyframes cha-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cha-ticker:hover .cha-ticker-track { animation-play-state: paused; }

/* Titular principal (lead) ------------------------------------------------ */
.cha-lead {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255,215,0,0.10), rgba(178,34,34,0.06));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 36px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cha-lead:hover { transform: translateY(-2px); border-color: #ffd700; }
.cha-lead-seccion {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd700;
  margin-bottom: 10px;
}
.cha-lead-titular {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}
.cha-lead-entradilla {
  font-size: 1.1rem;
  color: #c9c9d6;
  margin: 0 0 14px;
}

/* Secciones y rejilla de artículos --------------------------------------- */
.cha-seccion { margin-bottom: 34px; }
.cha-seccion-titulo {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.95rem;
  color: #ffd700;
  border-bottom: 2px solid rgba(255, 215, 0, 0.35);
  padding-bottom: 8px;
  margin: 0 0 18px;
}
.cha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.cha-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 4px solid #ffd700;
  border-radius: 10px;
  padding: 16px 18px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cha-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-left-color: #b22222;
}
.cha-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cha-card-emoji { font-size: 1.2rem; }
.cha-card-seccion { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #9a9aae; }
.cha-card-titular {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #fff;
}
.cha-card-entradilla { font-size: 0.92rem; color: #b9b9c6; margin: 0 0 14px; flex: 1 1 auto; }
.cha-card-pie {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: 0.75rem;
  color: #8a8a9a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}
.cha-card-firma { font-style: italic; }
.cha-card-juego { color: #ffd700; white-space: nowrap; }

/* Página de artículo ------------------------------------------------------ */
.cha-articulo { max-width: 720px; margin: 0 auto; }
.cha-art-seccion {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd700;
  margin-bottom: 12px;
}
.cha-art-titular {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 16px;
  color: #fff;
}
.cha-art-entradilla {
  font-size: 1.2rem;
  font-weight: 600;
  color: #d6d6e2;
  margin: 0 0 16px;
}
.cha-art-meta {
  font-size: 0.85rem;
  color: #8a8a9a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  margin: 0 0 22px;
}
.cha-art-parrafo {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #d8d8e4;
  margin: 0 0 18px;
}
.cha-art-cita {
  border-left: 4px solid #b22222;
  background: rgba(178, 34, 34, 0.08);
  margin: 24px 0;
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
}
.cha-art-cita p { font-size: 1.25rem; font-style: italic; color: #fff; margin: 0 0 6px; line-height: 1.4; }
.cha-art-cita cite { font-size: 0.85rem; color: #c9b86a; font-style: normal; }
.cha-art-cta {
  text-align: center;
  margin: 32px 0 16px;
  padding: 22px;
  border: 1px dashed rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.05);
}
.cha-art-cta p { color: #c9c9d6; margin: 0 0 14px; }
.cha-cta-btn {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cha-cta-btn:hover { background: #43a047; transform: translateY(-1px); }
.cha-art-acciones {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nota: el estilo del banner de entrada (.news-banner) vive en launcher.css,
   junto a .ranking-banner y .download-banner, porque solo se usa en el launcher. */

/* Responsive -------------------------------------------------------------- */
@media (max-width: 600px) {
  .cha-grid { grid-template-columns: 1fr; }
  .cha-ticker-label { font-size: 0.68rem; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cha-ticker-track { animation: none; }
  .cha-card, .cha-lead, .cha-cta-btn, .news-banner { transition: none; }
}
