/* ============================================================
   Botola Pro Standings — Frontend Styles
   ============================================================ */

.botola-standings-wrap {
	font-family: inherit;
	font-size: 14px;
	overflow-x: auto;
	max-width: 100%;
}

/* ---- Tabs ---- */
.botola-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
}

.botola-tab {
	padding: 6px 16px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	cursor: pointer;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.botola-tab:hover {
	background: #e8e8e8;
}

.botola-tab.active {
	background: #3b3f45;
	color: #fff;
	border-color: #3b3f45;
}

/* ---- Table ---- */
.botola-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
}

.botola-table thead th {
	background: #3b3f45;
	color: #fff;
	padding: 9px 10px;
	text-align: center;
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	white-space: nowrap;
}

.botola-table thead th.col-team {
	text-align: left;
	min-width: 130px;
}

.botola-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background 0.12s;
}

.botola-table tbody tr:last-child {
	border-bottom: none;
}

.botola-table tbody tr:hover {
	background: #f4f5f7;
}

.botola-table td {
	padding: 8px 10px;
	text-align: center;
	white-space: nowrap;
}

.botola-table td.col-team {
	text-align: left;
	font-weight: 500;
}

.botola-table td.col-pos {
	color: #666;
	font-weight: 600;
	width: 28px;
}

/* ---- Points ---- */
.col-pts-val {
	color: #3b3f45;
	font-size: 15px;
}

/* ---- Qualification / Relegation zone bars ---- */
.botola-row[data-rank="1"],
.botola-row[data-rank="2"] {
	border-left: 4px solid #3b3f45; /* Top positions */
}

.botola-row[data-rank="3"],
.botola-row[data-rank="4"] {
	border-left: 4px solid #f5a623; /* CAF Confederation Cup */
}

.botola-row[data-rank="15"],
.botola-row[data-rank="16"] {
	border-left: 4px solid #d0021b; /* Relegation */
}

/* ---- Form badges ---- */
.col-form {
	min-width: 90px;
}

.form-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	margin: 1px;
	cursor: default;
}

.form-w { background: #292929; }
.form-d { background: #f39c12; }
.form-l { background: #e74c3c; }

/* ---- Logo column ---- */
.col-logo {
	width: 30px;
}

.col-logo img {
	display: block;
	margin: auto;
	object-fit: contain;
}

/* ---- Footer ---- */
.botola-footer {
	font-size: 11px;
	color: #aaa;
	text-align: right;
	margin-top: 6px;
	padding-top: 4px;
	border-top: 1px solid #eee;
}

/* ---- Special team highlight ---- */
.botola-row--union-touarga {
	border-left: 6px solid #efb52b !important;
}

.botola-row--union-touarga td {
	background: #efb52b;
}

.botola-row--union-touarga td:first-child {
	border-top-left-radius: 6px;
	border-bottom-left-radius: 6px;
}

.botola-row--union-touarga td:last-child {
	border-top-right-radius: 6px;
	border-bottom-right-radius: 6px;
}

.botola-row--union-touarga td,
.botola-row--union-touarga td * {
	color: #1b1b1b;
}

.botola-row--union-touarga td.col-team {
	font-weight: 700;
}

.botola-row--union-touarga:hover td {
	background: #e3a81a; /* slightly darker on hover */
}

.botola-form-empty {
	color: #999;
	font-weight: 600;
}

/* ---- Error state ---- */
.botola-error {
	color: #c0392b;
	padding: 12px 16px;
	background: #fdf3f2;
	border: 1px solid #f5c6c6;
	border-radius: 4px;
}

/* ---- Legend ---- */
.botola-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
	font-size: 11px;
	color: #555;
}

.botola-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.botola-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex-shrink: 0;
}

.botola-legend-dot--champions { background: #343434; }
.botola-legend-dot--confed    { background: #f5a623; }
.botola-legend-dot--relegation { background: #d0021b; }

/* ---- Responsive ---- */
@media ( max-width: 480px ) {
	.botola-table thead th,
	.botola-table td {
		padding: 6px 6px;
		font-size: 12px;
	}

	.col-pts-val {
		font-size: 13px;
	}
}
