/**
 * Analyze investor page — hero metric strip, donut, overview (page intro
 * stays as defined in analyze_investor.html inline styles).
 */

/* —— Config card —— */
.analyze-config-card {
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(50, 205, 50, 0.04), transparent 55%),
    rgba(26, 26, 26, 0.88);
  border-color: rgba(255, 255, 255, 0.07);
}

/* —— Investor hero (donut + name row) —— */
.analyze-page .analyze-hero.inv-hero-shell {
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(50, 205, 50, 0.06), transparent 42%),
    radial-gradient(90% 55% at 100% 100%, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(26, 26, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.075);
}

.inv-hero-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-hero-name {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.inv-hero-pill {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Hero metric strip (simple 4-up) —— */
.analyze-page .metric-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .analyze-page .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.analyze-page .metric-card {
  background: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.analyze-page .metric-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 20, 0.85);
}

.analyze-page .metric-card .metric-value {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.analyze-page .metric-card .metric-label {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* —— Overview blocks —— */
.analyze-page .overview-block {
  background: rgba(12, 12, 12, 0.55);
  border-color: rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.analyze-page .overview-block:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.analyze-page .overview-block h3 {
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.11em;
}

/* —— Donut chart: same layout as before, light polish only —— */
.analyze-page .donut-block-title {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
}

.analyze-page .donut-wrap {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.38));
}

.analyze-page .donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.analyze-page .donut-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.analyze-page .donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.98);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.analyze-page .donut-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analyze-page .donut-center .analyze-hero-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(30, 30, 30, 0.95);
}

.analyze-page .donut-legend {
  flex-shrink: 0;
  min-width: 140px;
  max-width: 220px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(15, 15, 15, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.analyze-page .donut-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  line-height: 1.35;
}

.analyze-page .donut-legend-item:hover .ticker {
  color: #fff;
}

.analyze-page .donut-legend-swatch {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.analyze-page .donut-legend-item .ticker {
  flex: 0 0 auto;
  min-width: 2.5em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s ease;
}

.analyze-page .donut-legend-item .pct {
  margin-left: auto;
  font-size: 0.7rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .analyze-page .donut-wrap {
    width: 220px;
    height: 220px;
  }

  .analyze-page .donut-center {
    width: 88px;
    height: 88px;
  }

  .analyze-page .donut-center .analyze-hero-avatar-placeholder {
    font-size: 1.25rem;
  }

  .analyze-page .donut-legend {
    max-width: 100%;
  }
}
