/* research.css — standalone shell for "Fund Hub — Research tool".
   The FundsTab component brings its own rich UI; this only frames it as a
   product (app bar + container + footer). All colours use the portal theme
   variables (with safe fallbacks) so light/dark themes both work. */

.research-shell {
  min-height: 100vh;
  background: var(--bg, #0b1220);
  color: var(--fg, #e8edf5);
  font-family: 'Plus Jakarta Sans', 'Manrope', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ── App bar ─────────────────────────────────────────────────────────────── */
.research-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(0.85rem, 3vw, 1.5rem);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--card, #131a2a) 92%, transparent),
      color-mix(in srgb, var(--card, #131a2a) 78%, transparent));
  border-bottom: 1px solid var(--border, #263148);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.research-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }

.research-logo {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.38);
}

.research-brand-text { line-height: 1.05; min-width: 0; }
.research-title {
  font-weight: 900; font-size: 1.18rem; letter-spacing: -0.02em;
  color: var(--fg, #e8edf5);
}
.research-sub {
  font-size: 0.66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--fg-muted, #7b8fa8);
}

.research-badges { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.research-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 0.32rem 0.66rem; border-radius: 999px;
  border: 1px solid var(--border, #263148);
  color: var(--fg-muted, #7b8fa8);
  white-space: nowrap;
}
.research-badge-muted { color: var(--fg-muted, #7b8fa8); }
.research-live { color: #22c55e; border-color: color-mix(in srgb, #22c55e 45%, transparent); }
.research-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: research-pulse 1.8s infinite;
}
@keyframes research-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Body ────────────────────────────────────────────────────────────────── */
.research-body {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(0.6rem, 2.5vw, 1.25rem) 3rem;
  flex: 1 1 auto;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.research-foot {
  text-align: center;
  color: var(--fg-muted, #7b8fa8);
  font-size: 0.72rem; line-height: 1.6;
  padding: 1.4rem 1.25rem 2rem;
  border-top: 1px solid var(--border, #263148);
  max-width: 720px; margin: 0 auto;
}
.research-foot strong { color: var(--fg, #e8edf5); font-weight: 800; }

@media (max-width: 560px) {
  .research-sub { letter-spacing: 0.12em; }
  .research-badge-muted { display: none; }
}
