/* ────────────────────────────────────────────────────────────────────────
 * setup.css — IDE / agent-tool setup pack for llmdeal.me
 * Inherits global tokens from style-Dj_EuJWP.css (--bg, --bg-card, --accent…)
 * Page-local styles only; matches dashboard.html dark theme.
 * ──────────────────────────────────────────────────────────────────────── */

/* ── Page shell ─────────────────────────────────────────────────────── */
.setup-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.setup-hero {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 8px;
}
.setup-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 204, 102, 0.07);
  border: 1px solid rgba(0, 204, 102, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.setup-hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 18px;
}
.setup-hero h1 .accent {
  color: var(--accent);
}
.setup-hero p.sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Tab bar ────────────────────────────────────────────────────────── */
.tab-bar-wrap {
  position: sticky;
  top: 64px;
  z-index: 10;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.tab-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tab-bar::-webkit-scrollbar {
  height: 6px;
}
.tab-bar::-webkit-scrollbar-thumb {
  background: var(--border-hot);
  border-radius: 3px;
}
.tab-section-label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-fade);
  padding: 0 10px 0 12px;
  white-space: nowrap;
  border-left: 1px solid var(--border);
  margin-left: 4px;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}
.tab-section-label:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 6px;
}
.tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text);
  background: var(--bg-elev);
  text-decoration: none;
}
.tab-btn.active {
  color: var(--accent);
  background: rgba(0, 204, 102, 0.07);
  border-color: rgba(0, 204, 102, 0.3);
}
.tab-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Panels ─────────────────────────────────────────────────────────── */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tool intro card ────────────────────────────────────────────────── */
.tool-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 28px;
}
.tool-intro h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-intro h2 svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}
.tool-intro p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ── Step card ──────────────────────────────────────────────────────── */
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 204, 102, 0.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(0, 204, 102, 0.25);
  flex-shrink: 0;
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.step-body {
  padding: 20px 24px 24px;
}
.step-body p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 14px;
}
.step-body p:last-child {
  margin-bottom: 0;
}
.step-body a {
  color: var(--accent);
}

/* ── Code block w/ copy button ──────────────────────────────────────── */
.code-wrap {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 4px 0 4px;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-fade);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border-hot);
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 204, 102, 0.06);
}
.btn-copy.copied {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 204, 102, 0.1);
}
.btn-copy svg {
  width: 12px;
  height: 12px;
}
.code-wrap pre {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
}
.code-wrap pre code {
  background: transparent;
  padding: 0;
  border: 0;
  font-size: inherit;
  color: inherit;
}
/* Syntax-ish highlighting for placeholders */
.code-wrap .ph {
  color: var(--warn);
}
.code-wrap .key {
  color: #60a5fa;
}
.code-wrap .str {
  color: var(--accent);
}
.code-wrap .com {
  color: var(--text-fade);
  font-style: italic;
}

/* ── Inline meta row (key buttons under step 1) ─────────────────────── */
.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.step-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-hot);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
}
.step-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 204, 102, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}
.step-btn.primary {
  color: var(--accent);
  border-color: rgba(0, 204, 102, 0.5);
  background: rgba(0, 204, 102, 0.08);
}
.step-btn.primary:hover {
  background: rgba(0, 204, 102, 0.14);
}

/* ── Recommended-model callout ──────────────────────────────────────── */
.rec-model {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.rec-model-icon {
  flex-shrink: 0;
  color: #60a5fa;
  margin-top: 1px;
}
.rec-model-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.rec-model-text strong {
  color: var(--text);
  display: block;
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.rec-model-text code {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
  color: #93c5fd;
  font-size: 13px;
}

/* ── Troubleshooting list ───────────────────────────────────────────── */
.trouble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px 8px;
  margin-top: 12px;
  margin-bottom: 32px;
}
.trouble h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-fade);
  margin: 0 0 14px;
}
.trouble dl {
  margin: 0;
}
.trouble dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.trouble dt::before {
  content: "→ ";
  color: var(--warn);
  font-family: var(--mono);
}
.trouble dd {
  margin: 0 0 16px;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}
.trouble dd code {
  font-size: 12.5px;
}

/* ── Footer "verify against latest docs" note ───────────────────────── */
.verify-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.verify-note svg {
  color: var(--warn);
  flex-shrink: 0;
  margin-top: 2px;
}
.verify-note a {
  color: var(--warn);
  text-decoration: underline;
}

/* ── Footer CTA ─────────────────────────────────────────────────────── */
.setup-footer {
  text-align: center;
  margin-top: 56px;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.setup-footer h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 8px;
}
.setup-footer p {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 22px;
}
.setup-footer .footer-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Toast for copy feedback (a11y-friendly) ────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .setup-wrap {
    padding: 32px 16px 64px;
  }
  .setup-hero h1 {
    font-size: 30px;
  }
  .setup-hero p.sub {
    font-size: 16px;
  }
  .tab-bar-wrap {
    position: static;
    border-radius: 10px;
  }
  .tab-bar {
    flex-wrap: nowrap;
    padding: 4px;
    overflow-x: auto;
  }
  .tab-btn {
    flex-shrink: 0;
    padding: 9px 12px;
    font-size: 13px;
  }
  .tab-section-label {
    font-size: 9.5px;
    padding: 0 8px;
  }
  .step-head {
    padding: 14px 18px;
  }
  .step-body {
    padding: 16px 18px 20px;
  }
  .tool-intro {
    padding: 18px 20px;
  }
  .tool-intro h2 {
    font-size: 18px;
  }
  .code-wrap pre {
    font-size: 12.5px;
    padding: 14px 14px;
  }
  .trouble {
    padding: 18px 20px 4px;
  }
}
@media (max-width: 480px) {
  .tab-btn span.tab-label {
    font-size: 12.5px;
  }
  .setup-hero h1 {
    font-size: 26px;
  }
}
