/* Poker Elephant - Turn/River Card Heatmap ("Hotness") (Custom Red/Blue/Yellow Palette) */

.heatmap-container {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heatmap-title {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 2px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.heatmap-card {
  height: 28px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.575rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.heatmap-card span {
  line-height: 1;
  white-space: nowrap;
}

.heatmap-card:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.heatmap-card.dead {
  opacity: 0.18;
  pointer-events: none;
}

.heatmap-card .hotness-val {
  font-size: 0.475rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

/* Legend Styling */
.heatmap-legend {
  display: flex;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  justify-content: space-around;
  padding-top: 4px;
  border-top: 1px solid var(--border-color);
  white-space: nowrap;
}

/* Expressive Red / Blue / Yellow Color Scaling */
/* RED: High Hit (>=50%) - Very Strong Help */
.heat-high {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45), rgba(220, 38, 38, 0.7));
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}

/* BLUE: Medium Hit (30% - 49%) - Moderate Help */
.heat-mid {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(37, 99, 235, 0.7));
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.35);
}

/* YELLOW: Low Hit (<30%) - Weak Help / Blank */
.heat-low {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.6));
  border-color: #f59e0b;
  color: #fef08a;
}
