/* ux-popups.css — Estilos globais LiquidGlass para cards clicáveis fora de #page-predictions */

/* ── Variáveis LiquidGlass (espelha predictions-v7.css) ── */
:root {
  --lg-bg-base:  rgba(14, 16, 28, 0.55);
  --lg-bg-hover: rgba(20, 22, 40, 0.72);
  --lg-blur:     blur(18px) saturate(1.9);
  --lg-specular: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, transparent 60%);
}

/* ── Card clicável: versão global (sem escopo de aba) ── */
.lg-kpi-btn {
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(100,116,139,0.07) 0%, var(--lg-bg-base) 38%) !important;
  backdrop-filter: var(--lg-blur);
  -webkit-backdrop-filter: var(--lg-blur);
  transition: transform 200ms cubic-bezier(.34,1.56,.64,1),
              box-shadow 200ms ease,
              border-color 200ms ease,
              background 200ms ease;
}

/* Specular highlight no hover */
.lg-kpi-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lg-specular);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 200ms;
}

.lg-kpi-btn:hover::before { opacity: 1; }

/* Garantir que filhos ficam acima do ::before */
.lg-kpi-btn > * { position: relative; z-index: 1; }

.lg-kpi-btn:hover {
  transform: translateY(-3px) scale(1.01);
  background: linear-gradient(145deg, rgba(100,116,139,0.13) 0%, var(--lg-bg-hover) 38%) !important;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.35),
    0 0 20px rgba(100,116,139,0.08),
    0 0 0 1px rgba(255,255,255,0.07),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.lg-kpi-btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* ── Hint de clique no hover ── */
.lg-kpi-hint {
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 180ms, transform 180ms;
  display: inline-block;
  margin-left: 3px;
}

.lg-kpi-btn:hover .lg-kpi-hint {
  opacity: 0.7;
  transform: translateX(0);
}

/* ── Botão info inline em cards de mercado ── */
.lg-kpi-info-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms;
  line-height: 1;
  padding: 0;
}
.kpi-card:hover .lg-kpi-info-btn { opacity: 0.7; }
.lg-kpi-info-btn:hover { opacity: 1 !important; background: rgba(139,92,246,0.2) !important; color: #a78bfa !important; }
