/* ═══════════════════════════════════════════════════════
   F01 — RIC Inline: bolt ⚡ + bubble de términos
   z-index: 5000 (por encima de módulo, bajo Electron 9999)
═══════════════════════════════════════════════════════ */

/* ── Bolt button ── */
.ric-bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #F5C518;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0 3px;
  margin-left: 4px;
  vertical-align: middle;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.ric-bolt:hover { opacity: 1; }

/* Marca visual del término en el cuerpo (solo en body, no glosario) */
.ric-inline-term { border-bottom: 1px dotted rgba(245, 197, 24, 0.4); }

/* ── Bubble singleton ── */
#ric-bubble {
  position: fixed;
  z-index: 5000;
  width: 284px;
  background: #1A1A26;
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 12px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(245, 197, 24, 0.06);
  padding: 14px 14px 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #E8E8F0;
  display: none;
}
#ric-bubble.visible { display: block; }

.ric-bubble-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #555570;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 5px;
  line-height: 1;
  transition: color 0.15s;
}
.ric-bubble-close:hover { color: #E8E8F0; }

.ric-bubble-term {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #F5C518;
  margin-bottom: 6px;
  line-height: 1.2;
  padding-right: 20px;
}

.ric-bubble-def {
  color: #A8A8C0;
  line-height: 1.5;
  margin-bottom: 6px;
  font-size: 0.81rem;
}

.ric-bubble-ref {
  font-size: 0.7rem;
  color: #E8832A;
  margin-bottom: 11px;
}

/* ── Action buttons ── */
.ric-bubble-actions { display: flex; flex-direction: column; gap: 5px; }

.ric-bubble-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 197, 24, 0.05);
  border: 1px solid rgba(245, 197, 24, 0.16);
  border-radius: 7px;
  color: #D8D8EC;
  font-family: 'Barlow', sans-serif;
  font-size: 0.77rem;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, border-color 0.15s;
}
.ric-bubble-btn:hover {
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.32);
}
.ric-bubble-btn.ric-btn-disabled {
  opacity: 0.45;
  cursor: default;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: #888;
}
