/**
 * Teams list shortcode styles.
 * Selectors are nested under .bapro-teams (often doubled) to beat theme styles.
 *
 * @package BasketApiPro
 */

.bapro-teams.bapro-teams {
	--c-grey: var(--bapro-grey);
	--c-black: var(--bapro-black);
	--c-orange: var(--bapro-orange);
	--c-blue: var(--bapro-blue);
	--c-text: var(--bapro-text);
	--c-border: var(--bapro-border);
	--radius: var(--bapro-radius);
	--shadow: var(--bapro-shadow);
	container-type: inline-size;
	container-name: teams;
	color: var(--c-text);
	background: var(--c-grey);
	padding: 20px;
	margin: 0 auto;
	width: min(1100px, 92vw);
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.4;
}

.bapro-teams.bapro-teams *,
.bapro-teams.bapro-teams *::before,
.bapro-teams.bapro-teams *::after {
	box-sizing: border-box;
}

.bapro-teams.bapro-teams .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.bapro-teams.bapro-teams .bapro-teams__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	padding: 0 0 18px;
	margin: 0;
}

.bapro-teams.bapro-teams h2.bapro-teams__title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--c-black);
	letter-spacing: 0.2px;
	text-transform: none;
	background: none;
}

.bapro-teams.bapro-teams .bapro-teams__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.bapro-teams.bapro-teams label.bapro-teams__search {
	display: inline-flex;
	margin: 0;
	padding: 0;
	font-weight: inherit;
	color: inherit;
	display:none;
}

.bapro-teams.bapro-teams input.bapro-teams__search-input[type="search"],
.bapro-teams.bapro-teams input.bapro-teams__search-input {
	min-width: 180px;
	width: 220px;
	max-width: 100%;
	height: auto;
	padding: 8px 12px;
	margin: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--c-black);
	font-size: 0.9375rem;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.4;
	outline: none;
	box-shadow: var(--shadow);
	-webkit-appearance: none;
	appearance: none;
}

.bapro-teams.bapro-teams input.bapro-teams__search-input[type="search"]:focus,
.bapro-teams.bapro-teams input.bapro-teams__search-input:focus {
	border-color: var(--c-black);
	outline: none;
	box-shadow: var(--shadow);
}

.bapro-teams.bapro-teams label.bapro-select,
.bapro-teams.bapro-teams .bapro-select {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	gap: 10px;
	cursor: pointer;
	font-weight: inherit;
	color: inherit;
}

.bapro-teams.bapro-teams .bapro-select select,
.bapro-teams.bapro-teams select#bapro-teams-season-select {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	outline: none;
	box-shadow: none;
	font-weight: 600;
	font-size: inherit;
	font-family: inherit;
	color: var(--c-black);
	padding: 6px 22px 6px 0;
	margin: 0;
	height: auto;
	line-height: 1.4;
	cursor: pointer;
	width: auto;
	max-width: 100%;
}

.bapro-teams.bapro-teams .bapro-select .bapro-select__chev,
.bapro-teams.bapro-teams i.bapro-select__chev {
	position: absolute;
	right: 12px;
	pointer-events: none;
	border: 6px solid transparent;
	border-top-color: var(--c-black);
	top: 50%;
	transform: translateY(-25%);
	margin: 0;
	padding: 0;
	width: 0;
	height: 0;
	background: none;
	display: block;
}

.bapro-teams.bapro-teams .bapro-teams__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bapro-teams.bapro-teams article.bapro-team-card,
.bapro-teams.bapro-teams .bapro-team-card {
	background: #fff;
	border: 1px solid rgba(0, 163, 224, 0.35);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin: 0;
}

.bapro-teams.bapro-teams .bapro-team-card[hidden] {
	display: none !important;
}

.bapro-teams.bapro-teams .bapro-team-card__main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.bapro-teams.bapro-teams img.bapro-team-card__crest,
.bapro-teams.bapro-teams .bapro-team-card__crest {
	width: 48px;
	height: 48px;
	max-width: 48px;
	object-fit: contain;
	flex-shrink: 0;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.bapro-teams.bapro-teams .bapro-team-card__crest--placeholder,
.bapro-teams.bapro-teams span.bapro-team-card__crest--placeholder {
	background: var(--c-grey);
	border: 1px solid rgba(9, 31, 44, 0.08);
}

.bapro-teams.bapro-teams .bapro-team-card__body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.bapro-teams.bapro-teams h3.bapro-team-card__name,
.bapro-teams.bapro-teams .bapro-team-card__name {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-black);
	text-transform: none;
	letter-spacing: normal;
	background: none;
	min-height: 2.6em;
}

.bapro-teams.bapro-teams nav.bapro-team-card__links,
.bapro-teams.bapro-teams .bapro-team-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.bapro-teams.bapro-teams a.bapro-team-card__link,
.bapro-teams.bapro-teams .bapro-team-card__link {
	color: #6b7a85;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	border-bottom: none;
	background: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.bapro-teams.bapro-teams a.bapro-team-card__link:hover,
.bapro-teams.bapro-teams a.bapro-team-card__link:focus,
.bapro-teams.bapro-teams .bapro-team-card__link:hover,
.bapro-teams.bapro-teams .bapro-team-card__link:focus {
	color: var(--c-blue);
	text-decoration: underline;
	border-bottom: none;
	outline: none;
}

.bapro-teams.bapro-teams p.bapro-teams__empty,
.bapro-teams.bapro-teams .bapro-teams__empty {
	margin: 24px 0 0;
	padding: 0;
	text-align: center;
	color: #6b7a85;
	font-size: inherit;
	line-height: 1.4;
}

@container teams (min-width: 600px) {
	.bapro-teams.bapro-teams .bapro-teams__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container teams (min-width: 900px) {
	.bapro-teams.bapro-teams .bapro-teams__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
