/*
 * IAL Football — All Brands directory.
 *
 * Mirrors the dark broadcast palette of the YouTube TV module so the
 * /all-brands/ page feels like a sibling of the live-game broadcast
 * window rather than a standalone Woo archive. Uses a CSS grid with
 * auto-fit cards so the layout scales from one column on mobile up
 * through five columns on wide desktops without any breakpoint math.
 */

.ial-all-brands {
	width: 100%;
	max-width: 1280px;
	margin: 40px auto;
	padding: 28px;
	color: #ffffff;
	background:
		radial-gradient(circle at 12% 8%, rgba(239, 68, 68, 0.32), transparent 28%),
		radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.22), transparent 32%),
		radial-gradient(circle at 50% 115%, rgba(59, 130, 246, 0.14), transparent 36%),
		linear-gradient(135deg, #030712 0%, #07111f 45%, #111827 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 28px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.ial-all-brands-header {
	margin-bottom: 22px;
	text-align: center;
}

.ial-all-brands-eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 12px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.ial-all-brands-title {
	margin: 0 0 8px;
	color: #ffffff !important;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.04;
	font-weight: 950;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.ial-all-brands-text {
	margin: 0 auto;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.55;
}

.ial-all-brands-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ial-all-brands-card {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Whole card is the click target. Flexbox stacks thumb → meta → CTA so
 * cards stay vertically aligned regardless of brand-name length.
 */
.ial-all-brands-link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 22px 18px 18px;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
	color: #ffffff !important;
	text-align: center;
	text-decoration: none !important;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
}

.ial-all-brands-link:hover,
.ial-all-brands-link:focus {
	transform: translateY(-3px);
	border-color: rgba(249, 115, 22, 0.5);
	box-shadow: 0 22px 44px rgba(239, 68, 68, 0.22);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.ial-all-brands-thumb {
	display: grid;
	place-items: center;
	width: 120px;
	height: 120px;
	border-radius: 18px;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.ial-all-brands-thumb img {
	max-width: 88%;
	max-height: 88%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.ial-all-brands-thumb-fallback {
	font-size: 38px;
	font-weight: 950;
	letter-spacing: 0.04em;
	color: #ffffff;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
	background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ial-all-brands-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.ial-all-brands-eyebrow-small {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66);
}

.ial-all-brands-name {
	font-size: 16px;
	font-weight: 950;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
}

.ial-all-brands-count {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.ial-all-brands-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	margin-top: auto;
	border-radius: 999px;
	background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
	color: #ffffff;
	font-size: 18px;
	font-weight: 950;
	box-shadow: 0 10px 22px rgba(239, 68, 68, 0.32);
	transition: transform 0.18s ease;
}

.ial-all-brands-link:hover .ial-all-brands-cta,
.ial-all-brands-link:focus .ial-all-brands-cta {
	transform: translateX(4px);
}

.ial-all-brands-empty {
	margin: 24px auto;
	padding: 18px 22px;
	max-width: 720px;
	border-radius: 16px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	text-align: center;
}

@media (max-width: 760px) {
	.ial-all-brands {
		margin: 24px auto;
		padding: 20px;
		border-radius: 22px;
	}

	.ial-all-brands-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 12px;
	}

	.ial-all-brands-link {
		padding: 16px 12px 14px;
		gap: 10px;
	}

	.ial-all-brands-thumb {
		width: 88px;
		height: 88px;
		border-radius: 14px;
	}

	.ial-all-brands-name {
		font-size: 14px;
	}
}
