/* ═══════════════════════════════════════════════════════════════
   HALO AI — Micro UI Styles
   Tooltips, nudge banners, AI indicators
   ═══════════════════════════════════════════════════════════════ */

/* ── Tooltip ── */
.halo-tooltip {
  position: fixed;
  display: none;
  padding: 6px 12px;
  background: rgba(10, 10, 20, 0.92);
  color: #e0e0e4;
  font-size: 11px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: 8px;
  border: 1px solid rgba(255, 78, 205, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: haloTipIn 0.15s ease;
}

@keyframes haloTipIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Nudge Banner ── */
.halo-nudge {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(255, 78, 205, 0.12), rgba(79, 220, 255, 0.08));
  border: 1px solid rgba(255, 78, 205, 0.25);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 8000;
  max-width: 90vw;
  animation: haloNudgeIn 0.3s ease;
}

@keyframes haloNudgeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.halo-nudge-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.halo-nudge-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--rt-text, #e0e0e4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.halo-nudge-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--rt-muted, #888);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.halo-nudge-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .halo-tooltip {
    display: none;
  }

  .halo-nudge {
    bottom: 76px;
    left: 12px;
    right: 12px;
    transform: none;
    max-width: none;
    border-radius: 14px;
    padding: 10px 14px;
  }

  @keyframes haloNudgeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .halo-nudge-text {
    font-size: 11px;
    white-space: normal;
  }
}

/* ── Light Theme ── */
[data-theme="light"] .halo-tooltip {
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a14;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .halo-nudge {
  background: linear-gradient(135deg, rgba(255, 78, 205, 0.08), rgba(79, 220, 255, 0.05));
  border-color: rgba(255, 78, 205, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
