@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* =====================================================================
   League archive (/leagues/ + /leagues/{category}).
   Self-contained copy of the athlete-archive "v2" look so the two
   directories match — values lifted from the nxtbets-athletes design
   system (colors_and_type.css + styles-v2.css + template-overrides.css),
   inlined here so this plugin carries no cross-plugin CSS dependency.
   ===================================================================== */

/* Light grey page frame behind the white shell — scoped to this archive
   only via the body class WordPress adds on the league post-type archive. */
body.post-type-archive-league {
	background: #ececf6;
}

.lp-arch-shell {
	--navy: #00142d;
	--blue: #0db5ff;
	--blue-deep: #0496d6;
	--ink-muted: #8e8e8e;
	--card: #eff8ff;
	--border: #a2ccf5;
	--blue-300: #c8e2ff;
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	width: 1440px;
	max-width: 100%;
	margin: 0 auto;
	background: #fff;
	font-family: var(--font);
}

.lp-arch-main {
	max-width: 1280px;
	margin: 32px auto;
	padding: 28px 80px 80px;
	border-radius: 10px;
	background: #fff;
}

/* ---------- Header: eyebrow + title + count + filter ---------- */
.lp-arch-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.lp-arch-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue-deep);
}
.lp-arch-title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: var(--navy);
	margin: 8px 0 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.lp-arch-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-muted);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 12px;
}

.lp-arch-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lp-arch-pill {
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 8px 16px;
	text-decoration: none;
	transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.lp-arch-pill:hover {
	border-color: var(--blue);
	color: var(--blue);
}
.lp-arch-pill.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* ---------- Card grid ---------- */
.lp-arch-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.lp-arch-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.lp-arch-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 20, 45, 0.1);
	border-color: var(--blue-300);
}

/* Logo tile: league logo centered. Background defaults to brand navy; when a
   league has a hero image, the template supplies it inline with the same dark
   overlay as the single-league hero (cover/center handled here). */
.lp-arch-card__media {
	aspect-ratio: 16 / 10;
	background: #00142d;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: grid;
	place-items: center;
	padding: 18px;
}
.lp-arch-card__logo {
	max-width: 78%;
	max-height: 72%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.lp-arch-card__abbr {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 4px rgba(0, 20, 45, 0.5);
}
.lp-arch-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.lp-arch-card__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--navy);
	margin: 0;
}
.lp-arch-card__meta {
	font-size: 12px;
	color: var(--ink-muted);
}
.lp-arch-empty {
	font-size: 16px;
	color: var(--ink-muted);
}

/* ---------- Responsive (matches the athletes archive breakpoints) ---------- */
@media (max-width: 1024px) {
	.lp-arch-main {
		padding: 24px 24px 56px;
	}
	.lp-arch-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.lp-arch-main {
		padding: 16px 16px 40px;
	}
	.lp-arch-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}
