/**
 * season_data_display_points_detail.css — Detalhamento de Pontuação (DEM-135).
 * v1.0 (2026-10-30): Diretriz Visual — cabeçalho herói na cor da equipe, chip de equipe
 *   legível, faixa de números do piloto e notas do race control em chips.
 */
#driver-points-modal .points-detail-header.pd-hero {
  --pd-team: #d4ff00;
  position: relative;
  background:
    radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--pd-team) 30%, transparent), transparent 70%),
    linear-gradient(120deg, #17181f, #0e0f14) !important;
  border-bottom: 3px solid var(--pd-team) !important;
}
#driver-points-modal .pd-hero .points-detail-avatar.driver {
  border-radius: 50% !important;
  border: 3px solid var(--pd-team) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pd-team) 22%, transparent);
}
#driver-points-modal .pd-hero h3 { font-size: 30px; font-weight: 900; }
#driver-points-modal .pd-hero .total-final { font-size: 52px; font-weight: 900; line-height: 1; }

/* Chip de equipe legível (antes cor da equipe no fundo + texto da equipe: branco no branco). */
#driver-points-modal .pd-hero .classification-team-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 4px solid var(--pd-team) !important;
  color: var(--color-text-primary, #f4f5f7) !important;
}
#driver-points-modal .pd-hero .classification-team-name { color: inherit !important; }
#driver-points-modal .pd-hero .classification-team-name > i.fa-users { display: none; }

/* Números do piloto */
.pd-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pd-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.pd-kpi b { font-size: 26px; font-weight: 900; color: var(--color-text-primary, #fff); line-height: 1.1; }
.pd-kpi span { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-secondary, #a9abb5); }
.pd-kpi.is-gold { background: rgba(255, 196, 0, 0.12); }
.pd-kpi.is-gold b { color: #ffc400; }
.pd-kpi.is-purple { background: rgba(177, 76, 255, 0.14); }
.pd-kpi.is-purple b { color: #d79bff; }

/* Notas do race control */
.pd-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pd-note { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, 0.07); color: var(--color-text-secondary, #c7c9d1); }
.pd-note.is-off { background: rgba(255, 196, 0, 0.14); color: #ffd84d; }
.pd-note.is-contact { background: rgba(255, 82, 82, 0.15); color: #ff8a8a; }
.pd-note.is-lead { background: rgba(46, 204, 113, 0.14); color: #6ff0a0; }
.pd-notes-toggle {
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: transparent;
  color: var(--color-accent, #d4ff00);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.pd-notes-toggle:focus-visible { outline: 2px solid var(--color-accent, #d4ff00); outline-offset: 2px; }
.pd-notes-list {
  flex-basis: 100%;
  max-height: 220px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 8px 10px 8px 26px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary, #c7c9d1);
  text-align: left;
}
.pd-notes-list[hidden] { display: none; }

@media (max-width: 767.98px) {
  .pd-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  .pd-kpi b { font-size: 22px; }
  #driver-points-modal .pd-hero h3 { font-size: 24px; }
}
