/* ==========================================================================
   NOVA_PANEL.CSS — Nova Interaction V1: Clickable Presence Overlay
   Apex Nexus / Nova Bastion
   ========================================================================== */

/* ---------- Nova Interaction Section (inside existing Nova panel) -------- */
.nova-interact {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--border, #2d3348);
}

/* "Nova says" message */
.nova-interact__msg {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text, #e2e8f0);
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.7rem;
  background: rgba(99, 102, 241, 0.06);
  border-left: 2px solid var(--accent, #6366f1);
  border-radius: 0 6px 6px 0;
}

/* Primary action buttons */
.nova-interact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.nova-interact__btn {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border, #2d3348);
  border-radius: 8px;
  background: transparent;
  color: var(--text, #e2e8f0);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.nova-interact__btn:hover {
  border-color: var(--accent, #6366f1);
  background: var(--accent-dim, rgba(99, 102, 241, 0.1));
}

.nova-interact__btn--primary {
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

.nova-interact__btn--primary:hover {
  background: var(--accent-dim, rgba(99, 102, 241, 0.15));
}

/* Explain text area */
.nova-interact__explain {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted, #94a3b8);
  margin: 0.5rem 0 0.6rem;
  padding: 0.5rem 0.7rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  display: none;
}

.nova-interact__explain.is-visible {
  display: block;
}

/* Small preference links row */
.nova-interact__prefs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border, #2d3348);
}

.nova-interact__pref-link {
  background: none;
  border: none;
  color: var(--muted, #64748b);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.nova-interact__pref-link:hover {
  color: var(--accent, #6366f1);
}

/* Reset confirmation */
.nova-interact__reset-msg {
  font-size: 0.72rem;
  color: var(--accent, #6366f1);
  margin-top: 0.3rem;
  display: none;
}

.nova-interact__reset-msg.is-visible {
  display: block;
}

/* ---------- Alert Cues controls (V2.2) ---------------------------------- */
.nova-interact__cues {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #2d3348);
}
.nova-interact__cues-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted, #64748b);
  margin: 0 0 0.4rem;
}
.nova-interact__cue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  color: var(--text, #e2e8f0);
  cursor: pointer;
}
.nova-interact__cue-row input[type="checkbox"] {
  accent-color: var(--accent, #6366f1);
  width: 16px;
  height: 16px;
}
.nova-interact__cue-row input[type="range"] {
  width: 80px;
  accent-color: var(--accent, #6366f1);
}
.nova-interact__cue-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--muted, #64748b);
  margin-top: 0.2rem;
  min-height: 1em;
}

/* ---------- Nova Interaction Panel Root (dedicated overlay) -------------- */
#nova-panel-root {
  /* Exists as a mount point; nova_panel.js renders into existing panel */
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .nova-interact__btn {
    transition: none;
  }
  .nova-interact__pref-link {
    transition: none;
  }
}
