/* ── Discovery UI Styles ──
   Extends the landing page theme.css tokens:
   --bg, --bg-2, --bg-3, --fg, --fg-muted, --accent, --accent-dim,
   --accent-glow, --border, --font-head, --font-body
*/

.nav-active { color: var(--accent) !important; }

/* ── Header ── */
.discovery-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 72px 48px 48px;
  position: relative;
  overflow: hidden;
}
.discovery-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(232,184,75,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.discovery-header-inner { position: relative; z-index: 1; }
.profile-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.profile-company {
  font-family: var(--font-head); font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; color: var(--fg); margin-bottom: 16px; line-height: 1.1;
}
.profile-meta {
  display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg-muted);
  flex-wrap: wrap;
}
.profile-meta .sep { color: var(--border); }

/* ── Two-Column Main ── */
.discovery-main {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  min-height: calc(100vh - 200px);
}

/* ── Left Panel ── */
.discovery-left {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.panel {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.panel-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  color: var(--fg); margin-bottom: 6px;
}
.panel-sub { font-size: 13px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 20px; }
.radar-container {
  display: flex; justify-content: center; margin-bottom: 24px;
}

/* Radar dimension bars */
.radar-dimensions { display: flex; flex-direction: column; gap: 10px; }
.radar-dim-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; }
.radar-dim-label { font-size: 12px; color: var(--fg-muted); }
.radar-dim-bar { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; }
.radar-dim-fill { height: 100%; background: linear-gradient(90deg, var(--accent), rgba(232,184,75,0.5)); border-radius: 2px; }
.radar-dim-val { font-size: 12px; font-weight: 600; color: var(--accent); text-align: right; }

.panel-footer-note {
  font-size: 12px; color: var(--fg-muted); padding-top: 16px;
  border-top: 1px solid var(--border); line-height: 1.6; margin-top: 16px;
}

/* Investor type legend */
.type-legend .legend-items { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-muted); }
.legend-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px;
  border-radius: 4px; flex-shrink: 0;
}
.vc-badge { background: rgba(232,184,75,0.2); color: var(--accent); }
.angel-badge { background: rgba(100,200,255,0.15); color: rgba(100,200,255,0.9); }
.syndicate-badge { background: rgba(180,100,255,0.15); color: rgba(180,100,255,0.9); }

/* ── Right: Match List ── */
.discovery-right { padding: 32px 40px; }

/* Filters */
.filters-bar {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.filter-select {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--fg); font-size: 13px; padding: 6px 28px 6px 10px;
  border-radius: 6px; cursor: pointer; font-family: var(--font-body);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(232,226,240,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.filter-select:focus { border-color: rgba(232,184,75,0.3); outline: none; }
.filter-toggle { margin-left: auto; }
.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--fg-muted); }
.toggle-label input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.match-count { font-size: 13px; color: var(--fg-muted); margin-left: auto; }

/* Match cards */
.match-list { display: flex; flex-direction: column; gap: 16px; }
.match-card {
  display: grid; grid-template-columns: 40px 1fr;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 20px 20px 16px;
  gap: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.match-card:hover { border-color: rgba(232,184,75,0.2); box-shadow: 0 0 24px rgba(232,184,75,0.04); }
.match-card--hot { border-color: rgba(232,184,75,0.18); }

.match-rank {
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
  color: rgba(232,226,240,0.15); padding-top: 4px;
}
.match-card--hot .match-rank { color: rgba(232,184,75,0.3); }
.match-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.match-name-row { display: flex; align-items: center; gap: 10px; }
.match-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--fg); }
.investor-type-badge { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; }
.investor-type-badge.vc-badge { background: rgba(232,184,75,0.2); color: var(--accent); }
.investor-type-badge.angel-badge { background: rgba(100,200,255,0.15); color: rgba(100,200,255,0.9); }
.investor-type-badge.syndicate-badge { background: rgba(180,100,255,0.15); color: rgba(180,100,255,0.9); }

.match-score-wrap { flex-shrink: 0; }
.match-score {
  font-family: var(--font-head); font-size: 22px; font-weight: 800;
  padding: 4px 10px; border-radius: 8px;
}
.score-hot { color: var(--accent); background: var(--accent-dim); }
.score-mid { color: rgba(200,180,100,0.9); background: rgba(200,180,100,0.08); }
.score-low { color: var(--fg-muted); background: rgba(232,226,240,0.04); }
.score-hidden { color: rgba(232,226,240,0.2); background: rgba(232,226,240,0.04); letter-spacing: 3px; font-size: 18px; }
.score-slash { font-size: 13px; font-weight: 400; opacity: 0.6; margin-left: 2px; }

.match-description { font-size: 13px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 12px; }
.match-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.match-tag {
  font-size: 11px; font-weight: 500; color: var(--fg-muted);
  background: rgba(232,226,240,0.04); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
}
.mini-radar-wrap { display: flex; justify-content: flex-end; }
.mini-radar { opacity: 0.85; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; color: var(--fg-muted); margin-bottom: 20px; }
.btn-reset {
  background: transparent; border: 1px solid var(--border);
  color: var(--fg); font-size: 14px; padding: 8px 20px;
  border-radius: 6px; cursor: pointer; font-family: var(--font-body);
  transition: border-color 0.2s;
}
.btn-reset:hover { border-color: rgba(232,226,240,0.3); }

/* Threshold callout */
.threshold-callout {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--fg-muted);
  background: var(--accent-dim); border: 1px solid rgba(232,184,75,0.15);
  border-radius: 8px; padding: 12px 16px; margin-top: 20px;
}
.threshold-callout svg { color: var(--accent); flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .discovery-main { grid-template-columns: 1fr; }
  .discovery-left { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .discovery-right { padding: 24px 20px; }
  .discovery-header { padding: 100px 24px 40px; }
  .filters-bar { gap: 12px; }
  .filter-toggle { margin-left: 0; }
}
@media (max-width: 600px) {
  .match-card { grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 12px 16px 10px; }
  .match-rank { font-size: 16px; }
  .mini-radar-wrap { display: none; }
}