/* ================================================================
   setup_guide.css  —  Shared styles for all SpectrumSIM setup pages
   ================================================================ */

/* ─── GOOGLE FONTS ───────────────────────────────────────────── */
/*@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');
*/
/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --teal:           #00c2df;
  --teal-dark:      #0099b2;
  --teal-glow:      rgba(0, 194, 223, 0.15);
  --teal-faint:     rgba(0, 194, 223, 0.07);
  --ink:            #0d1b2a;
  --ink-mid:        #2c3e50;
  --ink-muted:      #5a6a7a;
  --surface:        #ffffff;
  --surface-2:      #f5fafc;
  --border:         #deedf2;
  --warn-bg:        #fff8ec;
  --warn-accent:    #f0a500;
  --success-bg:     #ecfdf8;
  --success-accent: #10b981;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,.06);
  --shadow-md:      0 6px 24px rgba(0,0,0,.09);
  --shadow-teal:    0 4px 20px rgba(0,194,223,.22);
}

/* ─── RESET / BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── PAGE WRAPPER ───────────────────────────────────────────── */
.setup-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ─── HERO HEADER ────────────────────────────────────────────── */
.setup-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #0a3040 55%, #004d60 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  margin: 100px 0 52px;
  position: relative;
  overflow: hidden;
}
.setup-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,223,.18) 0%, transparent 70%);
  pointer-events: none;
}
.setup-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,223,.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-glow);
  border: 1px solid rgba(0,194,223,.3);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.setup-hero h1 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
}
.setup-hero h1 span { color: var(--teal); }
.setup-hero .hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  position: relative;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
  position: relative;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.hero-meta-item svg { color: var(--teal); width: 16px; height: 16px; }

/* ─── PROGRESS BAR (sticky) ──────────────────────────────────── */
.progress-track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  margin-bottom: 44px;
  background: rgba(245, 250, 252, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 72px;   /* adjust to match your navbar height */
  z-index: 100;
}
.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.progress-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  border-radius: 100px;
  transition: width .5s ease;
}
.progress-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  white-space: nowrap;
}

/* ─── SECTION LABEL ──────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── STEP CARD ──────────────────────────────────────────────── */
.step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-card.reverse { direction: rtl; }
.step-card.reverse > * { direction: ltr; }

.step-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.step-number-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.step-body {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.75;
}
.step-body a { color: var(--teal-dark); font-weight: 500; }
.step-body a:hover { text-decoration: underline; }

.step-image-wrap {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 260px;
}
.step-image-wrap img {
  border-radius: var(--radius-md);
  max-height: 260px;
  object-fit: contain;
  width: 100%;
}

/* ─── CALLOUTS ───────────────────────────────────────────────── */
.callout-success {
  background: var(--success-bg);
  border: 1px solid rgba(16,185,129,.25);
  border-left: 4px solid var(--success-accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #065f46;
  margin-top: 4px;
}
.callout-success svg { flex-shrink: 0; margin-top: 2px; color: var(--success-accent); }

.callout-info {
  background: var(--teal-faint);
  border: 1px solid rgba(0,194,223,.2);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-mid);
  margin-top: 4px;
}
.callout-info svg { flex-shrink: 0; margin-top: 2px; color: var(--teal); }

/* ─── APN CODE BLOCK ─────────────────────────────────────────── */
.apn-code-block {
  background: var(--ink);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 16px 0 8px;
  position: relative;
  overflow: hidden;
}
.apn-code-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
}
.apn-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.apn-file-name {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  background: rgba(0,194,223,.12);
  padding: 3px 10px;
  border-radius: 5px;
  letter-spacing: .04em;
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.copy-btn:hover { background: rgba(0,194,223,.18); color: var(--teal); }
.copy-btn svg { width: 13px; height: 13px; }
.apn-code-lines {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.9;
}
.code-line { display: flex; align-items: center; gap: 10px; }
.code-key   { color: var(--teal); }
.code-eq    { color: rgba(255,255,255,.4); }
.code-val   { color: #f8f8f2; }
.code-blank { color: rgba(255,255,255,.25); font-style: italic; font-size: 12px; }

/* ─── TROUBLESHOOT SECTION ───────────────────────────────────── */
.troubleshoot-section { margin-top: 56px; }
.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.tip-card {
  background: var(--warn-bg);
  border: 1px solid rgba(240,165,0,.2);
  border-top: 4px solid var(--warn-accent);
  border-radius: var(--radius-md);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tip-card-header { display: flex; align-items: center; gap: 10px; }
.tip-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--warn-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-card-header span { font-size: 14px; font-weight: 700; color: #92400e; }
.tip-card p { font-size: 14px; color: #78350f; line-height: 1.65; }
.tip-card a { color: #92400e; font-weight: 600; }

/* ─── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #003d50, #006880);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,223,.15) 0%, transparent 70%);
}
.cta-banner-text h2 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.cta-banner-text p  { font-size: 14px; color: rgba(255,255,255,.6); }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--shadow-teal);
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.cta-btn:hover {
  background: #00ddf8;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,194,223,.35);
  text-decoration: none;
}
.cta-btn svg { width: 16px; height: 16px; }


/* ─── STEP PAIR ROW (no-image steps side by side) ───────────── */
.step-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.step-pair--single {
  grid-template-columns: 1fr;   /* lone step — full width */
}

/* Individual text-only step card */
.step-card-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.step-card-text:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
/* Full-width lone card — cap width for readability */
.step-pair--single .step-card-text {
  max-width: 100%;
}

@media (max-width: 720px) {
  .step-pair              { grid-template-columns: 1fr; gap: 16px; }
  .step-card-text         { padding: 28px 24px; }
}
/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .setup-hero      { padding: 36px 24px; margin: 120px 0 36px; border-radius: var(--radius-md); }
  .step-card       { grid-template-columns: 1fr; }
  .step-card.reverse { direction: ltr; }
  .step-content    { padding: 28px 24px; }
  .step-image-wrap { min-height: 200px; padding: 24px; }
  .cta-banner      { padding: 28px 24px; }
  .progress-track  { padding: 12px 18px; gap: 10px; top: 60px; }
  .progress-label  { display: none; }
  .troubleshoot-grid { grid-template-columns: 1fr; }
  .apn-code-block  { padding: 18px 20px; }
}
@media (max-width: 480px) {
  .setup-page { padding: 0 14px 60px; }
  .setup-hero h1 { font-size: 22px; }
  .hero-meta { gap: 14px; }
}
