/* ============================================================
   Fund Databases Overview Page
   ============================================================ */

/* Pane overrides — MUST be outside @layer to beat the unlayered
   .v2-tool-pane rules in v2-overlay.css (display:grid + overflow:hidden) */
#v2-fund-databases-overview.v2-tool-pane.active,
#v2-markets-leaders-laggards.v2-tool-pane.active,
#v2-etf-internals.v2-tool-pane.active,
#v2-markets-watchlists.v2-tool-pane.active {
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100%;
}

.fdo-page {
  padding: 32px 40px 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.fdo-hero {
  margin-bottom: 36px;
}
.fdo-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin: 0 0 8px;
}
.fdo-title i { margin-right: 8px; opacity: .7; }
.fdo-subtitle {
  font-size: 15px;
  color: var(--muted, #64748b);
  margin: 0;
  max-width: 640px;
}

/* Sections */
.fdo-section {
  margin-bottom: 48px;
}
.fdo-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin: 0 0 6px;
}
.fdo-section-title i { margin-right: 6px; opacity: .65; }
.fdo-section-desc {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0 0 20px;
}

/* Database Cards */
.fdo-db-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.fdo-db-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .12s;
}
.fdo-db-card:hover {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.fdo-db-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.fdo-db-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin: 0 0 8px;
}
.fdo-db-card__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.fdo-db-card__stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent, #2563eb);
}
.fdo-db-card__stat-label {
  font-size: 12px;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.fdo-db-card__desc {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0;
  flex: 1;
  line-height: 1.5;
}
.fdo-db-card__cta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e2e8f0);
}
.fdo-db-card__btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #2563eb);
}
.fdo-db-card__btn i { margin-left: 4px; transition: transform .15s; }
.fdo-db-card:hover .fdo-db-card__btn i { transform: translateX(3px); }

/* Explore embed — the embedded Explore section uses the existing
   rc-explore-* classes from v2ResearchCenter.css. Only minor overrides
   are needed when it lives inside the overview page context. */
#fdo-explore-embed .rc-explore-page {
  padding: 0;
}
#fdo-explore-embed .rc-explore-how {
  margin-top: 32px;
}

/* ============================================================
   Placeholder Pages (shared)
   ============================================================ */

.v2-placeholder-page {
  padding: 48px 40px 64px;
  max-width: 960px;
  margin: 0 auto;
}
.v2-placeholder-hero {
  text-align: center;
  margin-bottom: 40px;
}
.v2-placeholder-icon {
  font-size: 48px;
  color: var(--accent, #2563eb);
  opacity: .7;
  margin-bottom: 16px;
}
.v2-placeholder-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text, #1e293b);
  margin: 0 0 8px;
}
.v2-placeholder-subtitle {
  font-size: 15px;
  color: var(--muted, #64748b);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Placeholder Cards */
.v2-placeholder-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.v2-placeholder-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.v2-placeholder-card i {
  font-size: 28px;
  color: var(--accent, #2563eb);
  opacity: .65;
  margin-bottom: 12px;
}
.v2-placeholder-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin: 0 0 8px;
}
.v2-placeholder-card p {
  font-size: 13px;
  color: var(--muted, #64748b);
  margin: 0;
  line-height: 1.5;
}

/* Jump-to links */
.v2-placeholder-links {
  border-top: 1px solid var(--border, #e2e8f0);
  padding-top: 24px;
}
.v2-placeholder-links h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 14px;
  text-align: center;
}
.v2-placeholder-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.v2-placeholder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #2563eb);
  background: var(--card-bg, #fff);
  border: 1px solid var(--accent, #2563eb);
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.v2-placeholder-btn:hover {
  background: var(--accent, #2563eb);
  color: #fff;
}
