/* ════════════════════════════════════════════════════════════════
   ALYX — RECOMMENDED KEYS & SCALES (CSS)
   ────────────────────────────────────────────────────────────────
   La recomendación es atmosférica, no semafórica. La diferencia entre
   "fuerte" / "alternativa" / "rara" se expresa por PROFUNDIDAD VISUAL,
   no por color de aviso.

     · strong → pill rellena, presencia plena
     · alt    → pill solo perfilada, peso medio
     · rare   → pill ghost (.55 opacidad), invita curiosidad sin gritar

   No hay botón de expand. Todas las tiers se muestran siempre — las
   raras simplemente recedidas, presentes en periferia.

   Active state (la pill coincide con la selección actual): glow purple
   suave + texto encendido. NO un borde fuerte: la decisión del usuario
   se percibe iluminada, no "checked".
   ════════════════════════════════════════════════════════════════ */

/* Container — oculto cuando no hay emoción seleccionada */
.alyx-rec-row {
  display: none;
  flex-wrap: wrap;
  gap: 3px;
  align-items: center;
  margin: 5px 0 3px;
  padding: 0;
  min-height: 0;
}
.alyx-rec-row.is-visible {
  display: flex;
}

/* Label whisper ("for grief") — un susurro, no un header */
.alyx-rec-row .rec-label {
  font-size: 9px;
  letter-spacing: .3px;
  text-transform: lowercase;
  color: rgba(232, 224, 248, .35);
  margin-right: 4px;
  font-weight: 400;
  font-style: italic;
}

/* ── Pill base ────────────────────────────────────────────────── */
.alyx-rec-row .rec-pill {
  appearance: none;
  display: inline-block;
  padding: 3px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .15px;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .12s ease,
    opacity .18s ease,
    box-shadow .18s ease;
  white-space: nowrap;
  line-height: 1.25;
}

/* ── Strong — presencia plena, "naturalmente encaja" ──────────── */
.alyx-rec-row .rec-strong {
  background: rgba(167, 139, 250, .10);
  border-color: rgba(167, 139, 250, .18);
  color: rgba(232, 224, 248, .92);
}
.alyx-rec-row .rec-strong:hover {
  background: rgba(167, 139, 250, .18);
  border-color: rgba(167, 139, 250, .32);
  color: rgba(248, 244, 255, 1);
  transform: translateY(-1px);
}

/* ── Alt — sólo perfilada, "también podría servir" ────────────── */
.alyx-rec-row .rec-alt {
  background: transparent;
  border-color: rgba(255, 255, 255, .12);
  color: rgba(232, 224, 248, .65);
}
.alyx-rec-row .rec-alt:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .22);
  color: rgba(232, 224, 248, .92);
  transform: translateY(-1px);
}

/* ── Rare — ghost, "si te atreves" ────────────────────────────── */
.alyx-rec-row .rec-rare {
  background: transparent;
  border-color: transparent;
  color: rgba(232, 224, 248, .38);
  opacity: .75;
}
.alyx-rec-row .rec-rare:hover {
  background: rgba(255, 255, 255, .035);
  color: rgba(232, 224, 248, .82);
  opacity: 1;
  transform: translateY(-1px);
}

/* ── Active state — la pill que coincide con la selección ─────
   Glow purple suave, no borde duro. La decisión del usuario se ve
   "iluminada", no marcada como un checkbox. */
.alyx-rec-row .rec-pill.is-active,
.alyx-rec-row .rec-pill.is-active:hover {
  background: linear-gradient(180deg,
    rgba(167, 139, 250, .26),
    rgba(139, 92, 246, .14));
  border-color: rgba(167, 139, 250, .55);
  color: rgba(248, 244, 255, 1);
  opacity: 1;
  box-shadow:
    0 0 14px rgba(139, 92, 246, .18),
    inset 0 0 6px rgba(167, 139, 250, .08);
  transform: translateY(0);
}

/* ── Focus accessibility ───────────────────────────────────────── */
.alyx-rec-row .rec-pill:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(167, 139, 250, .55),
    0 0 12px rgba(139, 92, 246, .18);
}

/* ── Compact layout en sidebar estrecho ───────────────────────── */
@media (max-width: 1100px) {
  .alyx-rec-row .rec-label { display: none; }
}

/* ── Light theme parity ────────────────────────────────────────── */
[data-theme="light"] .alyx-rec-row .rec-label  { color: rgba(40, 25, 70, .42); }

[data-theme="light"] .alyx-rec-row .rec-strong {
  background: rgba(139, 92, 246, .10);
  border-color: rgba(139, 92, 246, .22);
  color: rgba(30, 15, 70, .92);
}
[data-theme="light"] .alyx-rec-row .rec-strong:hover {
  background: rgba(139, 92, 246, .18);
  border-color: rgba(139, 92, 246, .42);
  color: rgba(20, 10, 60, 1);
}

[data-theme="light"] .alyx-rec-row .rec-alt {
  border-color: rgba(0, 0, 0, .14);
  color: rgba(40, 25, 70, .65);
}
[data-theme="light"] .alyx-rec-row .rec-alt:hover {
  background: rgba(0, 0, 0, .035);
  border-color: rgba(0, 0, 0, .25);
  color: rgba(20, 10, 60, .92);
}

[data-theme="light"] .alyx-rec-row .rec-rare {
  color: rgba(40, 25, 70, .42);
}
[data-theme="light"] .alyx-rec-row .rec-rare:hover {
  background: rgba(0, 0, 0, .03);
  color: rgba(20, 10, 60, .82);
}

[data-theme="light"] .alyx-rec-row .rec-pill.is-active,
[data-theme="light"] .alyx-rec-row .rec-pill.is-active:hover {
  background: linear-gradient(180deg, rgba(139, 92, 246, .22), rgba(109, 63, 223, .14));
  border-color: rgba(109, 63, 223, .55);
  color: rgba(20, 10, 50, 1);
  box-shadow:
    0 0 14px rgba(139, 92, 246, .18),
    inset 0 0 6px rgba(139, 92, 246, .08);
}
