/* Single Pro Player page — kept in its own file, not mixed into main.css */

.single-pro-player {
	position: relative;
	padding: 32px 0 64px;
}

/* --- Top banner --- */
.pp-banner {
	position: absolute;
	top: -58px;
	left: 0;
	right: 0;
	width: 100%;
	height: 520px;
	background-color: #13151d;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	z-index: 0;
}

.pp-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(19, 21, 29, 0.35) 0%, rgba(19, 21, 29, 0.8) 60%, #13151d 100%);
}

.single-pro-player .container {
	position: relative;
	z-index: 1;
}

/* body already sets Noto Sans, but browsers don't let form controls inherit
   it by default (button/select/input/textarea use the OS UI font instead) —
   so without this, every button on this page fell back to the system font. */
.single-pro-player button,
.single-pro-player input,
.single-pro-player select,
.single-pro-player textarea {
	font-family: "Noto Sans", sans-serif;
}

/* --- Breadcrumbs ---
   Reuses the sitewide .breadcrumbs (Yoast SEO output) from main.css instead
   of a one-off "back" link — pp-breadcrumbs only adds this page's spacing. */
.pp-breadcrumbs {
	margin-bottom: 20px;
}

/* --- Per-player banner (image_desktop/tablet/mobile, picked by <picture>) --- */
.pp-hero-banner-players {
	margin-bottom: 20px;
	border-radius: 2px;
	overflow: hidden;
}

.pp-hero-banner-players__img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Hero --- */
.pp-hero {
	display: flex;
	gap: 32px;
	backdrop-filter: blur(30px);
	background: rgba(27, 28, 37, 0.8);
	border-radius: 2px;
	padding: 40px;
	margin-bottom: 32px;
}

.pp-hero__photo {
	flex: 0 0 340px;
	max-width: 340px;
	/* .pp-hero has no explicit height of its own (it's sized by its content),
	   so the default flex "stretch" would otherwise make this match
	   .pp-hero__info's height and resize whenever the bio expands/collapses.
	   align-self opts just this item out, leaving its height purely up to
	   the aspect-ratio below — .pp-hero__info still stretches normally. */
	align-self: flex-start;
	aspect-ratio: 3 / 4;
	border-radius: 2px;
	overflow: hidden;
	position: relative;
	background-color: #161821;
	border-top: 2px solid #ff6d36;
}

.pp-hero__photo::before,
.pp-hero__photo::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.pp-hero__photo::before {
	/* faint flame watermark */
	inset: 0;
	background-image: url('../img/pp-hero-flame.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	z-index: 0;
}

.pp-hero__photo::after {
	/* soft orange glow at the top — scales with the photo instead of a fixed
	   372x246px box, so it doesn't overflow once the photo shrinks/stacks on
	   tablet and mobile */
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 372px;
	aspect-ratio: 372 / 246;
	background-image: url('../img/pp-hero-glow.svg');
	background-repeat: no-repeat;
	background-position: top center;
	background-size: contain;
	z-index: 0;
}

.pp-hero__photo img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pp-hero__photo-logo {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	max-width: 44px;
}

.pp-hero__photo-logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.pp-hero__info {
	/* height comes from the default flex "stretch" (matches .pp-hero__photo's
	   row height) — height:100% doesn't work here since .pp-hero itself has
	   no explicit height for a percentage to resolve against */
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.pp-hero-banner-players {
	width: 100%;
	height: 100%;
	max-width: 1220px;
	height: 342px;
}

.pp-hero__main-block {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 16px;
}

.pp-hero__main-block-info,
.pp-hero__main-block-social {
	flex: 0 0 calc(50% - 8px);
	min-width: 0;
}

.pp-hero__main-block-social {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.pp-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.pp-hero__team {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #242430;
	border-radius: 100px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #dce1e5;
	width: fit-content;
}

.pp-hero__team img {
	width: 22px;
	height: 22px;
	object-fit: contain;
	border-radius: 50%;
}

.pp-hero__rank {
	font-size: 13px;
	color: #8f9daa;
}

.pp-hero__rank strong {
	color: #ffffff;
}

.pp-hero__name {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 32px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 8px;
}

.pp-hero__flag {
	font-size: 24px;
	line-height: 1;
}

.pp-hero__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #8f9daa;

}

.pp-hero__meta .dot {
	opacity: 0.6;
}

.pp-hero hr {
	border: none;
	border-top: 1px solid #292937;
	margin: 0 0 20px;
}

.pp-hero__bio {
	font-size: 16px;
	line-height: 1.6;
	color: #8f9daa;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	transition: max-height 0.3s ease;
}

.pp-hero__bio.is-expanded {
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.pp-hero__bio p {
	margin: 0 0 12px;
}

.pp-hero__show-more {
	background: none;
	border: none;
	color: #ff975d;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 0 20px;
	text-align: left;
}

.pp-hero__bottom {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;

}

.pp-hero__socials {
	display: flex;
	gap: 10px;
}

.pp-social,
.pp-social:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 2px;
	padding: 8px;
	background: #292937;
	color: #8f9daa;
	transition: color 0.2s ease, background 0.2s ease;
}

.pp-social:hover {
	color: #ffffff;
	background: #292937;
}

.pp-hero__download,
.pp-hero__download:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	color: #1e1e29;
	border-radius: 2px;
	padding: 12px 16px;
	background: #ff8845;
	max-width: 188px;
}

/* --- Layout: sticky anchor nav + sections --- */
.pp-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.pp-nav {
	flex: 0 0 328px;
	position: sticky;
	top: 95px;
	background: #161821;
	padding: 12px;
	border-radius: 2px;
}

.pp-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pp-nav a,
.pp-nav a:visited {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 2px;
	font-size: 14px;
	font-weight: 500;
	color: #8f9daa;
	transition: color 0.2s ease, background 0.2s ease;
}

.pp-nav a i,
.pp-nav a .pp-nav__emoji,
.pp-nav a .pp-block-icon {
	font-size: 15px;
	width: 18px;
	text-align: center;
}

.pp-block-icon {
	display: inline-block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: #636a7c;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: background-color 0.2s ease;
}

.pp-nav a:hover {
	color: #ff975d;
}

.pp-nav a:hover .pp-block-icon {
	background-color: #ff975d;
}

.pp-nav a.is-active {
	background: #1e1e29;
}

.pp-nav a.is-active .pp-block-icon {
	background-color: #ff8845;
}

.pp-sections {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.pp-section {
	/* the site header is position:fixed and stays on screen, so jumping to
	   an anchor would otherwise land the section right underneath it —
	   scroll-margin-top stops the scroll short by the header's height,
	   same offset .pp-nav already uses to sit below it. */
	scroll-margin-top: 110px;
	background: #161821;
	border: 1px solid #292937;
	border-radius: 2px;
	padding: 16px 20px 20px;
	max-width: 868px;

}

.pp-section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 700;
	color: #dce1e5;
	margin-bottom: 16px;
}

.pp-section__title i,
.pp-section__title .pp-nav__emoji {
	color: #ff6d36;
}

.pp-section__title .pp-block-icon {
	width: 22px;
	height: 22px;
	background-color: #ff6d36;
}

.pp-section__preview {
	position: relative;
	margin-bottom: 16px;
	border-radius: 2px;
	overflow: hidden;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #101117;
}

.pp-section__preview img {
	width: 100%;
	display: block;
}

.pp-section__crosshair {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.pp-section__crosshair svg {
	display: block;
}

.pp-section__text {
	font-size: 13px;
	line-height: 1.6;
	color: #8f9daa;
	margin: 16px 0 0;
}

.pp-section__text p {
	margin: 0 0 10px;
}

.pp-text-block__title {
	font-size: 16px;
	font-weight: 700;
	color: #dce1e5;
	margin: 0;
}

/* --- Two-column settings table --- */
.pp-table {
	columns: 2;
	column-gap: 2px;
}

.pp-table__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
	background: #1e1e29;
	margin-bottom: 2px;
	break-inside: avoid;
}

.pp-table__label {
	font-weight: 400;
	font-size: 14px;
	color: #8f9daa;
}

.pp-table__value {
	font-weight: 500;
	font-size: 14px;
	color: #dce1e5;
}

/* --- Copy / command box --- */
.pp-code-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}

.pp-code-box__text {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 676px;
	height: 44px;
	max-width: 100%;
	border: 1px solid #1e1e29;
	border-radius: 2px;
	padding: 12px;
	font-family: monospace;
	font-size: 13px;
	color: #dce1e5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: #1e1e29;
}

.pp-code-box__copy {
	box-sizing: border-box;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 136px;
	height: 44px;
	background: #292937;
	border: 2px solid #8f9daa;
	border-radius: 2px;
	color: #dce1e5;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 12px 16px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pp-code-box__copy-icon {
	flex-shrink: 0;
}

.pp-code-box__copy:hover {
	background: #1e1e29;
	border-color: #dce1e5;
}

.pp-code-box__copy.is-copied {
	color: #6bd08a;
	border-color: #6bd08a;
}

/* --- Config download box --- */
.pp-config-box {
	display: flex;
	align-items: center;
	gap: 16px;
}

.pp-config-box__text {
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
	background: #292937;
	border-radius: 2px;
	padding: 16px;
	font-weight: 400;
	font-size: 14px;
	color: #8f9daa;
}

.pp-config-box__link,
.pp-config-box__link:visited {
	font-weight: 600;
	color: #ff8845;
}

/* --- Skins / stickers grid --- */
.pp-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.pp-card {
	--card-color: #ff6d36;
	border-top: 2px solid var(--card-color);
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.pp-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #1b1c25;
	overflow: hidden;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pp-card__glow {
	position: absolute;
	inset: 0;
	background-color: var(--card-color);
	-webkit-mask-image: url('../img/pp-card-glow.svg');
	mask-image: url('../img/pp-card-glow.svg');
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	pointer-events: none;
}

.pp-card__media img {
	position: relative;
	z-index: 1;
	display: block;
}

.pp-card__quality {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.pp-card__quality-wear {
	font-weight: 600;
	font-size: 14px;
	line-height: 120%;
	text-transform: uppercase;
	text-align: right;
	color: #8f9daa;
}

.pp-card__quality-extra {
	color: #ff6d36;
	margin-left: 4px;
}

.pp-card__body {
	padding: 12px 8px;
	background: transparent;
	position: absolute;
	z-index: 2;
	bottom: 0px;
}

.pp-card__type {
	font-size: 12px;
	color: #8f9daa;
	margin-bottom: 2px;
}

.pp-card__name {
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
}

.pp-card__name a,
.pp-card__name a:visited {
	/* the link itself has no class main.css can latch onto for color, so it
	   just inherits — except a:visited beats plain inheritance, so it needs
	   the same explicit override as everywhere else on this page */
	color: inherit;
}

@media screen and (max-width: 991px) {
	.pp-hero-banner-players {
		height: 256px;
	}

	.single-pro-player .container {
		max-width: 740px;
	}

	.pp-hero {
		gap: 24px;
		padding: 24px;
	}


	.pp-hero__photo {
		flex: 0 0 240px;
		max-width: 240px;
	}

	.pp-banner::after {
		display: none;
	}

	.pp-hero__photo-logo {
		display: none;
	}

	.pp-layout {
		flex-direction: column;
	}

	.pp-hero__bottom {
		flex-wrap: wrap;
	}

	.pp-nav {
		position: static;
		width: 100%;
		flex: 0;

	}

	.pp-nav ul {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: scroll;
		overflow-y: hidden;
		white-space: nowrap;
	}



}


@media screen and (max-width: 740px) {
	.pp-sections {
		max-width: 540px;
		width: 100%;
		margin: 0 auto;
	}
}

@media screen and (max-width: 640px) {
	.pp-hero-banner-players {
		height: 200px;
	}

	.pp-hero {
		flex-direction: column;
	}

	.pp-hero__photo {
		flex: 0 0 340px;
		margin: 0 auto;
		width: 100%;
		max-width: 100%;
		aspect-ratio: 1;
	}

	.pp-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 540px) {

	.pp-hero__main-block {
		flex-direction: column;
	}

	.pp-hero__main-block-social {
		align-items: center;
		justify-content: center;
	}

	.pp-social,
	.pp-social:visited {
		width: 100%;
	}

	.pp-hero__socials {
		width: 100%;
	}

	.pp-sections {
		max-width: 343px;
		width: 100%;
		margin: 0 auto;
	}

	.pp-table {
		columns: 1;
	}

	.pp-cards {
		grid-template-columns: 1fr;
	}

	.pp-code-box,
	.pp-config-box {
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 8px;
	}

	.pp-code-box__copy,
	.pp-hero__download {
		width: 100%;
		max-width: none;
		justify-content: center;

	}
}

/* --- FAQ ---
   Reuses the .author-faq markup/accordion (main.css + js/authors.js's
   generic [data-spollers] logic) instead of building a new one — same
   look, one less thing to maintain. Unlike the author page (one spoiler for
   the whole block), here each question is its own trigger — these rules
   only add that layer, scoped to .pp-faq so the author page is unaffected. */
.pp-faq {
	margin-top: 32px;
}

.pp-faq__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 700;
	color: #dce1e5;
	margin: 0 0 8px;
}

.pp-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}

.pp-faq__question svg {
	flex-shrink: 0;
	color: #636a7c;
	/* the path itself points up — rotate it to point down by default,
	   closed state; ._active below un-rotates it back to pointing up */
	transform: rotate(180deg);
	transition: transform 0.2s ease;
}

.pp-faq__question._active svg {
	transform: rotate(0deg);
}

@media screen and (max-width: 500px) {
	.pp-hero-banner-players {
		height: 376px;
	}
}