/* =================================================================
   investors.css — Famous Investors page
================================================================= */

.inv-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.inv-hero {
  text-align: center;
  margin-bottom: 40px;
}
.inv-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text1);
  margin: 0 0 10px;
}
.inv-subtitle {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* ── Anchor nav ───────────────────────────────────────────── */
.inv-nav {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.inv-nav-link {
  display: inline-block;
  padding: 7px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  text-decoration: none;
  background: var(--surface);
  transition: border-color .15s, background .15s;
}
.inv-nav-link:hover {
  border-color: var(--accent, #4a9eff);
  color: var(--accent, #4a9eff);
  background: rgba(74,158,255,.07);
}

/* ── States ───────────────────────────────────────────────── */
.inv-loading {
  text-align: center;
  color: var(--text3);
  padding: 80px 0;
  font-size: 15px;
}
.inv-error {
  text-align: center;
  color: var(--text3);
  padding: 60px 0;
  font-size: 14px;
}
.inv-updated {
  text-align: right;
  font-size: 11px;
  color: var(--text3);
  margin: 24px 0 0;
}

/* ── Grid ─────────────────────────────────────────────────── */
.inv-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Investor card ────────────────────────────────────────── */
.inv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.inv-card-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.inv-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text1);
}
.inv-card-fund {
  font-size: 13px;
  color: var(--text3);
}
.inv-card-meta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.inv-quarter {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent, #4a9eff);
  background: rgba(74,158,255,.12);
  padding: 3px 9px;
  border-radius: 6px;
}
.inv-total {
  font-size: 12px;
  color: var(--text3);
}

/* ── Card body — two columns ──────────────────────────────── */
.inv-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.inv-col {
  padding: 16px 20px;
}
.inv-col + .inv-col {
  border-left: 1px solid var(--border);
}

/* ── Delta blocks ─────────────────────────────────────────── */
.inv-delta-block {
  margin-bottom: 18px;
}
.inv-delta-block:last-child {
  margin-bottom: 0;
}
.inv-delta-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  margin-bottom: 8px;
}
.inv-no-delta {
  font-size: 13px;
  color: var(--text3);
  margin: 0;
  padding: 8px 0;
}

/* ── Holding row ──────────────────────────────────────────── */
.inv-holding-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.inv-holding-row:last-child {
  border-bottom: none;
}
.inv-ticker-link {
  font-weight: 700;
  color: var(--accent, #4a9eff);
  text-decoration: none;
  min-width: 52px;
}
.inv-ticker-link:hover { text-decoration: underline; }
.inv-holding-val {
  color: var(--text1);
  font-weight: 500;
  margin-left: auto;
}
.inv-holding-shs {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}
.inv-holding-pct {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}

/* ── Badges ───────────────────────────────────────────────── */
.inv-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge-new  { color: #4a9eff; background: rgba(74,158,255,.12); }
.badge-exit { color: var(--text3); background: var(--surface2); }
.badge-up   { color: #22c55e; background: rgba(34,197,94,.12); }
.badge-dn   { color: #f87171; background: rgba(248,113,113,.12); }

/* ── Show more button ─────────────────────────────────────── */
.inv-show-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--accent, #4a9eff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.inv-show-more:hover {
  background: rgba(74,158,255,.07);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .inv-card-body { grid-template-columns: 1fr; }
  .inv-col + .inv-col { border-left: none; border-top: 1px solid var(--border); }
  .inv-card-header { gap: 8px; }
  .inv-card-meta { margin-left: 0; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   SSR per-investor pages + static index (added for SEO 13F pages)
═══════════════════════════════════════════════════════════════ */

/* Static crawlable investor index on the hub page */
.inv-index {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin: 0 0 22px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.inv-index a {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: var(--surface2, rgba(255,255,255,.03));
  border: 1px solid var(--border); color: var(--text2);
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.inv-index a:hover { border-color: var(--accent, #4a9eff); color: var(--accent, #4a9eff); }

/* Make the card title a clear link to the full SSR page */
a.inv-card-name { text-decoration: none; cursor: pointer; }
a.inv-card-name:hover { color: var(--accent, #4a9eff); }
.inv-card-full { font-size: 11px; color: var(--accent, #4a9eff); text-decoration: none; margin-left: 8px; }
.inv-card-full:hover { text-decoration: underline; }

/* ── Detail (SSR) page ── */
.inv-crumb { margin: 4px 0 16px; }
.inv-crumb a { color: var(--text2); text-decoration: none; font-size: 13px; }
.inv-crumb a:hover { color: var(--accent, #4a9eff); }

.inv-detail-hero { margin-bottom: 22px; }
.inv-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px;
}
.inv-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; text-align: center;
}
.inv-stat-v { font-size: 22px; font-weight: 800; color: var(--text1); }
.inv-stat-l { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

.inv-h2 { font-size: 16px; font-weight: 700; color: var(--text1); margin: 26px 0 12px; }

.inv-activity { }
.act-block { margin-bottom: 14px; }
.act-label { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.act-label.buy { color: #3fb950; } .act-label.sell { color: #f85149; }
.act-label.add { color: #58a6ff; } .act-label.trim { color: #d4a843; }
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px; padding: 4px 9px; border-radius: 7px; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text2);
}
.chip.buy { border-color: rgba(63,185,80,.4); color: #3fb950; }
.chip.sell { border-color: rgba(248,81,73,.4); color: #f85149; }
.chip.add { border-color: rgba(88,166,255,.4); color: #58a6ff; }
.chip.trim { border-color: rgba(212,168,67,.4); color: #d4a843; }
.chip:hover { background: var(--surface2, rgba(255,255,255,.05)); }

.inv-tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.inv-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.inv-tbl thead th {
  text-align: left; padding: 9px 12px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text3); border-bottom: 1px solid var(--border); background: var(--surface);
}
.inv-tbl th.num, .inv-tbl td.num { text-align: right; }
.inv-tbl tbody td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text2); }
.inv-tbl tbody tr:hover { background: var(--surface); }
.inv-tbl td.rk { color: var(--text3); width: 32px; }
.inv-tbl a.tk { color: var(--text1); font-weight: 700; text-decoration: none; }
.inv-tbl a.tk:hover { color: var(--accent, #4a9eff); }
.inv-note { font-size: 11px; color: var(--text3); margin-top: 10px; line-height: 1.5; }

.oi-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.oi {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); text-decoration: none;
}
.oi:hover { border-color: var(--accent, #4a9eff); color: var(--accent, #4a9eff); }

@media (max-width: 560px) {
  .inv-stats { grid-template-columns: repeat(2, 1fr); }
}
