/* ─── Guided Workflow CSS ────────────────────────────────────────────────────
   Sprint D — Guided Transaction Experience (D7: Visual Prototype)
   Soft functional color system — Brand: Black + Gold preserved.
   Transaction/Property workspace is the visual prototype.
   Existing global navigation and brand remain intact.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── YOUR NEXT MOVE card ────────────────────────────────────────────────────── */
.gw-next-move {
  background: #fff;
  border: 1.5px solid var(--gold, #c8a96e);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

.gw-next-move::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #c8a96e), #e8c97e, var(--gold, #c8a96e));
}

.gw-nm-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark, #a07540);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gw-nm-eyebrow .gw-fire { font-size: 14px; }

.gw-nm-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1, var(--text));
  margin-bottom: 4px;
  line-height: 1.35;
}

.gw-nm-meta {
  font-size: 12px;
  color: var(--text-2, #555);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gw-nm-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.gw-nm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ── Action buttons (D2 — Universal Workflow Action Types) ─────────────────── */
.gw-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.gw-action-btn:hover { opacity: .85; transform: translateY(-1px); }
.gw-action-btn:active { transform: translateY(0); }

.gw-action-email {
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.30);
  color: #1d4ed8;
}

.gw-action-text {
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.25);
  color: #1d4ed8;
}

.gw-action-call {
  background: rgba(139,92,246,.10);
  border-color: rgba(139,92,246,.30);
  color: #6d28d9;
}

.gw-action-training {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.25);
  color: #6d28d9;
}

.gw-action-sop {
  background: rgba(139,92,246,.08);
  border-color: rgba(139,92,246,.25);
  color: #6d28d9;
}

.gw-action-tool {
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.20);
  color: #1e40af;
}

.gw-action-other,
.gw-action-schedule {
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.25);
  color: #065f46;
}

.gw-action-physical {
  background: rgba(251,146,60,.10);
  border-color: rgba(251,146,60,.25);
  color: #c2410c;
}

/* Complete / Mark Done button */
.gw-action-complete {
  background: var(--gold, #c8a96e);
  border-color: var(--gold, #c8a96e);
  color: #fff;
  font-weight: 700;
}

.gw-action-complete:hover {
  background: #b8996e;
  border-color: #b8996e;
  opacity: 1;
}

/* ── Stage progress header ──────────────────────────────────────────────────── */
.gw-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2, #f8f8f8);
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--border, #e5e5e5);
}

.gw-stage-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2, #555);
}

.gw-stage-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1, var(--text));
  margin-top: 2px;
}

.gw-stage-progress-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-progress-track {
  width: 120px;
  height: 6px;
  background: var(--border, #e5e5e5);
  border-radius: 3px;
  overflow: hidden;
}

.gw-progress-fill {
  height: 100%;
  background: var(--gold, #c8a96e);
  border-radius: 3px;
  transition: width .3s ease;
}

.gw-progress-fill.complete {
  background: #10b981;
}

.gw-progress-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2, #555);
  white-space: nowrap;
}

/* ── COMING NEXT preview ───────────────────────────────────────────────────── */
.gw-coming-next {
  padding: 10px 16px;
  background: var(--surface-2, #f8f8f8);
  border: 1px dashed var(--border, #ddd);
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3, #999);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gw-coming-next strong {
  color: var(--text-2, #666);
  font-weight: 600;
}

/* ── Template preview modal (D3) ────────────────────────────────────────────── */
.gw-tpl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9100;
  padding: 20px;
}

.gw-tpl-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 28px;
  position: relative;
}

.gw-tpl-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-2, #666);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.gw-tpl-modal-close:hover { background: var(--surface-2, #f5f5f5); }

.gw-tpl-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold-dark, #a07540);
  margin-bottom: 4px;
}

.gw-tpl-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1, var(--text));
  margin-bottom: 6px;
}

.gw-tpl-id-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2, #f0f0f0);
  color: var(--text-2, #555);
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.gw-tpl-not-imported {
  background: rgba(251,146,60,.10);
  border: 1px solid rgba(251,146,60,.30);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.gw-tpl-not-imported-title {
  font-weight: 600;
  color: #c2410c;
  margin-bottom: 4px;
  font-size: 13px;
}

.gw-tpl-not-imported p {
  font-size: 12px;
  color: var(--text-2, #555);
  margin: 0;
}

.gw-tpl-subject-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3, #888);
  margin-bottom: 3px;
}

.gw-tpl-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1, var(--text));
  padding: 8px 12px;
  background: var(--surface-2, #f8f8f8);
  border-radius: 6px;
  margin-bottom: 12px;
}

.gw-tpl-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-1, var(--text));
  padding: 14px;
  background: var(--surface-2, #f9f9f9);
  border-radius: 8px;
  white-space: pre-wrap;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border, #e5e5e5);
  margin-bottom: 14px;
}

.gw-tpl-missing-fields {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.20);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #b91c1c;
}

.gw-tpl-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Phase completion celebration banner (D8) ──────────────────────────────── */
.gw-phase-complete-banner {
  background: linear-gradient(135deg, rgba(200,169,110,.15), rgba(232,201,126,.20));
  border: 1.5px solid var(--gold, #c8a96e);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: gw-banner-in .4s ease;
}

.gw-phase-complete-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.gw-phase-complete-banner-text {
  flex: 1;
}

.gw-phase-complete-banner-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-1, var(--text));
}

.gw-phase-complete-banner-sub {
  font-size: 12px;
  color: var(--text-2, #555);
  margin-top: 2px;
}

@keyframes gw-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step rows — soft functional color enhancement ─────────────────────────── */
/* Override existing ws-step-row for active current-phase steps */
.ws-phase-active .ws-step-row:not(.ws-step-done):not(.ws-step-na):first-of-type {
  background: rgba(200,169,110,.06);
  border-left: 3px solid var(--gold, #c8a96e);
  padding-left: 9px;
}

/* ── All-complete state ─────────────────────────────────────────────────────── */
.gw-all-complete {
  text-align: center;
  padding: 32px 20px;
  background: rgba(16,185,129,.06);
  border: 1.5px solid rgba(16,185,129,.25);
  border-radius: 12px;
  margin-bottom: 20px;
}

.gw-all-complete-icon { font-size: 36px; margin-bottom: 8px; }
.gw-all-complete-title { font-size: 16px; font-weight: 700; color: #065f46; margin-bottom: 4px; }
.gw-all-complete-sub   { font-size: 12px; color: var(--text-2, #555); }

/* ── Mobile / ADHD layout (D10) ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gw-next-move { padding: 14px 14px; }
  .gw-nm-actions { gap: 6px; }
  .gw-action-btn { padding: 7px 12px; font-size: 11px; }
  .gw-stage-header { flex-direction: column; align-items: flex-start; }
  .gw-progress-track { width: 100%; }
  .gw-stage-progress-bar { width: 100%; }
  .gw-tpl-modal { padding: 18px; }
  .gw-coming-next { flex-direction: column; gap: 4px; }
}

/* ── Academy categories (D6) ─────────────────────────────────────────────────
   Extended category visual chips for workflow-stage filtering               */
.gw-academy-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
}

.gw-academy-cat:hover    { opacity: .85; }
.gw-academy-cat.active   { border-color: currentColor; }

.gw-cat-buyers      { background: rgba(59,130,246,.10);  color: #1d4ed8;  }
.gw-cat-listings    { background: rgba(16,185,129,.10);  color: #065f46;  }
.gw-cat-transactions{ background: rgba(200,169,110,.15); color: #92400e;  }
.gw-cat-marketing   { background: rgba(251,146,60,.10);  color: #c2410c;  }
.gw-cat-start-here  { background: rgba(139,92,246,.10);  color: #6d28d9;  }
.gw-cat-crm         { background: rgba(59,130,246,.08);  color: #1e40af;  }
.gw-cat-sales       { background: rgba(200,169,110,.12); color: #78350f;  }
