/* ONBOARDING.CSS — Onboarding Agent V2.3 + Module Rating Prompts */

/* ── Onboarding Toast ─────────────────────────────────────────── */
.nx-onboard-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9200;
  background: var(--panel, #181c25);
  border: 1px solid var(--accent, #6366f1);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  max-width: 320px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  color: var(--text, #e2e8f0);
  animation: nx-onboard-in 0.35s ease-out;
}
.nx-onboard-toast__title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--accent, #6366f1);
}
.nx-onboard-toast__body {
  margin-bottom: 0.7rem;
  line-height: 1.45;
}
.nx-onboard-toast__actions {
  display: flex;
  gap: 0.5rem;
}
.nx-onboard-toast__actions button {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border, #2d3348);
  background: var(--surface, #1e2233);
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.15s;
}
.nx-onboard-toast__actions button:hover {
  background: var(--accent, #6366f1);
  color: #fff;
}
.nx-onboard-toast__close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* ── Tour Spotlight ───────────────────────────────────────────── */
.nx-tour-spotlight {
  position: absolute;
  border: 2px solid var(--accent, #6366f1);
  border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18),
    0 0 32px rgba(99, 102, 241, 0.12);
  pointer-events: none;
  z-index: 9190;
  transition: all 0.3s ease;
}
.nx-tour-tooltip {
  position: absolute;
  z-index: 9200;
  background: var(--panel, #181c25);
  border: 1px solid var(--accent, #6366f1);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  color: var(--text, #e2e8f0);
  animation: nx-onboard-in 0.25s ease-out;
}
.nx-tour-tooltip__text {
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.nx-tour-tooltip__step {
  font-size: 0.72rem;
  color: var(--muted, #64748b);
  margin-bottom: 0.4rem;
}
.nx-tour-tooltip__actions {
  display: flex;
  gap: 0.4rem;
}
.nx-tour-tooltip__actions button {
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--border, #2d3348);
  background: var(--surface, #1e2233);
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.nx-tour-tooltip__actions button:hover {
  background: var(--accent, #6366f1);
  color: #fff;
}

/* ── Module Rating Prompt ─────────────────────────────────────── */
.nx-rating-prompt {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9100;
  background: var(--panel, #181c25);
  border: 1px solid var(--border, #2d3348);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  max-width: 290px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.86rem;
  color: var(--text, #e2e8f0);
  animation: nx-onboard-in 0.3s ease-out;
}
.nx-rating-prompt__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.nx-rating-prompt__stars {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.nx-rating-prompt__stars button {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: color 0.12s;
  padding: 0;
  line-height: 1;
}
.nx-rating-prompt__stars button:hover,
.nx-rating-prompt__stars button.nx-star--active {
  color: #fbbf24;
}
.nx-rating-prompt__note {
  width: 100%;
  background: var(--surface, #1e2233);
  border: 1px solid var(--border, #2d3348);
  border-radius: 6px;
  color: var(--text, #e2e8f0);
  padding: 0.4rem 0.5rem;
  font-size: 0.8rem;
  resize: none;
  margin-bottom: 0.5rem;
  display: none; /* shown after star selection */
}
.nx-rating-prompt__footer {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.nx-rating-prompt__footer button {
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid var(--border, #2d3348);
  background: var(--surface, #1e2233);
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s;
}
.nx-rating-prompt__footer button:hover {
  background: var(--accent, #6366f1);
  color: #fff;
}
.nx-rating-prompt__thanks {
  color: var(--accent, #6366f1);
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 0;
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes nx-onboard-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nx-onboard-toast,
  .nx-tour-tooltip,
  .nx-rating-prompt {
    animation: none;
  }
  .nx-tour-spotlight {
    transition: none;
  }
}

/* ── Light Theme Overrides ────────────────────────────────────── */
[data-theme="aurora-light"] .nx-onboard-toast,
[data-theme="solar-light"] .nx-onboard-toast,
[data-theme="aurora-light"] .nx-tour-tooltip,
[data-theme="solar-light"] .nx-tour-tooltip,
[data-theme="aurora-light"] .nx-rating-prompt,
[data-theme="solar-light"] .nx-rating-prompt {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ══════════════════════════════════════════════════════════════════
   Nova Onboarding V1 — 3-step flow
   ══════════════════════════════════════════════════════════════════ */

.nova-onboard {
  padding: 2rem 1.5rem 1.5rem;
}

/* Progress */
.nova-onboard__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}
.nova-onboard__step-dots {
  display: flex;
  gap: 0.5rem;
}
.nova-onboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border, #2d3348);
  transition: background 0.25s, transform 0.25s;
}
.nova-onboard__dot--active {
  background: var(--accent, #6366f1);
}
.nova-onboard__dot--current {
  transform: scale(1.3);
  background: var(--accent, #6366f1);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}
.nova-onboard__step-label {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  letter-spacing: 0.02em;
}

/* Question */
.nova-onboard__q {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright, #f1f5f9);
  text-align: center;
  margin-bottom: 1.4rem;
  line-height: 1.4;
}

/* Option buttons */
.nova-onboard__options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.nova-onboard__opt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border, #2d3348);
  background: var(--surface, #1e2233);
  color: var(--text, #e2e8f0);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
  font-size: 0.9rem;
}
.nova-onboard__opt:hover {
  border-color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-1px);
}
.nova-onboard__opt--selected {
  border-color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}
.nova-onboard__opt-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.nova-onboard__opt-label {
  font-weight: 600;
  display: block;
  color: var(--text-bright, #f1f5f9);
}
.nova-onboard__opt-desc {
  font-size: 0.78rem;
  color: var(--muted, #64748b);
  display: block;
  margin-top: 0.1rem;
}

/* Card animation */
.nova-onboard__card {
  animation: nova-ob-fadein 0.3s ease-out;
}
@keyframes nova-ob-fadein {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Done state */
.nova-onboard__done {
  text-align: center;
  padding: 1rem 0;
}
.nova-onboard__done-icon {
  font-size: 2.2rem;
  color: var(--accent, #6366f1);
  margin-bottom: 0.8rem;
  animation: nova-ob-pulse 1.5s ease-in-out infinite;
}
@keyframes nova-ob-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.nova-onboard__msg {
  color: var(--text, #e2e8f0);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.nova-onboard__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  background: var(--accent, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nova-onboard__cta:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

/* Nav */
.nova-onboard__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #2d3348);
}
.nova-onboard__back,
.nova-onboard__skip {
  background: none;
  border: none;
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.nova-onboard__back:hover,
.nova-onboard__skip:hover {
  color: var(--text, #e2e8f0);
}

/* ── Nova Welcome Block (dashboard) ────────────────────────────── */
.nova-welcome {
  border: 1px solid var(--accent, #6366f1);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  background: rgba(99, 102, 241, 0.04);
  animation: nova-ob-fadein 0.4s ease-out;
}
.nova-welcome__greeting {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent, #6366f1);
  margin-bottom: 0.4rem;
}
.nova-welcome__msg {
  font-size: 0.88rem;
  color: var(--text, #e2e8f0);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.nova-welcome__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  background: var(--accent, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background 0.15s;
}
.nova-welcome__action:hover {
  background: #4f46e5;
}
.nova-welcome__dismiss {
  float: right;
  background: none;
  border: none;
  color: var(--muted, #64748b);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-top: -0.3rem;
}
.nova-welcome__dismiss:hover {
  color: var(--text, #e2e8f0);
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nova-onboard {
    padding: 1.2rem 1rem 1rem;
  }
  .nova-onboard__q {
    font-size: 1.05rem;
  }
  .nova-onboard__opt {
    padding: 0.7rem 0.9rem;
  }
}

/* ── Reduced Motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nova-onboard__card,
  .nova-welcome {
    animation: none;
  }
  .nova-onboard__done-icon {
    animation: none;
  }
  .nova-onboard__opt {
    transition: none;
  }
}
