
/* Lista de Infieles v9.2 - Estilo "app premium" */

#lista-infieles-v9-wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f9fafb;
}

/* --------- CABECERA PRINCIPAL ---------- */

.li-v9-header {
  text-align: center;
  padding: 40px 16px 28px;
}

.li-v9-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: .02em;
}

.li-v9-subtitle {
  font-size: 0.98rem;
  opacity: 0.85;
  margin: 0;
}

/* Stats estilo tarjeta de app */

.li-v9-stats {
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(236,72,153,0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.25), transparent 55%),
    linear-gradient(135deg, #020617, #020617);
  box-shadow:
    0 40px 80px rgba(15,23,42,0.9),
    inset 0 0 0 1px rgba(148,163,184,0.25);
  max-width: 880px;
}

.li-v9-stat {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top, rgba(148,163,184,0.18), transparent 65%);
}

.li-v9-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9ca3af;
}

.li-v9-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

/* --------- TÍTULOS DE SECCIÓN ---------- */

.li-v9-section-title {
  font-size: 1.05rem;
  margin: 0 0 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
}

/* --------- CASOS MÁS VISTOS (tarjetas premium) ---------- */

.li-v9-top-cases {
  padding: 10px 18px 30px;
}

.li-v9-top-cases-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.li-v9-top-cases-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Tarjeta principal */

.li-v9-top-case {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 18px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236,72,153,0.35), transparent 55%),
    linear-gradient(145deg, #0f172a, #1e3a8a);
  box-shadow:
    0 28px 60px rgba(15,23,42,0.95);
  border: 1px solid rgba(248,250,252,0.14);
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    border-color 200ms ease-out,
    background 220ms ease-out;
}

.li-v9-top-case::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 65%);
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.li-v9-top-case:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 36px 80px rgba(15,23,42,0.98);
  border-color: rgba(251,191,36,0.7);
}

.li-v9-top-case:hover::after {
  opacity: 1;
}

/* Ranking */

.li-v9-top-case-rank {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 2px;
}

/* Contenido tarjeta */

.li-v9-top-case-title {
  font-size: 0.86rem;
  margin: 0 0 6px;
  color: #CDE4FF;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.li-v9-top-case-body-main {
  font-size: 1.08rem;
  margin: 0 0 4px;
  color: #FFFFFF;
  font-weight: 600;
}

.li-v9-top-case-body-location {
  font-size: 0.92rem;
  margin: 0;
  color: #E2E8F0;
}

/* Para compatibilidad con el contenido generado en JS,
   usamos .li-v9-top-case-meta y .li-v9-top-case-views tal cual */

.li-v9-top-case-meta {
  font-size: 0.92rem;
  margin: 0;
  color: #E2E8F0;
}

.li-v9-top-case-views {
  font-size: 0.84rem;
  margin-top: 8px;
  color: #7dd3fc;
  font-weight: 600;
}

/* --------- FILTROS RÁPIDOS ---------- */

.li-v9-extra-filters {
  padding: 4px 18px 22px;
}

.li-v9-extra-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.li-v9-filter-group {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  max-width: 220px;
  font-size: 0.84rem;
}

.li-v9-filter-group label {
  margin-bottom: 4px;
  color: #e5e7eb;
}

.li-v9-filter-group select {
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.9));
  color: #f9fafb;
  font-size: 0.84rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.li-v9-filter-group select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56,189,248,0.7);
}

.li-v9-filters-note {
  margin-top: 8px;
  font-size: 0.76rem;
  color: #9ca3af;
}

/* --------- BOTÓN FLOTANTE REPORTAR ---------- */

.li-v9-report-fab {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at top left, #fb923c, #ec4899);
  box-shadow:
    0 22px 52px rgba(0,0,0,0.85);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    opacity 200ms ease;
}

.li-v9-report-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.92);
  filter: brightness(1.05);
}

.li-v9-report-fab-icon {
  font-size: 1.18rem;
}

/* --------- TOAST NOTIFICACIONES ---------- */

.li-v9-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  bottom: 86px;
  max-width: min(480px, 92vw);
  background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  color: #f9fafb;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.84rem;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(251,113,133,0.7);
  box-shadow: 0 24px 56px rgba(15,23,42,1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9998;
}

.li-v9-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------- COLUMNA COMPARTIR ---------- */

.li-v9-share-col {
  text-align: center;
  white-space: nowrap;
}

.li-v9-share-btn {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.96);
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.li-v9-share-btn:hover {
  background: rgba(59,130,246,0.95);
  box-shadow: 0 10px 22px rgba(37,99,235,0.85);
  transform: translateY(-1px);
}

/* --------- EFECTO PULSO ---------- */

.li-v9-pulse {
  animation: li-v9-pulse-animation 1.2s ease-out 0s 2;
}

@keyframes li-v9-pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(248,113,113,0.8); }
  70% { box-shadow: 0 0 0 14px rgba(248,113,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(248,113,113,0); }
}

/* --------- RESPONSIVE ---------- */

@media (max-width: 860px) {
  .li-v9-stats {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .li-v9-header {
    padding-top: 28px;
  }
  .li-v9-top-cases {
    padding-inline: 12px;
  }
  .li-v9-top-cases-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .li-v9-top-case {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .li-v9-report-fab {
    right: 12px;
    bottom: 16px;
    padding-inline: 14px;
  }
  .li-v9-report-fab-text {
    display: none;
  }
}

/* Resaltado de fila cuando se accede por ?infiel=ID */
.li-v9-highlight {
  outline: 2px solid #fbbf24 !important;
  outline-offset: 2px;
  animation: li-v9-row-highlight 1.2s ease-in-out 0s 3;
}
@keyframes li-v9-row-highlight {
  0% { background-color: rgba(251,191,36,0.12); }
  50% { background-color: rgba(251,191,36,0.32); }
  100% { background-color: rgba(251,191,36,0.12); }
}
