/* ========================================================
   BOOKIFY ARCHIVE — PUBLISHING STUDIO (6-STEP WIZARD)
   ======================================================== */

.publish-page-wrap {
  min-height: 100vh;
  padding: 100px 24px 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wizard-card {
  background: #FFFFFF;
  width: min(880px, 100%);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.08);
}

.wizard-header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF9F6;
}

.wizard-header-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cobalt);
}

.wizard-step-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #F4F1EA;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  overflow-x: auto;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.step-node.active {
  color: var(--cobalt);
}

.step-node.completed {
  color: var(--green);
}

.step-num-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.step-node.active .step-num-pill {
  background: var(--cobalt);
  color: #FFFFFF;
}

.step-node.completed .step-num-pill {
  background: var(--green);
  color: #FFFFFF;
}

.step-line {
  width: 24px;
  height: 1px;
  background: rgba(20, 20, 20, 0.15);
  flex-shrink: 0;
}

.wizard-body {
  padding: 36px 32px;
  flex-grow: 1;
}

.wizard-step-content {
  display: none;
  flex-direction: column;
  gap: 22px;
  animation: fadeIn 0.25s var(--ease);
}

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

.wizard-step-content.active {
  display: flex;
}

.step-prompt-title {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.25;
}

.step-prompt-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(27, 59, 168, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wizard-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF9F6;
}

/* Step 5: Artisan Cover Upload & Color Palette */
.cover-upload-area {
  border: 2px dashed rgba(27, 59, 168, 0.35);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: #F8F9FD;
  transition: all 0.2s;
}

.cover-upload-area:hover {
  background: #EEF2FD;
  border-color: var(--cobalt);
}

.cover-preview-dual-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
}

.book-preview-3d-mock {
  width: 190px;
  height: 280px;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.25);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  box-sizing: border-box;
  color: #ECE8E0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 767px) {
  .publish-page-wrap {
    padding: 76px 12px 70px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cover-preview-dual-grid {
    grid-template-columns: 1fr;
  }
  .wizard-body {
    padding: 24px 18px;
  }
  .wizard-header {
    padding: 18px;
  }
}

/* Author Gate Card (When not logged in) */
.auth-gate-card {
  padding: 64px 32px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  animation: modalSlideUp 0.35s var(--ease);
}

.auth-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(27, 59, 168, 0.08);
  border: 1px solid rgba(27, 59, 168, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
  margin-bottom: 22px;
}

.auth-gate-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--ink);
  margin: 12px 0 8px;
  line-height: 1.2;
}

.auth-gate-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.auth-gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
}

