/* Wizard styles — matches Glowbull dark theme */

.wizard-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.wizard-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.wizard-container {
  width: 100%;
  max-width: 640px;
}

/* Progress indicator */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
}
.wizard-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.wizard-step-dot.active { background: var(--accent); box-shadow: 0 0 8px rgba(245,166,35,0.5); }
.wizard-step-dot.done { background: var(--accent); opacity: 0.5; }
.wizard-progress-label {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Card */
.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.wizard-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.wizard-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.wizard-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Platform cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.platform-card:hover { border-color: var(--accent); }
.platform-card input[type="radio"] { display: none; }
.platform-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.platform-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
.platform-card-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.platform-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Goal cards */
.goal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.goal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.goal-card:hover { border-color: var(--accent); }
.goal-card input[type="radio"] { display: none; }
.goal-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.goal-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.goal-card.selected .goal-radio {
  border-color: var(--accent);
  background: var(--accent);
}
.goal-card.selected .goal-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
}
.goal-card-body h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.goal-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Form fields */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* CTA buttons */
.wizard-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.btn-primary-wizard {
  flex: 1;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-primary-wizard:hover { opacity: 0.9; }
.btn-primary-wizard:active { transform: scale(0.98); }
.btn-primary-wizard:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary-wizard {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary-wizard:hover { border-color: var(--text-muted); color: var(--text); }

/* Ad preview cards */
.variants-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
}
.ad-preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ad-preview-card:hover { border-color: var(--accent); }
.ad-preview-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.ad-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ad-preview-platform {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 4px;
}
.ad-preview-variant {
  font-size: 12px;
  color: var(--text-muted);
}
.ad-preview-headline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ad-preview-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.ad-preview-cta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* Loading state */
.wizard-loading {
  text-align: center;
  padding: 60px 40px;
}
.wizard-loading-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.wizard-loading-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.wizard-loading-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* Success / complete */
.wizard-complete {
  text-align: center;
  padding: 20px 0;
}
.wizard-complete-icon {
  font-size: 56px;
  color: var(--accent);
  margin-bottom: 20px;
}
.wizard-complete-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.wizard-complete-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Divider */
.wizard-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* Inline error */
.wizard-error {
  color: #e05555;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

@media (max-width: 600px) {
  .wizard-card { padding: 28px 24px; }
  .platform-grid { grid-template-columns: 1fr; }
  .wizard-title { font-size: 22px; }
}