/* FF Tor-Minuten-Heatmap — spezifisches Styling */

.ff-gm-chart {
	position: relative;
	margin: 20px 0 30px;
	padding: 16px 16px 30px;
	background: var(--ffui-bg-soft);
	border: 1px solid var(--ffui-border-soft);
	border-radius: 6px;
}

.ff-gm-period-marker {
	position: absolute;
	top: 16px;
	bottom: 30px;
	width: 1px;
	background: rgba(224, 118, 69, 0.3);
	pointer-events: none;
}

.ff-gm-bars {
	display: flex;
	align-items: flex-end;
	gap: 1px;
	height: 140px;
}
.ff-gm-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	position: relative;
	cursor: default;
}
.ff-gm-bar {
	width: 100%;
	height: var(--h, 0%);
	min-height: 1px;
	background: linear-gradient(to top, var(--ffui-accent), rgba(224,118,69,0.55));
	border-radius: 2px 2px 0 0;
	transition: transform 0.12s ease, background 0.12s ease;
	transform-origin: bottom;
}
.ff-gm-col:hover .ff-gm-bar {
	background: var(--ffui-accent-dark);
	transform: scaleY(1.05) scaleX(1.3);
}
.ff-gm-col.is-peak .ff-gm-bar {
	background: linear-gradient(to top, #d6541d, #e07645);
}

.ff-gm-axis {
	position: relative;
	margin-top: 8px;
	height: 14px;
}
.ff-gm-axis-tick {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	font-size: 10px;
	color: var(--ffui-text-dim);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.ff-gm-period-labels {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 4px;
	height: 14px;
	pointer-events: none;
}
.ff-gm-period-labels span {
	position: absolute;
	transform: translateX(-50%);
	font-size: 10px;
	color: var(--ffui-text-mid);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

/* Split-Rows */
.ff-gm-split-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--ffui-text-mid);
	margin: 24px 0 10px;
}
.ff-gm-legend {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	font-size: 11px;
	color: var(--ffui-text-mid);
}
.ff-gm-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.ff-gm-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background: var(--ffui-accent);
}
/* Drei Kategorien die tatsächlich in smf_game_events vorkommen */
.ff-gm-swatch--regular       { background: #b0833f; }
.ff-gm-swatch--owngoal       { background: #8a7c5c; }
.ff-gm-swatch--penalty_shot  { background: #e07645; }
/* Split nach Seite */
.ff-gm-swatch--home          { background: #e07645; }
.ff-gm-swatch--guest,
.ff-gm-swatch--away          { background: #4a90a4; }
/* Legacy-Klassen — für Kompatibilität behalten falls irgendwo referenziert */
.ff-gm-swatch--pp   { background: #e07645; }
.ff-gm-swatch--sh   { background: #4a90a4; }
.ff-gm-swatch--en   { background: #8a7c5c; }
.ff-gm-swatch--eq   { background: #b0833f; }

.ff-gm-split-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}
.ff-gm-split-name {
	width: 120px;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--ffui-text-mid);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.ff-gm-split-bars {
	flex: 1 1 auto;
	display: flex;
	align-items: flex-end;
	gap: 1px;
	height: 36px;
}
.ff-gm-split-bars.ff-gm-swatch--regular      .ff-gm-split-col { background: #b0833f; }
.ff-gm-split-bars.ff-gm-swatch--owngoal      .ff-gm-split-col { background: #8a7c5c; }
.ff-gm-split-bars.ff-gm-swatch--penalty_shot .ff-gm-split-col { background: #e07645; }
.ff-gm-split-bars.ff-gm-swatch--home         .ff-gm-split-col { background: #e07645; }
.ff-gm-split-bars.ff-gm-swatch--guest        .ff-gm-split-col { background: #4a90a4; }
.ff-gm-split-bars.ff-gm-swatch--away         .ff-gm-split-col { background: #4a90a4; }
.ff-gm-split-col {
	flex: 1 1 0;
	min-width: 0;
	height: var(--h, 0%);
	min-height: 0;
	border-radius: 1px 1px 0 0;
	transition: opacity 0.12s ease;
	opacity: 0.8;
}
.ff-gm-split-col:hover { opacity: 1; }

@media (max-width: 640px) {
	.ff-gm-bars { height: 90px; }
	.ff-gm-split-bars { height: 24px; }
	.ff-gm-split-name { width: 72px; font-size: 10px; }
	.ff-gm-axis-tick { font-size: 9px; }
}
