@import 'shared.css';

.setup-shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.setup-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: rise-in 0.45s ease both;
}

.setup-hero .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--twitch) 0%, #6b2fd4 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 32px var(--twitch-glow);
}

.setup-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.setup-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
  font-size: 0.9rem;
}

.setup-ready {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  animation: rise-in 0.5s ease both;
}

.setup-ready.ok {
  background: rgba(92, 224, 160, 0.08);
  border: 1px solid rgba(92, 224, 160, 0.25);
}

.setup-ready.warn {
  background: rgba(232, 184, 74, 0.08);
  border: 1px solid rgba(232, 184, 74, 0.25);
}

.setup-ready strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.oauth-banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  animation: rise-in 0.35s ease both;
}

.oauth-banner.success {
  background: rgba(92, 224, 160, 0.1);
  border: 1px solid rgba(92, 224, 160, 0.3);
  color: var(--success);
}

.oauth-banner.error {
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.3);
  color: var(--danger);
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  padding: 1.35rem 1.5rem;
  animation: rise-in 0.5s ease both;
}

.step:nth-child(1) { animation-delay: 0.05s; }
.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(3) { animation-delay: 0.15s; }
.step:nth-child(4) { animation-delay: 0.2s; }
.step:nth-child(5) { animation-delay: 0.25s; }

.step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(200, 245, 66, 0.12);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.step h3 {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 0;
}

.step p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-left: calc(28px + 0.65rem);
}

.step-actions {
  padding-left: calc(28px + 0.65rem);
}

.step-detail {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--ink-border);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 0.85rem;
}

.setup-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.setup-footer a {
  margin: 0 0.35rem;
}
