/* EB Fight History — front-end styles.
   Column widths are CSS variables driven by the Elementor sliders:
   --eb-w-date, --eb-w-opp, --eb-w-round (Outcome fills the remainder). */

.eb-fights {
	--eb-w-date: 15%;
	--eb-w-opp: 40%;
	--eb-w-round: 15%;
	--eb-divider: rgba(255, 255, 255, 0.25);
	--eb-divider-w: 1px;

	display: flex;
	flex-direction: column;
	width: 100%;
	background: #1e1e1e;
}

/* ---------- Rows ---------- */
.eb-fights__row {
	display: flex;
	align-items: center;
	padding: 22px 12px;
	border-bottom: var(--eb-divider-w) solid var(--eb-divider);
	text-decoration: none;      /* rows can be links */
	color: inherit;
	transition: background 0.2s ease;
}

.eb-fights__row--head {
	border-top: var(--eb-divider-w) solid transparent;
}

.eb-fights__row--fight:last-child {
	/* keep the closing line like the sample; remove this rule to drop it */
}

/* ---------- Cells ---------- */
.eb-fights__cell {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	font-size: 17px;
	min-width: 0;
}

.eb-fights__row--head .eb-fights__cell {
	font-style: italic;
	font-size: 18px;
}

.eb-fights__cell--date {
	flex: 0 0 var(--eb-w-date);
	text-align: center;
}

.eb-fights__cell--opponent {
	flex: 0 0 var(--eb-w-opp);
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eb-fights__cell--round {
	flex: 0 0 var(--eb-w-round);
	text-align: center;
}

.eb-fights__cell--outcome {
	flex: 1;
	display: flex;
	justify-content: center;
}

/* ---------- Outcome (result + method) ---------- */
.eb-fights__outcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 220px;
	padding: 0 16px;
}

.eb-fights__outcome--badge {
	background: #c8102e;
	color: #ffffff;
	border-radius: 6px;
	padding: 10px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.eb-fights__cell {
		font-size: 13px;
		letter-spacing: 0.03em;
	}

	.eb-fights__row {
		padding-left: 4px;
		padding-right: 4px;
	}

	.eb-fights__outcome {
		padding: 0 8px;
		gap: 8px;
		max-width: none;
	}

	.eb-fights__outcome--badge {
		padding: 6px 10px;
	}
}

/* Very small screens: stack opponent above the numbers if things get tight */
@media (max-width: 420px) {
	.eb-fights__cell--opponent {
		white-space: normal;
		line-height: 1.25;
	}
}
