/* ArtDrop setup guide styles. Scoped to /help/{platform}-setup pages. */

/* Defensive: the shared nav-styles.css targets bare `nav` with position:fixed
   which would rip any <nav> in these pages (breadcrumb, footer-nav) out of
   the document flow. Force anything in .setup-wrap or .setup-hero to behave. */
.setup-hero nav,
.setup-wrap nav {
  position: static;
  top: auto; left: auto; right: auto;
  background: none;
  backdrop-filter: none;
  border: none;
  padding: 0;
  z-index: auto;
  display: block;
}

.setup-hero {
  padding: 140px 48px 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.setup-hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 0% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.setup-hero .breadcrumb,
.setup-hero .page-label,
.setup-hero .page-title,
.setup-hero .page-intro,
.setup-hero .hero-meta { position: relative; }

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.breadcrumb a {
  color: var(--lime);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.page-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--sans);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}

.page-intro {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.meta-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.setup-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}

/* Callouts */

.callout {
  border: 1px solid var(--border-bright);
  background: var(--bg2);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 32px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.75;
}

.callout code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--lime);
  word-break: break-word;
}

.callout strong { color: var(--white); font-weight: 600; }

.callout a {
  color: var(--lime);
  text-decoration: none;
}
.callout a:hover { text-decoration: underline; }

.callout-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

.callout-info { border-color: var(--border-bright); }
.callout-warn { border-left: 3px solid var(--lime); }
.callout-help { border-color: var(--lime); background: rgba(191,255,94,0.04); }

.callout-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.callout-list li {
  padding: 6px 0 6px 22px;
  color: var(--muted);
  position: relative;
}

.callout-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--lime);
  font-family: var(--mono);
}

.callout-list li strong { color: var(--white); }

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 40px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
  padding-bottom: 56px;
  position: relative;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--border-bright);
  transform: translateX(-0.5px);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime-dim);
  border: 1px solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--lime);
  font-weight: 500;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body {
  padding-top: 10px;
}

.step-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}

.step-title {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.step-body p:last-child { margin-bottom: 0; }

.step-body strong { color: var(--white); font-weight: 600; }

.step-body a {
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px dotted rgba(191,255,94,0.4);
}
.step-body a:hover { border-bottom-color: var(--lime); }

.step-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--lime);
  word-break: break-word;
}

.step-body em {
  font-style: normal;
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
}

.step-note {
  margin-top: 14px;
  padding: 14px 18px;
  border-left: 2px solid var(--lime);
  background: rgba(191,255,94,0.04);
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.sub-list,
.scope-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  counter-reset: sub;
}

.sub-list li {
  padding: 6px 0 6px 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  position: relative;
}

.sub-list li::before {
  counter-increment: sub;
  content: counter(sub) '.';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
  width: 24px;
  text-align: right;
}

.scope-list li {
  padding: 5px 0 5px 22px;
  color: var(--muted);
  position: relative;
}

.scope-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--lime);
}

/* Code blocks */

pre.code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 18px 20px;
  overflow-x: auto;
  color: var(--white);
  line-height: 1.6;
  margin: 14px 0 18px;
}

pre.code code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

/* Section nav */

.setup-nav {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.section-label-sm {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.setup-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.setup-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  text-decoration: none;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}

.setup-nav-card:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}

.setup-nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--lime);
}

.setup-nav-icon[data-platform="instagram"] { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.setup-nav-icon[data-platform="pinterest"] { background: #e60023; }
.setup-nav-icon[data-platform="facebook"] { background: #1877f2; }
.setup-nav-icon[data-platform="threads"] { background: #101010; border: 1px solid var(--border-bright); }
.setup-nav-icon[data-platform="bluesky"] { background: #0085ff; }

.setup-nav-label {
  flex: 1;
}

.setup-nav-arrow {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
}

.mt-sm { margin-top: 12px; }

/* Platform accents on hero */

.setup-hero[data-platform="instagram"] .page-label { color: #dd2a7b; }
.setup-hero[data-platform="pinterest"] .page-label { color: #e60023; }
.setup-hero[data-platform="facebook"] .page-label { color: #1877f2; }
.setup-hero[data-platform="threads"] .page-label { color: var(--white); }
.setup-hero[data-platform="bluesky"] .page-label { color: #0085ff; }

/* Responsive */

@media (max-width: 768px) {
  .setup-hero { padding: 110px 24px 48px; }
  .setup-wrap { padding: 48px 24px 80px; }
  .step { grid-template-columns: 44px 1fr; gap: 0 18px; padding-bottom: 40px; }
  .step:not(:last-child)::before { left: 22px; top: 44px; }
  .step-num { width: 44px; height: 44px; font-size: 15px; }
  .callout { padding: 22px 20px; }
  pre.code { padding: 14px 16px; font-size: 12px; }
}
