/* heatmap.css — styles for the GoalieHeatmap module (heatmap.js).
   Imported by goalie player pages and compare.html. */

.rl-hm { display: block; }
.rl-hm-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.rl-hm-modes { display: inline-flex; gap: 4px; padding: 2px;
  background: rgba(115,115,115,0.12); border-radius: 6px; }
.rl-hm-pill {
  background: transparent; color: #a3a3a3;
  font-size: 12px; padding: 4px 12px; border-radius: 5px;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.rl-hm-pill:hover { color: #f5f5f5; }
.rl-hm-pill.rl-hm-on { background: #404040; color: #f5f5f5; }
.rl-hm-goals {
  border-color: rgba(115,115,115,0.4);
}

.rl-hm-body { display: block; }
.rl-hm-body-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .rl-hm-body-2col { grid-template-columns: 1fr; }
}

.rl-hm-stack { position: relative; width: 100%; }
.rl-hm-canvas { display: block; width: 100%; height: auto; }
.rl-hm-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.rl-hm-summary {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 10px; font-size: 12px; color: #d4d4d4;
}
.rl-hm-summary .rl-hm-stat { font-variant-numeric: tabular-nums; }
.rl-hm-summary em { font-style: normal; color: #737373;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 10px;
  margin-left: 4px; }

.rl-hm-tip {
  position: fixed; pointer-events: none; z-index: 50;
  background: #18181b; border: 1px solid #3f3f46; border-radius: 6px;
  padding: 6px 10px; font-size: 12px; line-height: 1.4; color: #e5e5e5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); white-space: nowrap;
}
.rl-hm-tip .rl-hm-tip-lbl { color: #737373; }

.rl-hm-panel {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.rl-hm-card {
  background: rgba(115,115,115,0.06);
  border: 1px solid rgba(115,115,115,0.20);
  border-radius: 8px; padding: 10px 12px;
}
.rl-hm-cardhead {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: #a3a3a3; font-weight: 600; margin-bottom: 8px;
}
.rl-hm-zonehint {
  font-size: 10px; color: #737373; font-weight: 500;
  letter-spacing: 0; text-transform: none; margin-left: 4px;
}
.rl-hm-legend-svg { width: 100%; display: block; }
.rl-hm-zonemap-svg { width: 100%; display: block; }
.rl-hm-zonefoot {
  font-size: 10px; color: #737373; margin-top: 6px;
}
/* Full-width zone-map row, used in skater-vs-goalie matchup mode. */
.rl-hm-zonemap-below { margin-top: 12px; }
.rl-hm-zonemap-below .rl-hm-card { padding: 12px 16px; }

.rl-hm-key-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 11px; color: #d4d4d4; line-height: 1.4;
}
.rl-hm-key-list li {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
}
.rl-hm-key-list li:last-child { margin-bottom: 0; }
.rl-hm-dot {
  display: inline-block; flex-shrink: 0;
  border-radius: 50%; background: #0a0a0a;
  border: 1px solid #f5f5f5;
}
.rl-hm-dot-big   { width: 10px; height: 10px; }
.rl-hm-dot-small { width: 5px;  height: 5px;  }
.rl-hm-sq {
  display: inline-block; flex-shrink: 0;
  width: 11px; height: 11px; border-radius: 2px;
}
.rl-hm-sq-green { background: #22c55e; }
.rl-hm-sq-red   { background: #dc2626; }
.rl-hm-sq-hot   { background: #dc2626; }
.rl-hm-sq-cold  { background: #1c2c5c; }
.rl-hm-key-note {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(115,115,115,0.20);
  font-size: 10px; color: #fbbf24; font-weight: 600;
  letter-spacing: 0.04em;
}
:root:not(.dark) .rl-hm-key-list { color: #404040; }

.rl-hm-note {
  font-size: 11px; color: #737373; line-height: 1.45;
  margin: 0; padding: 0 2px;
}
:root:not(.dark) .rl-hm-note { color: #525252; }

:root:not(.dark) .rl-hm-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.10); }
:root:not(.dark) .rl-hm-cardhead { color: #525252; }

/* light theme tweaks — these pages mostly run dark but we don't want a
   broken look if the theme toggles */
:root:not(.dark) .rl-hm-controls .rl-hm-pill { color: #525252; }
:root:not(.dark) .rl-hm-controls .rl-hm-pill:hover { color: #0a0a0a; }
:root:not(.dark) .rl-hm-controls .rl-hm-pill.rl-hm-on {
  background: #e5e7eb; color: #0a0a0a;
}
:root:not(.dark) .rl-hm-summary { color: #404040; }
:root:not(.dark) .rl-hm-summary em { color: #737373; }
