@import url('modules/variables.css');

:root {
	--bp-team-navy: #212120;
	--bp-team-indigo: #246030;
	--bp-team-purple: #27733f;
	--bp-team-lime: #b6cca8;
	--bp-team-border: rgba(255, 255, 255, 0.14);
	--bp-team-muted: rgba(255, 255, 255, 0.7);
}

/* .bp-team-profile-page #content.site-content {
	background:
		radial-gradient(circle at 15% 0, rgba(39, 115, 63, 0.28), transparent 35rem),
		linear-gradient(180deg, #1a1a19 0%, #212120 100%);
} */

.bp-team-main {
	max-width: 1400px;
	margin: 0 auto;
	padding: 14px 10px 42px;
	color: #fff;
}

.bp-team-article {
	display: grid;
	gap: 16px;
}

.bp-team-hero,
.bp-team-section {
	border: 1px solid var(--bp-team-border);
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(36, 96, 48, 0.94), rgba(33, 33, 32, 0.96) 62%, rgba(39, 115, 63, 0.55));
	box-shadow: 0 18px 44px rgba(2, 6, 23, 0.32);
}

.bp-team-hero {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 220px;
	padding: 28px 32px;
	overflow: hidden;
	position: relative;
}

.bp-team-hero::after {
	position: absolute;
	inset: auto -80px -100px auto;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgba(182, 204, 168, 0.09);
	content: "";
}

.bp-team-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	position: relative;
	z-index: 1;
}

.bp-team-hero__identity {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
	flex: 1;
}

.bp-team-hero__logo-wrap {
	display: grid;
	flex: 0 0 132px;
	width: 132px;
	height: 132px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 16px 34px rgba(2, 6, 23, 0.35);
}

.bp-team-hero__logo {
	width: 112px;
	height: 112px;
	object-fit: contain;
}

.bp-team-hero__eyebrow,
.bp-team-section__eyebrow {
	margin: 0 0 5px;
	color: #b6cca8;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bp-team-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.05;
}

.bp-team-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.bp-team-hero__meta span {
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.86);
	font-size: 13px;
}

.bp-team-hero__intro {
	width: 100%;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	position: relative;
	z-index: 1;
}

.bp-team-hero__intro p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.5;
}

.bp-team-hero__intro p:last-child {
	margin-bottom: 0;
}

.bp-team-hero__competition {
	display: flex;
	flex: 0 0 240px;
	flex-direction: column;
	gap: 3px;
	padding: 18px;
	border: 1px solid rgba(182, 204, 168, 0.35);
	border-radius: 14px;
	background: rgba(33, 33, 32, 0.5);
}

.bp-team-hero__competition span,
.bp-team-hero__competition small {
	color: var(--bp-team-muted);
	font-size: 12px;
}

.bp-team-hero__competition strong {
	color: #fff;
	font-size: 19px;
}

.bp-team-nav {
	display: flex;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--bp-team-border);
	border-radius: 12px;
	background: rgba(33, 33, 32, 0.95);
	overflow-x: auto;
	position: sticky;
	top: 8px;
	z-index: 10;
	scrollbar-width: none;
}

.bp-team-nav::-webkit-scrollbar {
	display: none;
}

.bp-team-nav a {
	flex: 0 0 auto;
	padding: 9px 16px;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bp-team-nav a:hover,
.bp-team-nav a:focus-visible {
	background: rgba(182, 204, 168, 0.18);
	color: #e8f2de;
	outline: none;
}

.bp-team-section {
	padding: 24px;
	scroll-margin-top: 76px;
}

.bp-team-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bp-team-last-updated {
	margin: 0;
	color: rgba(182, 204, 168, 0.85);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
	white-space: nowrap;
	flex: 0 0 auto;
}

.bp-team-overview__intro,
.bp-team-standings__intro,
.bp-team-matches__intro,
.bp-team-squad__intro,
.bp-team-competitions__intro {
	width: 100%;
	margin: 0 0 18px;
}

.bp-team-overview__intro p,
.bp-team-standings__intro p,
.bp-team-matches__intro p,
.bp-team-squad__intro p,
.bp-team-competitions__intro p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.5;
}

.bp-team-competitions__intro a,
.bp-team-competitions__intro a:visited,
.bp-team-competitions__intro a:hover,
.bp-team-competitions__intro a:focus {
	color: inherit;
	text-decoration: none;
}

.bp-team-overview__intro p:last-child,
.bp-team-standings__intro p:last-child,
.bp-team-matches__intro p:last-child,
.bp-team-squad__intro p:last-child,
.bp-team-competitions__intro p:last-child {
	margin-bottom: 0;
}

.bp-team-section h2,
.bp-team-section h3 {
	margin: 0;
	color: #fff;
}

.bp-team-section h2 {
	font-size: 23px;
}

.bp-team-section h3 {
	margin-bottom: 16px;
	font-size: 17px;
}

.bp-team-form {
	display: flex;
	gap: 6px;
}

.bp-team-form__result {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	border-radius: 8px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.bp-team-form__result--w,
.bp-team-match-card__result--w {
	background: #15803d;
}

.bp-team-form__result--d,
.bp-team-match-card__result--d {
	background: #64748b;
}

.bp-team-form__result--l,
.bp-team-match-card__result--l {
	background: #b91c1c;
}

.bp-team-stat-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.bp-team-stat-card,
.bp-team-standing-summary > div {
	padding: 15px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.065);
}

.bp-team-stat-card span,
.bp-team-standing-summary span {
	display: block;
	color: var(--bp-team-muted);
	font-size: 12px;
}

.bp-team-stat-card strong,
.bp-team-standing-summary strong {
	display: block;
	margin-top: 5px;
	color: #e8f2de;
	font-size: 24px;
}

.bp-team-two-column {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.bp-team-card {
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(33, 33, 32, 0.4);
}

.bp-team-detail-list {
	display: grid;
	gap: 9px;
	margin: 0;
}

.bp-team-detail-list > div {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-team-detail-list > div:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bp-team-detail-list dt {
	color: var(--bp-team-muted);
}

.bp-team-detail-list dd {
	margin: 0;
	color: #fff;
	font-weight: 700;
	text-align: right;
}

.bp-team-leaders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.bp-team-person,
.bp-team-player-card,
.bp-team-tournament {
	display: flex;
	align-items: center;
	gap: 12px;
}

.bp-team-person img,
.bp-team-player-card img {
	flex: 0 0 auto;
	border: 2px solid rgba(182, 204, 168, 0.3);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	object-fit: cover;
}

.bp-team-person span,
.bp-team-player-card span,
.bp-team-tournament span {
	display: block;
	color: var(--bp-team-muted);
	font-size: 12px;
}

.bp-team-person strong,
.bp-team-person a.fp-player-link,
.bp-team-player-card strong,
.bp-team-player-card a,
.bp-team-tournament strong {
	display: block;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.bp-team-person a.fp-player-link:hover,
.bp-team-person a.fp-player-link:focus,
.bp-team-person a.fp-player-link:focus-visible,
.bp-team-player-card a:hover,
.bp-team-player-card a:focus-visible {
	color: #b6cca8;
	outline: none;
	text-decoration: none;
}

.bp-team-squad__intro a.fp-player-link,
.bp-team-squad__intro a.fp-player-link:link,
.bp-team-squad__intro a.fp-player-link:visited,
.bp-team-squad__intro a.fp-player-link:hover,
.bp-team-squad__intro a.fp-player-link:focus,
.bp-team-squad__intro a.fp-player-link:active {
	color: inherit;
	font: inherit;
	font-weight: inherit;
	text-decoration: none;
	box-shadow: none;
	background: transparent;
}

.bp-team-tabs {
	display: flex;
	gap: 5px;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(33, 33, 32, 0.42);
	overflow-x: auto;
}

.bp-team-tabs button {
	flex: 0 0 auto;
	padding: 7px 12px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: rgba(255, 255, 255, 0.68);
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
}

.bp-team-tabs button.is-active,
.bp-team-tabs button:hover,
.bp-team-tabs button:focus-visible {
	background: var(--bp-team-lime);
	color: #212120;
	outline: none;
}

.bp-team-standing-summary {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 9px;
}

.bp-team-match-list {
	display: grid;
	gap: 9px;
}

.bp-team-match-card {
	display: grid;
	grid-template-columns: minmax(150px, 0.7fr) minmax(420px, 2fr) 38px;
	align-items: center;
	gap: 16px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.055);
}

.bp-team-match-card__meta span,
.bp-team-match-card__meta strong {
	display: block;
	font-size: 12px;
}

.bp-team-match-card__meta span {
	color: var(--bp-team-muted);
}

.bp-team-match-card__meta strong {
	margin-top: 3px;
	color: #e8f2de;
}

.bp-team-match-card__fixture {
	display: grid;
	grid-template-columns: 1fr 64px 1fr;
	align-items: center;
	gap: 12px;
}

.bp-team-match-card__team {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: right;
}

.bp-team-match-card__team--away {
	justify-content: flex-start;
	text-align: left;
}

.bp-team-match-card__team img {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.bp-team-match-card__score {
	padding: 7px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-align: center;
}

.bp-team-match-card__result {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 8px;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

.bp-team-squad-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.bp-team-player-card {
	min-width: 0;
	padding: 11px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
}

.bp-team-player-card img {
	width: 58px;
	height: 58px;
}

.bp-team-player-card > div {
	min-width: 0;
}

.bp-team-player-card strong,
.bp-team-player-card a {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bp-team-tournament-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}

.bp-team-tournament {
	padding: 13px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
}

a.bp-team-tournament,
a.bp-team-tournament:visited,
a.bp-team-tournament:hover,
a.bp-team-tournament:focus {
	color: inherit;
	text-decoration: none;
}

.bp-team-tournament img {
	width: 38px;
	height: 38px;
	object-fit: contain;
}

[data-team-standing-panel][hidden],
[data-team-match-panel][hidden],
[data-team-squad-panel][hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.bp-team-stat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bp-team-standing-summary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bp-team-squad-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.bp-team-main {
		padding-inline: 8px;
	}

	.bp-team-hero {
		padding: 22px;
	}

	.bp-team-hero__top {
		align-items: flex-start;
		flex-direction: column;
	}

	.bp-team-hero__logo-wrap {
		flex-basis: 100px;
		width: 100px;
		height: 100px;
		border-radius: 18px;
	}

	.bp-team-hero__logo {
		width: 82px;
		height: 82px;
	}

	.bp-team-hero__competition {
		flex-basis: auto;
		width: 100%;
	}

	.bp-team-hero__intro p {
		font-size: 14px;
	}

	.bp-team-section {
		padding: 18px;
	}

	.bp-team-section__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.bp-team-last-updated {
		white-space: normal;
	}

	.bp-team-two-column,
	.bp-team-squad-grid {
		grid-template-columns: 1fr;
	}

	.bp-team-match-card {
		grid-template-columns: 1fr 32px;
	}

	.bp-team-match-card__meta {
		grid-column: 1 / -1;
	}

	.bp-team-match-card__fixture {
		grid-column: 1;
	}
}

@media (max-width: 520px) {
	.bp-team-hero__identity {
		align-items: flex-start;
		flex-direction: column;
	}

	.bp-team-stat-grid,
	.bp-team-standing-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bp-team-leaders {
		grid-template-columns: 1fr;
	}

	.bp-team-match-card__fixture {
		grid-template-columns: 1fr 46px 1fr;
		gap: 6px;
	}

	.bp-team-match-card__team {
		align-items: center;
		flex-direction: column-reverse;
		font-size: 12px;
		text-align: center;
	}

	.bp-team-match-card__team--away {
		flex-direction: column;
		text-align: center;
	}
}
