/* HL2GO /bans — unified AMXBans + SourceBans list */

.page-bans {
	--bans-amx: #e8a54b;
	--bans-sb: #5b9fd4;
	--bans-line: rgba(255, 255, 255, 0.1);
	--bans-muted: rgba(255, 255, 255, 0.55);
	--bans-cols: 7.5rem minmax(0, 1.1fr) minmax(0, 1.5fr) 5rem 9.75rem;
	max-width: 1040px;
	margin: 0 auto;
	padding: calc(var(--nav-h) + 36px) 1.25rem 4rem;
}

.bans-hero {
	margin-bottom: 1.75rem;
}

.bans-kicker {
	margin: 0 0 0.35rem;
	font-family: Orbitron, Montserrat, sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bans-muted);
}

.bans-hero h1 {
	margin: 0 0 0.5rem;
	font-family: Orbitron, Montserrat, sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 900;
	letter-spacing: 0.02em;
}

.bans-lead {
	margin: 0;
	max-width: 42rem;
	color: var(--bans-muted);
	line-height: 1.5;
}

.bans-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.bans-search {
	flex: 1 1 220px;
}

.bans-search input {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--bans-line);
	border-radius: 0;
	background: rgba(0, 0, 0, 0.35);
	color: inherit;
	font: inherit;
}

.bans-toolbar button {
	padding: 0.7rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bans-toolbar button:hover {
	background: rgba(255, 255, 255, 0.08);
}

.bans-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	width: 100%;
}

.bans-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--bans-line);
	color: inherit;
	text-decoration: none;
	font-size: 0.85rem;
}

.bans-chip span {
	opacity: 0.65;
	font-variant-numeric: tabular-nums;
}

.bans-chip.is-active {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.08);
}

.bans-meta,
.bans-empty,
.bans-alert,
.bans-note {
	color: var(--bans-muted);
	font-size: 0.9rem;
}

.bans-alert {
	color: #f0a0a0;
}

.bans-table {
	margin-top: 1rem;
	border-top: 1px solid var(--bans-line);
}

.bans-head {
	display: grid;
	grid-template-columns: var(--bans-cols);
	gap: 0.65rem;
	align-items: end;
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--bans-line);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bans-muted);
}

.bans-head .bans-badge,
.bans-head .bans-name,
.bans-head .bans-reason,
.bans-head .bans-len,
.bans-head .bans-when {
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	opacity: 1;
}

.bans-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bans-item {
	border-bottom: 1px solid var(--bans-line);
}

.bans-item.is-amx {
	border-left: 3px solid var(--bans-amx);
}

.bans-item.is-sb {
	border-left: 3px solid var(--bans-sb);
}

.bans-item summary {
	display: grid;
	grid-template-columns: var(--bans-cols);
	gap: 0.65rem;
	align-items: center;
	padding: 0.85rem 0.75rem;
	cursor: pointer;
	list-style: none;
}

.bans-item summary::-webkit-details-marker {
	display: none;
}

.bans-item summary:hover {
	background: rgba(255, 255, 255, 0.04);
}

.bans-badge {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.9;
}

.bans-item.is-amx .bans-badge { color: var(--bans-amx); }
.bans-item.is-sb .bans-badge { color: var(--bans-sb); }

.bans-name {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bans-reason,
.bans-len {
	font-size: 0.88rem;
	color: var(--bans-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bans-when {
	font-size: 0.88rem;
	color: var(--bans-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.bans-detail {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 0 0.75rem 1.1rem 0.9rem;
	border-top: 1px solid var(--bans-line);
	background: rgba(0, 0, 0, 0.2);
}

.bans-detail div {
	min-width: 0;
}

.bans-detail dt {
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bans-muted);
}

.bans-detail dd {
	margin: 0.15rem 0 0;
	word-break: break-word;
}

.bans-detail code {
	font-size: 0.85em;
	opacity: 0.9;
}

/* Pagination — same pattern as HLStats players (stats-pagination-*) */
.page-bans .stats-pagination-wrap {
	margin: 16px 0 12px;
	padding: 0;
	text-align: left;
}

.page-bans .stats-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
}

.page-bans .stats-pagination-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #8fa3b8;
	flex-shrink: 0;
}

.page-bans .stats-pagination-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	max-width: 100%;
}

.page-bans .stats-pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	line-height: 1;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-bans .stats-pagination-link:hover,
.page-bans .stats-pagination-link:focus {
	border-color: rgba(46, 204, 113, 0.45);
	color: var(--accent-bright);
	background: rgba(46, 204, 113, 0.1);
	text-decoration: none;
}

.page-bans .stats-pagination-link-text {
	padding: 0 12px;
	min-width: auto;
	font-size: 12px;
}

.page-bans .stats-pagination-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border-radius: 6px;
	background: linear-gradient(180deg, var(--accent), #27ae60);
	color: #04140a;
	font-weight: 800;
	font-size: 13px;
	line-height: 1;
	box-sizing: border-box;
}

.page-bans .stats-pagination-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 32px;
	padding: 0 2px;
	color: #6b7280;
	font-weight: 600;
	font-size: 13px;
	user-select: none;
}

.bans-note {
	margin-top: 2rem;
}

.bans-note a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 760px) {
	.bans-head {
		display: none;
	}
	.bans-item summary {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"badge len"
			"name name"
			"reason reason"
			"when when";
	}
	.bans-badge { grid-area: badge; }
	.bans-name { grid-area: name; }
	.bans-reason { grid-area: reason; white-space: normal; }
	.bans-len { grid-area: len; text-align: right; }
	.bans-when { grid-area: when; }
}
