/* Stellar Moves v2 — Guided / Professional styles (Phase 1).
 * The show/hide rules that switch experiences are inline in stellar_moves.html (critical CSS);
 * this file only carries visual styling and reuses the app's theme variables. */

/* ── Mode switch (header) ── */
.sm-mode-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.sm-mode-switch[hidden] { display: none; }
.sm-mode-switch button {
  position: relative; font-family: 'Cinzel', serif; font-size: .74rem; letter-spacing: .08em; white-space: nowrap;
  padding: .34rem .75rem; background: transparent; border: 0; color: var(--text-dim); cursor: pointer; transition: all .18s;
}
.sm-mode-switch button + button { border-left: 1px solid var(--border); }
.sm-mode-switch button:hover { color: var(--gold-pale); background: var(--panel2); }
.sm-mode-switch button[aria-pressed="true"] { background: var(--panel2); color: var(--gold); }
.sm-mode-switch button.sm-new::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.sm-mode-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ── Guided navigation (lives inside .tabs-wrapper, replacing the Professional tab bar while in Guided) ── */
.sm-gnav { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; align-items: stretch; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sm-gnav::-webkit-scrollbar { display: none; }
.sm-gnav-btn {
  flex-shrink: 0; padding: .72rem 1rem; background: transparent; border: 0; border-right: 1px solid var(--border);
  color: var(--text-dim); font-family: 'Cinzel', serif; font-size: .82rem; letter-spacing: .07em; white-space: nowrap; cursor: pointer; transition: all .18s;
}
.sm-gnav-btn:last-child { border-right: 0; }
.sm-gnav-btn:hover { background: var(--panel2); color: var(--gold-pale); }
.sm-gnav-btn.active { background: var(--panel2); color: var(--gold); border-bottom: 2px solid var(--gold); }
.sm-gnav-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* ── Guided pages: calmer, roomier, question-first ── */
.sm-gview { max-width: 1080px; margin: 0 auto; padding: .4rem .2rem 2rem; outline: none; }
.sm-ghead { margin: .9rem 0 1.5rem; }
.sm-gq { margin: 0 0 .35rem; color: var(--sky); font-size: .95rem; letter-spacing: .02em; }
.sm-ghead h2 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.7rem; font-weight: 600; letter-spacing: .06em; color: var(--gold); }
.sm-gintro { margin: .6rem 0 0; max-width: 62ch; color: var(--text-dim); font-size: 1rem; line-height: 1.6; }

.sm-gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.sm-gcard {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.2rem 1.25rem 1rem;
  display: flex; flex-direction: column; gap: .5rem; transition: border-color .18s;
}
.sm-gcard:hover { border-color: var(--border-hi); }
.sm-gcard h3 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-pale); }
.sm-gcard p { margin: 0; color: var(--text-dim); line-height: 1.55; flex: 1; }
.sm-gcard-foot { display: flex; align-items: center; gap: .7rem; margin-top: .3rem; }
.sm-gcard-tool { font-size: .74rem; color: var(--text-dim); opacity: .75; }

/* ── Active-profile bar ── */
.sm-gprofile { margin-bottom: .4rem; }
.sm-gbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .9rem; }
.sm-gbar-label { color: var(--text-dim); font-size: .82rem; }
.sm-gbar-name { color: var(--text); font-size: 1rem; font-weight: 500; }
.sm-gbar-meta { color: var(--text-dim); font-size: .8rem; }
.sm-gbar .btn:last-child { margin-left: auto; }
.sm-gpicker { list-style: none; margin: .5rem 0 0; padding: .4rem; display: grid; gap: .25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; max-height: 260px; overflow: auto; }
.sm-gpick { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; background: transparent; border: 0; border-radius: 5px; color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.sm-gpick em { font-style: normal; color: var(--text-dim); font-size: .78rem; }
.sm-gpick:hover { background: var(--panel2); }
.sm-gpick.current { background: var(--panel2); box-shadow: inset 3px 0 0 var(--gold); }

/* ── Ask Stellar Moves (placeholder) ── */
.sm-gask-box { display: flex; gap: .6rem; max-width: 640px; }
.sm-gask-box input { flex: 1; background: rgba(15,18,30,.7); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); padding: .65rem .8rem; font: inherit; opacity: .7; }
.sm-gask-note { max-width: 62ch; color: var(--text-dim); font-size: .9rem; line-height: 1.55; }
.sm-gask-lead { margin: 1.4rem 0 .5rem; color: var(--text-dim); }
.sm-gchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sm-gchip { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; color: var(--text); padding: .5rem .9rem; cursor: pointer; font: inherit; font-size: .9rem; }
.sm-gchip:hover { border-color: var(--gold); color: var(--gold-pale); }

@media (max-width: 640px) {
  .sm-gnav { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); }
  .sm-gnav-btn { padding: .65rem .8rem; font-size: .78rem; }
  .sm-ghead h2 { font-size: 1.4rem; }
  .sm-gcards { grid-template-columns: 1fr; }
  .sm-gask-box { flex-direction: column; }
}

/* ── My Stellar Life ── */
.sm-gid { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 1rem 0 1.2rem; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.sm-gid > div:first-child { flex: 1 1 260px; }
.sm-gid-name { font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--gold-pale); letter-spacing: .04em; }
.sm-gid-meta { margin-top: .2rem; color: var(--text-dim); font-size: .9rem; }
.sm-gid-status { font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }
.sm-gid-status.ready { color: var(--jade); border-color: rgba(78,217,138,.4); }
.sm-gid-status.pending { color: var(--amber); border-color: rgba(247,176,48,.4); }
.sm-gmods { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.sm-gmod { display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.25rem 1rem; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.sm-gmod h3 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--gold); letter-spacing: .05em; }
.sm-gmod-q { margin: 0; color: var(--sky); font-size: .88rem; }
.sm-gmod-empty { margin: .3rem 0 0; color: var(--text-dim); line-height: 1.55; flex: 1; }
.sm-gmod-state { align-self: flex-start; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); opacity: .7; border: 1px dashed var(--border); border-radius: 4px; padding: .12rem .45rem; }
.sm-gmod-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.sm-gempty { margin-top: 1.2rem; padding: 2rem 1.5rem; text-align: center; background: var(--panel); border: 1px dashed var(--border-hi); border-radius: 8px; }
.sm-gempty h3 { margin: 0 0 .4rem; font-family: 'Cinzel', serif; color: var(--gold); }
.sm-gempty p { margin: 0 0 1rem; color: var(--text-dim); }
.sm-gfoot { margin: 1.2rem 0 0; }

/* ── Tool view breadcrumb and locked cards ── */
.sm-gcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1rem; padding: .5rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.sm-gcrumb[hidden] { display: none; }
.sm-gcrumb-path { color: var(--text-dim); font-size: .85rem; }
.sm-gcard.locked { opacity: .78; border-style: dashed; }
.sm-glock { font-size: .8rem; }
