/* leads-marketplace.css — Public /leads marketplace styles */

/* ── PAGE HEADER ─────────────────────────────── */
.mkt-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 3rem 3rem 0;
}

.mkt-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.mkt-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mkt-eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.mkt-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.mkt-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 540px;
}

.mkt-sub strong { color: var(--fg); }

.mkt-header-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.mkt-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 2rem;
}

.mkt-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.mkt-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mkt-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-top: 0.3rem;
}

.mkt-login-bar {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.mkt-login-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: color 0.2s;
}

.mkt-login-link:hover { color: var(--accent-light); }

/* ── FILTER BAR ────────────────────────────────── */
.mkt-filter-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 3rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mkt-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.filter-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
  white-space: nowrap;
}

.filter-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.2s;
  width: 160px;
}

.filter-input-sm { width: 100px; }
.filter-input:focus { outline: none; border-color: var(--accent); }
select.filter-input { cursor: pointer; }

.filter-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-price-sep { color: var(--fg-muted); font-size: 0.85rem; }

.filter-actions { display: flex; align-items: flex-end; gap: 0.75rem; }

.filter-btn-search {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.filter-btn-search:hover { background: var(--accent-light); }

.filter-btn-clear {
  color: var(--fg-muted);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.55rem 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.filter-btn-clear:hover { color: var(--accent); }

/* ── MAIN / GRID ───────────────────────────────── */
.mkt-main {
  padding: 2.5rem 3rem 4rem;
}

.mkt-empty {
  text-align: center;
  padding: 5rem 2rem;
}
.mkt-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.mkt-empty h2 { font-family: 'DM Serif Display', serif; margin-bottom: 0.75rem; }
.mkt-empty p { color: var(--fg-muted); }
.mkt-empty a { color: var(--accent); }

.mkt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── LEAD CARD ─────────────────────────────────── */
.lead-mkt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.lead-mkt-card:hover {
  border-color: rgba(200,133,58,0.4);
  box-shadow: 0 4px 24px rgba(200,133,58,0.07);
}

/* Score + Price row */
.lmc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.lmc-score-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lmc-score-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lmc-score-meta { display: flex; flex-direction: column; }
.lmc-score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  line-height: 1;
}

.lmc-score-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  margin-top: 0.2rem;
  display: inline-block;
}

.score-hot { background: rgba(200,133,58,0.15); color: var(--accent); }
.score-warm { background: rgba(232,168,90,0.12); color: var(--accent-light); }
.score-cold { background: rgba(244,237,224,0.07); color: var(--fg-muted); }

.lmc-price-wrap { text-align: right; }
.lmc-price {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--fg);
  display: block;
}
.lmc-price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

/* Location */
.lmc-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

.lmc-city { font-weight: 500; color: var(--fg); }
.lmc-zip { font-size: 0.78rem; color: var(--fg-muted); }

/* Meta tags */
.lmc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lmc-meta-tag {
  font-size: 0.73rem;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
}

/* Distress signals */
.lmc-signals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lmc-signal-count {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.lmc-signal-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.lmc-signal-tag {
  font-size: 0.73rem;
  color: var(--accent);
  background: rgba(200,133,58,0.08);
  border: 1px solid rgba(200,133,58,0.2);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
}

/* Teaser quote */
.lmc-teaser-wrap {
  background: rgba(200,133,58,0.05);
  border: 1px solid rgba(200,133,58,0.12);
  border-radius: 7px;
  padding: 0.75rem 1rem;
}

.lmc-teaser-lock {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.lmc-teaser-text {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.55;
  font-style: italic;
}

/* Contact hint */
.lmc-contact-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

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

/* Paywall CTA */
.lmc-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.lmc-gated-info { }

.lmc-gated-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
}

.lmc-gated-item {
  font-size: 0.73rem;
  color: var(--fg-muted);
}

.lmc-unlock-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.lmc-unlock-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.lmc-unlock-btn:active { transform: none; }

/* ── PAGINATION ─────────────────────────────────── */
.mkt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.mkt-page-btn {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mkt-page-btn:hover { color: var(--accent-light); }
.mkt-page-info { font-size: 0.85rem; color: var(--fg-muted); }

/* ── UNLOCK MODAL ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.modal-price-amt {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.modal-price-note {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-weight: 300;
}

.modal-input-wrap { margin-bottom: 0.85rem; }

.modal-email-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.modal-email-input::placeholder { color: var(--fg-muted); }
.modal-email-input:focus { outline: none; border-color: var(--accent); }

.modal-cta-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.modal-cta-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.modal-cta-btn:active { transform: none; }
.modal-cta-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.modal-error {
  color: #fca5a5;
  font-size: 0.83rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 6px;
}

.modal-footer-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.55;
  font-weight: 300;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.modal-dash-link {
  display: block;
  color: var(--accent);
  text-decoration: none;
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.modal-dash-link:hover { color: var(--accent-light); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .mkt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mkt-header { padding: 2rem 1.5rem 0; }
  .mkt-header-inner { flex-direction: column; }
  .mkt-header-stats { width: 100%; }
  .mkt-stat { padding: 1rem 1.25rem; }
  .mkt-filter-wrap { padding: 1rem 1.5rem; position: static; }
  .mkt-filter-bar { gap: 0.75rem; }
  .filter-input { width: 130px; }
  .filter-input-sm { width: 80px; }
  .mkt-main { padding: 1.5rem; }
  .mkt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .mkt-filter-bar { flex-direction: column; align-items: stretch; }
  .filter-input, .filter-input-sm { width: 100%; }
  .filter-price-row { flex: 1; }
  .filter-actions { flex-direction: row; }
  .modal-box { padding: 1.75rem 1.25rem; }
  .lmc-gated-items { grid-template-columns: 1fr; }
}
