/* ============================================================
   HomeOfferIQ — Buyer Analyzer Styles (buyer.html)
   ============================================================ */

/* ── LAYOUT ──────────────────────────────────────────────── */
nav { position: sticky; }

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { margin-bottom: 2.5rem; }

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-sub { color: var(--slate-300); font-size: 0.95rem; }

/* ── STEP INDICATOR ──────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-400);
}
.step-item.active { color: #60a5fa; }
.step-item.done   { color: var(--success); }

.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-connector {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 0.75rem;
}

/* ── PANEL ───────────────────────────────────────────────── */
.panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── FORM ────────────────────────────────────────────────── */
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-group  { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-300);
}

input[type="text"],
input[type="number"],
select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color 0.2s;
  appearance: none;
}
input:focus, select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.1);
}
input::placeholder { color: var(--slate-400); }
select option { background: var(--navy-800); }

/* ── PRIORITY SLIDERS ────────────────────────────────────── */
.priority-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.priority-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.priority-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.priority-label { font-size: 0.82rem; font-weight: 500; color: var(--slate-300); }
.priority-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #60a5fa;
  font-weight: 500;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  padding: 0;
  border: none;
  box-shadow: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]:focus { border-color: transparent; box-shadow: none; }

/* ── ACTION ROW ──────────────────────────────────────────── */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-analyze {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #60a5fa;
  color: var(--navy-950);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(96,165,250,0.25);
}
.btn-analyze:hover {
  background: #93c5fd;
  transform: translateY(-1px);
}

.hint-text { font-size: 0.8rem; color: var(--slate-400); }

/* ── RESULTS ─────────────────────────────────────────────── */
#results-section { display: none; }
#results-section.visible { display: block; }

.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── VERDICT BANNER ──────────────────────────────────────── */
.verdict-banner {
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.verdict-banner.strong {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
  border: 1px solid rgba(34,197,94,0.3);
}
.verdict-banner.moderate {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.04));
  border: 1px solid rgba(245,158,11,0.3);
}
.verdict-banner.weak {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04));
  border: 1px solid rgba(239,68,68,0.3);
}

.verdict-icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.verdict-content { flex: 1; }
.verdict-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.35rem;
}
.verdict-headline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.verdict-sub { font-size: 0.9rem; color: var(--slate-300); line-height: 1.5; }

.verdict-prob {
  text-align: center;
  flex-shrink: 0;
}
.prob-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
}
.prob-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.prob-label { font-size: 0.65rem; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.08em; }
.verdict-banner.strong  .prob-circle { color: var(--success); }
.verdict-banner.moderate .prob-circle { color: var(--warn); }
.verdict-banner.weak    .prob-circle { color: var(--danger); }

/* ── METRICS GRID ────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.metric-note { font-size: 0.78rem; color: var(--slate-400); }

/* ── OFFER RANGE ─────────────────────────────────────────── */
.offer-range-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.offer-range-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.range-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.range-option {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.range-option.conservative { background: rgba(255,255,255,0.02); }
.range-option.competitive  {
  background: rgba(96,165,250,0.08);
  border-color: rgba(96,165,250,0.3);
}
.range-option.strong {
  background: rgba(34,197,94,0.06);
  border-color: rgba(34,197,94,0.2);
}

.range-tier {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}
.range-option.competitive .range-tier { color: #60a5fa; }
.range-option.strong      .range-tier { color: var(--success); }

.range-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.range-win-prob { font-size: 0.8rem; color: var(--slate-400); }

/* ── MOTIVATION PANEL ────────────────────────────────────── */
.motivation-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.motivation-panel h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.motivation-bar-wrap {
  margin-bottom: 1.25rem;
}
.motivation-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}
.motivation-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.motivation-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #60a5fa, var(--success));
  transition: width 0.8s ease;
}

.motivation-signals { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.signal-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--slate-300);
}
.signal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.signal-dot.positive { background: var(--success); }
.signal-dot.negative { background: var(--danger); }
.signal-dot.neutral  { background: var(--slate-400); }

/* ── EDIT BUTTON ─────────────────────────────────────────── */
.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--slate-300);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.edit-btn:hover { border-color: #60a5fa; color: #60a5fa; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .priority-grid  { grid-template-columns: 1fr; }
  .metrics-grid   { grid-template-columns: 1fr 1fr; }
  .range-row      { grid-template-columns: 1fr; }
  .verdict-banner { flex-direction: column; text-align: center; }
}