/* SiteTailor Wizard Styles */

:root {
  --accent: #c4f542;
  --accent-dim: #a8d636;
  --accent-glow: rgba(196, 245, 66, 0.12);
  --fg: #e8e6e1;
  --fg-muted: #8a8894;
  --fg-dim: #5a5866;
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #18182a;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.wizard-body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wizard-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wizard-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wizard-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

/* Progress */
.progress-track {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 100px;
  margin-bottom: 3rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps */
.step {
  animation: fadeUp 0.4s ease both;
}

.step.hidden {
  display: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.step-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.step-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Business type grid */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.biz-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-family: var(--font-body);
  text-align: center;
}

.biz-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

.biz-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(196, 245, 66, 0.08);
}

.biz-icon {
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.biz-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

/* Vibe grid */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.vibe-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
  font-family: var(--font-body);
  text-align: center;
}

.vibe-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.vibe-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(196, 245, 66, 0.08);
}

.vibe-swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.vibe-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.vibe-desc {
  font-size: 0.68rem;
  color: var(--fg-muted);
  line-height: 1.3;
}

/* Name input */
.name-input-wrap {
  margin-bottom: 1.5rem;
}

.name-input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
}

.name-input::placeholder { color: var(--fg-dim); }
.name-input:focus { border-color: var(--accent); }

.name-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
}

/* Selection summary */
.selection-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

/* Action buttons */
.step-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-next,
.btn-generate {
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-next:hover:not(:disabled),
.btn-generate:hover:not(:disabled) {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-next:disabled,
.btn-generate:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.btn-generate {
  padding: 0.75rem 2rem;
}

.btn-generate-text { display: inline; }
.btn-spinner { display: inline-flex; }
.btn-spinner.hidden { display: none; }
.hidden { display: none !important; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-spinner svg { animation: spin 0.8s linear infinite; }

/* Generating animation */
.gen-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 2rem;
}

.gen-orbs {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.gen-orb {
  width: 16px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s ease-in-out infinite;
}

.gen-orb:nth-child(1) { height: 40px; animation-delay: 0s; }
.gen-orb:nth-child(2) { height: 60px; animation-delay: 0.15s; }
.gen-orb:nth-child(3) { height: 40px; animation-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

.gen-text {
  text-align: center;
}

.gen-text h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.gen-text p {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .vibe-grid { grid-template-columns: repeat(3, 1fr); }
  .step-title { font-size: 1.6rem; }
  .wizard-container { padding: 1.5rem 1rem 3rem; }
  .selection-summary { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 400px) {
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .vibe-grid { grid-template-columns: repeat(2, 1fr); }
}