/**
 * riven-module.css
 * Capa de estilos aislados para el módulo de Riven Vanilla JS.
 */

:root {
  --riven-bg-dark: #0f1015;
  --riven-card-bg: #1a1a24;
  --riven-purple: #9b59b6;
  --riven-purple-glow: rgba(155, 89, 182, 0.4);
  --riven-gold: #d4af37;
  --riven-cyan: #00e5ff;
  --riven-red: #e74c3c;
  --riven-text-main: #e2e8f0;
  --riven-text-dim: #94a3b8;
  --riven-border: #334155;
  --riven-border-focus: #475569;
  /* Paleta de grades unificada (misma que usa el HUD del escáner en JS) */
  --grade-s: #ffd700;
  --grade-a: #ff8c00;
  --grade-b: #00e5ff;
  --grade-c: #a879ec;
  --grade-f: #ff4d4d;
}

/* LAYOUT PRINCIPAL */
.riven-analyzer-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  background-color: var(--riven-bg-dark);
  color: var(--riven-text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.analyzer-top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.analyzer-col {
  background-color: var(--riven-card-bg);
  border: 1px solid var(--riven-border);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.left-col {
  flex: 1.2;
}

.center-col {
  flex: 1;
}

.right-col {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #231b2d 0%, var(--riven-card-bg) 100%);
}

/* RIVEN CARD PREVIEW (Holográfico 3D) */
.riven-preview-container {
  perspective: 1000px;
}

.riven-card-dynamic {
  width: 260px;
  background: linear-gradient(135deg, #1e132b 0%, #39224f 50%, #1e132b 100%);
  border: 2px solid #a38baf;
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--riven-purple-glow), inset 0 0 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.riven-card-dynamic:hover {
  transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 10px 30px var(--riven-purple-glow), inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.riven-card-dynamic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(160, 100, 220, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.riven-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.riven-polarity {
  font-size: 1.2rem;
  font-weight: bold;
}

.riven-rank-dots {
  display: flex;
  gap: 4px;
}

.rank-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #555;
}

.rank-dot.active {
  background: #fff;
  box-shadow: 0 0 5px #fff;
}

.riven-body {
  text-align: center;
}

.riven-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--riven-purple);
  text-shadow: 0 0 5px var(--riven-purple-glow);
  margin-bottom: 12px;
}

.riven-weapon-img {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 10px auto;
  display: block;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.riven-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-positive {
  color: #81a1c1;
}

.stat-negative {
  color: var(--riven-red);
}

.riven-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.85rem;
  color: #ccc;
}

/* VALUATION RESULTS */
.valuation-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.val-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--riven-border);
}

.val-row:last-child {
  border-bottom: none;
}

.price-est {
  font-size: 1.2rem;
  font-weight: bold;
}

.plat-text {
  color: var(--riven-gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.score-text {
  color: var(--riven-cyan);
  font-weight: bold;
}

/* MARKET INDEX */
.analyzer-bottom-section {
  margin-top: 20px;
}

.index-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.riven-search-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  background-color: #1e1e2d;
  border: 1px solid var(--riven-border);
  border-radius: 8px;
  color: white;
  outline: none;
  transition: border-color 0.2s;
}

.riven-search-input:focus {
  border-color: var(--riven-cyan);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.family-card {
  background-color: #1e1e2d;
  border: 1px solid var(--riven-border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.family-card:hover {
  transform: translateY(-2px);
  border-color: var(--riven-purple);
}

.family-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.family-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--riven-text-main);
}

.potential-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.score-high {
  background-color: rgba(0, 229, 255, 0.2);
  color: var(--riven-cyan);
  border: 1px solid var(--riven-cyan);
}

.score-med {
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--riven-gold);
  border: 1px solid var(--riven-gold);
}

.score-low {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--riven-red);
  border: 1px solid var(--riven-red);
}

.family-variants {
  font-size: 0.85rem;
  color: var(--riven-text-dim);
}

/* GRÁFICAS */
.chart-container-mini {
  margin-top: 20px;
  background: #111116;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--riven-border);
  height: 250px;
  /* Importante para que Chart.js tenga un límite */
}

/* ================================================================
   GOD ROLL STATS CARD (panel izquierdo, debajo de los botones)
   ================================================================ */
.recommended-god-roll-card {
  background-color: #1a1b23;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 18px;
}

.card-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.meta-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill-pos {
  background: rgba(0, 191, 255, 0.08);
  color: #00bfff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-neg {
  background: rgba(248, 113, 113, 0.08);
  color: #f87171;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.meta-stats-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px dotted rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 4px;
}

.text-yellow {
  color: #d4af37;
}

/* ================================================================
   RIVEN MARKET INDEX — PREMIUM CARD (index-item-card)
   ================================================================ */
.index-item-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 8px;
}

.index-item-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.06);
}

.index-item-card.expanded {
  border-color: rgba(212, 175, 55, 0.3);
}

/* Header row */
.index-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.index-card-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Weapon image area  */
.index-card-img-area {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
  cursor: default;
}

.index-card-img-area.has-variants {
  cursor: pointer;
}

.index-card-img-area.has-variants:hover {
  width: var(--hover-width, 58px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.ic-variants-inline-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  height: 100%;
}

/* Horizontal variant item matching the size  */
.index-card-img-area .variant-hover-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.index-card-img-area .variant-hover-item.active-variant {
  order: -1;
}

.index-card-img-area .variant-hover-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: filter 0.2s, transform 0.2s;
}

.index-card-img-area .variant-hover-item:hover img {
  transform: scale(1.08);
}

.index-card-img-area .variant-hover-item.active-variant img {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Info area */
.index-card-info-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.index-card-top-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.index-card-weapon-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

/* Prices row */
.index-card-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

.index-card-price-span,
.index-price-span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.price-label-small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.price-value-small {
  color: #e2e8f0;
  font-weight: 600;
}

.highlight-wfm {
  color: #f8fafc;
}

.price-separator {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 5px;
  font-size: 0.75rem;
}

/* Badges */
.index-badge-popularity,
.index-badge-trend {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.index-price-diff {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Quick tag pills */
.index-quick-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.index-quick-tag.positive {
  background: rgba(0, 191, 255, 0.08);
  color: #00bfff;
}

.index-quick-tag.negative {
  background: rgba(248, 113, 113, 0.08);
  color: #f87171;
}

/* Right area */
.index-card-right-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.index-card-expand-indicator {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.15s, transform 0.2s;
  line-height: 1;
}

.index-item-card.expanded .index-card-expand-indicator {
  transform: rotate(90deg);
  color: #d4af37;
}

/* Detail panel */
.index-item-details {
  padding: 12px 16px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.index-detail-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.index-detail-title {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.index-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.index-detail-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.index-detail-pill.pos-best {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.07);
}

.index-detail-pill.pos-worst {
  color: #f87171;
  background: rgba(248, 113, 113, 0.07);
}

.index-detail-pill.neg-best {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.07);
}

.index-detail-pill.neg-worst {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.07);
}
/* La tarjeta de tasación (.gsc) y las filas compactas del grader viven en
   css/components/riven-grader.css (este fichero no está enlazado en index.html). */

/* ============================================================
   TABLA COMPACTA DE STATS (stat | valor | ideal | grade)
   ============================================================ */
.stats-table {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px solid rgba(208, 96, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.stats-table .st-row {
  display: grid;
  grid-template-columns: 1fr auto auto 34px;
  align-items: center;
  column-gap: 10px;
  padding: 5px 10px;
  font-size: 0.76rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-table .st-row:last-child {
  border-bottom: none;
}

.stats-table .st-row:nth-child(even):not(.st-head) {
  background: rgba(255, 255, 255, 0.025);
}

.stats-table .st-head {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7aa0;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(208, 96, 255, 0.2);
}

.stats-table .st-name {
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.stats-table .st-row.neg .st-name,
.stats-table .st-row.neg .st-val {
  color: #ef4444;
}

.stats-table .st-val {
  font-weight: 800;
  color: #00ff88;
  text-align: right;
  white-space: nowrap;
}

.stats-table .st-ideal {
  color: #8a7aa0;
  font-size: 0.9em;
  text-align: right;
  white-space: nowrap;
}

.stats-table .st-grade {
  justify-self: center;
  min-width: 28px;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 0.72rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.stats-table .st-grade.grade-s {
  background: linear-gradient(135deg, var(--grade-s), #b8860b);
  color: #000;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.stats-table .st-grade.grade-a {
  background: linear-gradient(135deg, var(--grade-a), #c96a00);
  color: #000;
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.3);
}

.stats-table .st-grade.grade-b {
  background: linear-gradient(135deg, var(--grade-b), #0099cc);
  color: #000;
}

.stats-table .st-grade.grade-c {
  background: linear-gradient(135deg, var(--grade-c), #6a4b9c);
  color: #fff;
}

.stats-table .st-grade.grade-f {
  background: #2a2a33;
  color: #888;
}

/* Badge del hero con la MISMA paleta unificada que la tabla y el HUD (S oro, A naranja,
   B cyan, C púrpura) — las clases globales de styles.css usan otra paleta antigua. */
.gsc-badge.grade-s { background: linear-gradient(135deg, var(--grade-s), #b8860b); color: #000; }
.gsc-badge.grade-a { background: linear-gradient(135deg, var(--grade-a), #c96a00); color: #000; }
.gsc-badge.grade-b { background: linear-gradient(135deg, var(--grade-b), #0099cc); color: #000; }
.gsc-badge.grade-c { background: linear-gradient(135deg, var(--grade-c), #6a4b9c); color: #fff; }
.gsc-badge.grade-f { background: #2a2a33; color: #888; }

/* ---- Carrusel de curiosidades de mercado ----
   Dos instancias: el global del índice y el de la ficha del arma. Mismo componente, el de la ficha
   solo cambia márgenes. El chip de color es la lectura rápida: verde sube, rojo cae, ámbar humo. */
.riven-curiosidades {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 20px;
  padding: 10px 10px 10px 12px;
  background: linear-gradient(90deg, rgba(155, 89, 182, 0.10), rgba(0, 0, 0, 0.24) 45%);
  border: 1px solid rgba(155, 89, 182, 0.22);
  border-radius: 10px;
}
.riven-curiosidades.hidden { display: none; }
.riven-curiosidades-arma { margin: 12px 0 0; padding: 8px 8px 8px 10px; }

.curio-viewport { flex: 1 1 auto; min-width: 0; }

.curio-texto { display: flex; align-items: flex-start; gap: 10px; }
.curio-frase.curio-entra { animation: curio-in 0.35s ease-out; }
@keyframes curio-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .curio-frase.curio-entra { animation: none; }
}

.curio-icon {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}
.curio-cuerpo { flex: 1 1 auto; min-width: 0; }
/* Con wrap: los tres rótulos (tipo, fechas y "1d tras el weekly") llevan nowrap y en un móvil
   de 390 px el tercero se salía de la tarjeta por la derecha. */
.curio-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-bottom: 3px; }

.curio-chip {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.curio-t-sube   { background: rgba(74, 222, 128, 0.16); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.35); }
.curio-t-baja   { background: rgba(248, 113, 113, 0.16); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.35); }
.curio-t-humo   { background: rgba(234, 179, 8, 0.16); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.35); }
.curio-t-pincha { background: rgba(96, 165, 250, 0.16); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.35); }
.curio-t-global { background: rgba(197, 154, 252, 0.16); color: #c59afc; border: 1px solid rgba(197, 154, 252, 0.35); }

.curio-fecha { font-size: 11.5px; color: #6b7280; white-space: nowrap; }

.curio-frase { font-size: 14.5px; line-height: 1.5; color: #dbe3ee; }
.curio-texto:hover .curio-frase { color: #e8eef7; }
.curio-frase b { color: #e8eef7; }
.curio-arma   { color: #c59afc; font-weight: 700; }
.curio-sube   { color: #4ade80; font-weight: 700; }
.curio-baja   { color: #f87171; font-weight: 700; }
.curio-quieto { color: #8fa3bf; font-style: italic; }

.curio-nav {
  flex: 0 0 auto;
  width: 26px; height: 54px;
  background: transparent;
  border: 1px solid rgba(155, 89, 182, 0.22);
  border-radius: 6px;
  color: #c59afc;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.curio-nav:hover { background: rgba(155, 89, 182, 0.18); }

.curio-dots { display: flex; gap: 4px; margin-top: 8px; padding-left: 56px; }
.curio-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(197, 154, 252, 0.28);
  transition: background 0.2s ease;
}
.curio-dots span.on { background: #c59afc; }

@media (max-width: 640px) {
  .curio-nav { width: 30px; }        /* dedo, no ratón */
  .curio-icon { width: 36px; height: 36px; }
  .curio-frase { font-size: 13.5px; }
  .curio-dots { padding-left: 46px; }
}

/* Marca los movimientos que caen justo tras la publicación semanal de DE: son reacción al dato
   nuevo, no vaivén. Solo se pinta cuando aplica, así que destaca por rareza. */
.curio-weekly {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* Secciones "meh" de la guía plegadas por defecto. Son 18 stats de relleno que empujaban lo
   accionable (BEST y WORST) fuera de la pantalla. <details> nativo: sin JS y accesible por teclado. */
.guia-plegable { margin-top: 6px; }
.guia-plegable > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  cursor: pointer;
  list-style: none;
  padding: 3px 0;
  user-select: none;
}
.guia-plegable > summary::-webkit-details-marker { display: none; }
.guia-plegable > summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 9px;
  opacity: 0.65;
  transition: transform 0.18s ease;
}
.guia-plegable[open] > summary::after { transform: rotate(180deg); }
.guia-plegable > summary:hover { color: #cbd5e1; }
.guia-plegable > div { padding-top: 3px; }
.guia-punto { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }


/* ---- Filtros del índice ---- */
/* Anclado a #index-filters-bar y con prefijo propio: riven-module.css se carga DESPUÉS de
   styles.css, así que un selector genérico aquí ganaría en toda la app (ya pasó con .inv-row
   en orders.css). */
#index-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#index-filters-bar .riven-index-filter {
    padding: 8px 10px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(162, 53, 226, 0.3);
    color: #fff;
    border-radius: 6px;
}

#index-filters-bar .riven-index-price {
    width: 110px;
}

#index-filters-bar .riven-index-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #c9c2d6;
    cursor: pointer;
    user-select: none;
}

#index-filters-bar .riven-index-check input {
    accent-color: #a235e2;
    cursor: pointer;
}

#index-filters-bar .riven-index-reset {
    padding: 7px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #c59afc;
    background: rgba(155, 89, 182, 0.12);
    border: 1px solid rgba(155, 89, 182, 0.35);
    border-radius: 6px;
    cursor: pointer;
}

#index-filters-bar .riven-index-reset:hover {
    background: rgba(155, 89, 182, 0.25);
}

/* Cuántas se enseñan de cuántas hay. rem y no em: cuelga del contenedor del índice y
   encadenar otro 0.x em lo dejaría por debajo de lo legible. */
#index-results-container .riven-index-count {
    display: block;
    margin-bottom: 10px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #9a8fb0;
    font-variant-numeric: tabular-nums;
}

#index-results-container .riven-index-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 18px;
    text-align: center;
    color: #c9c2d6;
    font-weight: 600;
    background: rgba(155, 89, 182, 0.05);
    border: 1px dashed rgba(155, 89, 182, 0.3);
    border-radius: 8px;
}

#index-results-container .riven-index-empty-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: #8b8397;
}

/* Aviso de "los precios son orientativos". Estaba debajo del escaparate de armas, en la columna
   derecha, como un párrafo largo en mayúsculas; aquí ocupa el hueco muerto que quedaba bajo los
   botones y la columna derecha se queda solo con las tarjetas. */
#mode-riven .riven-disclaimer {
    margin: 16px 0 0;
    font-size: 0.62rem;
    line-height: 1.55;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
