/* =====================================================================
   VLY · Athlete profile — V3 "Card stack on court"
   single-national-team-player.php styles
   Drop at: wp-content/themes/<your-theme>/assets/css/athlete-v3.css
   Court graphic expected at: ../../assets/court-graphic-3.png
   Tokens are scoped to .vly-athlete so they won't leak site-wide.
   ===================================================================== */

/* Youth + Poppins are already @font-face'd site-wide by the theme
   (self-hosted at wp-content/uploads/2020/10/), so this file does not
   redeclare them — it just references the families below. */

.vly-athlete {
	/* Brand tokens — scoped */
	--vly-blue:        #2851AC;
	--vly-blue-hover:  #4054B2;
	--vly-blue-pale:   #BBC6DF;
	--vly-yellow:      #DBFF4D;
	--vly-lime:        #CAF365;
	--vly-pink:        #F5D1F2;
	--vly-light-blue:  #CCEDF5;
	--vly-text-mute:   #54595F;
	--vly-surface:     #FFFFFF;
	--vly-success:     #23A455;
	--vly-error:       #D63638;

	--font-display: 'Youth', 'Poppins', system-ui, sans-serif;
	--font-body:    'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	color: var(--vly-blue);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.vly-athlete *,
.vly-athlete *::before,
.vly-athlete *::after { box-sizing: border-box; }

/* ---- Court backdrop ------------------------------------------------ */
.vly-athlete__backdrop {
	background: var(--vly-light-blue) url('../../assets/court-graphic-3.png') center top / cover no-repeat;
	padding: 28px 0 100px;
}

.vly-athlete__container {
	max-width: 968px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- Breadcrumb ---------------------------------------------------- */
.vly-athlete__crumb-box {
	display: inline-block;
	background: var(--vly-surface);
	padding: 8px 14px;
	margin-bottom: 16px;
}
.vly-athlete__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 13px;
	color: var(--vly-text-mute);
}
.vly-athlete__crumbs a {
	color: var(--vly-text-mute);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}
.vly-athlete__crumbs a:hover { color: var(--vly-blue); }
.vly-athlete__crumbs span[aria-hidden="true"] { color: var(--vly-blue-pale); }
.vly-athlete__crumbs-current { font-weight: 700; color: var(--vly-blue); }

/* ---- Card stack ---------------------------------------------------- */
.vly-athlete__stack {
	max-width: 920px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---- Header card --------------------------------------------------- */
.vly-athlete__hero-card {
	background: var(--vly-surface);
	border-radius: 6px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 300px 1fr;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.10);
}
.vly-athlete__hero-photo {
	position: relative;
	background: var(--vly-blue);
	min-height: 340px;
}
.vly-athlete__hero-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 18%;
}
.vly-athlete__photo-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--vly-blue), var(--vly-blue-hover));
}
.vly-athlete__photo-placeholder span {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 72px;
	color: #fff;
	opacity: 0.45;
}
.vly-athlete__jersey-badge {
	position: absolute;
	left: 16px;
	top: 16px;
	background: var(--vly-yellow);
	color: var(--vly-blue);
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	font-size: 36px;
	line-height: 1;
	padding: 8px 12px 6px;
	letter-spacing: -0.02em;
}

.vly-athlete__hero-id {
	padding: 32px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}
.vly-athlete__eyebrow {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--vly-blue);
}
/* Scoped under .vly-athlete so the theme's `body.elementor-kit-NNN h1`
   rule can't override our font / size / line-height. */
.vly-athlete .vly-athlete__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 64px;
	line-height: 0.92;
	letter-spacing: -0.02em;
	color: var(--vly-blue);
	margin: 0;
	text-wrap: balance;
}
.vly-athlete__meta-line {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 14px;
	color: var(--vly-text-mute);
	margin-top: 6px;
}
.vly-athlete__meta-strong { color: var(--vly-blue); font-weight: 700; }
.vly-athlete__meta-dot {
	width: 4px;
	height: 4px;
	background: var(--vly-yellow);
	border-radius: 999px;
}

/* ---- Buttons ------------------------------------------------------- */
.vly-athlete__actions { display: flex; gap: 10px; margin-top: 12px; }
.vly-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 12px 20px;
	border: 0;
	border-radius: 0;          /* square buttons — brand cue */
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.vly-btn:focus-visible { outline: 3px solid #38C9D4; outline-offset: 2px; }
.vly-btn--accent { background: var(--vly-yellow); color: var(--vly-blue); }
.vly-btn--accent:hover { background: var(--vly-lime); }
.vly-btn--ghost {
	background: var(--vly-surface);
	color: var(--vly-blue);
	border: 1px solid var(--vly-blue-pale);
}
.vly-btn--ghost:hover { border-color: var(--vly-blue); }
.vly-btn.is-following { background: var(--vly-blue); color: #fff; }

/* ---- Stat tiles ---------------------------------------------------- */
.vly-athlete__stat-tiles {
	background: var(--vly-surface);
	border-radius: 6px;
	overflow: hidden;
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), 1fr);
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.vly-athlete__stat-tiles[data-cols="1"] { --cols: 1; }
.vly-athlete__stat-tiles[data-cols="2"] { --cols: 2; }
.vly-athlete__stat-tiles[data-cols="3"] { --cols: 3; }
.vly-athlete__stat-tiles[data-cols="4"] { --cols: 4; }
.vly-athlete__tile {
	padding: 24px 20px;
	border-right: 1px solid rgba(40, 81, 172, 0.10);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.vly-athlete__tile:last-child { border-right: 0; }
.vly-athlete__tile:nth-child(2) { background: var(--vly-yellow); }
.vly-athlete__tile:nth-child(4) { background: var(--vly-pink); }
.vly-athlete__tile-value {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 56px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--vly-blue);
}
.vly-athlete__tile-label {
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--vly-blue);
}

/* ---- Generic card -------------------------------------------------- */
.vly-athlete__card {
	background: var(--vly-surface);
	border-radius: 6px;
	padding: 32px 36px;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.vly-athlete__card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.vly-athlete__quote { color: var(--vly-blue); flex-shrink: 0; }
.vly-athlete .vly-athlete__card-title {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--vly-blue);
	margin: 0;
}
.vly-athlete__bio-body {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.65;
	color: var(--vly-blue);
	text-wrap: pretty;
}
.vly-athlete__bio-body p { margin: 0 0 12px; }
.vly-athlete__bio-body p:last-child { margin-bottom: 0; }

/* ---- Recent form / matches ---------------------------------------- */
.vly-athlete__matches { padding: 0; overflow: hidden; }
.vly-athlete__matches-head {
	padding: 20px 28px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	border-bottom: 1px solid var(--vly-blue-pale);
}
.vly-athlete__form-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vly-athlete__form-chip {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 12px;
	color: var(--vly-blue);
}
.vly-athlete__form-chip.is-win  { background: var(--vly-yellow); }
.vly-athlete__form-chip.is-loss { background: var(--vly-pink); }

.vly-athlete__match-row {
	display: grid;
	grid-template-columns: 70px 1fr 130px 80px 60px;
	align-items: center;
	gap: 16px;
	padding: 14px 28px;
	border-bottom: 1px solid #F0F0F0;
	font-family: var(--font-body);
	font-size: 14px;
}
.vly-athlete__match-row:last-child { border-bottom: 0; }
.vly-athlete__match-date { font-weight: 700; color: var(--vly-blue); }
.vly-athlete__match-comp { color: var(--vly-text-mute); }
.vly-athlete__match-vs   { color: var(--vly-blue); font-weight: 500; }
.vly-athlete__match-score {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.01em;
}
.vly-athlete__score--win  { color: var(--vly-success); }
.vly-athlete__score--loss { color: var(--vly-error); }
.vly-athlete__mvp-badge {
	background: var(--vly-yellow);
	color: var(--vly-blue);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 3px 7px;
}

/* ---- Support card (club + sponsor) -------------------------------- */
.vly-athlete__support {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
}
.vly-athlete__support-block { display: flex; flex-direction: column; gap: 10px; }
.vly-athlete__label {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--vly-text-mute);
}
.vly-athlete__support-row {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}
.vly-athlete__support-logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--vly-blue-pale);
	border-radius: 3px;
	padding: 4px;
}
.vly-athlete__support-name {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 16px;
	color: var(--vly-blue);
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 720px) {
	.vly-athlete__hero-card { grid-template-columns: 1fr; }
	.vly-athlete__hero-photo { min-height: 0; aspect-ratio: 4 / 5; }
	.vly-athlete__hero-id { padding: 24px 24px 28px; }
	.vly-athlete .vly-athlete__name { font-size: 48px; }
	.vly-athlete__card { padding: 24px 22px; }
}

@media (max-width: 680px) {
	/* Drop the competition column before it wraps into tall rows. */
	.vly-athlete__match-row {
		grid-template-columns: 48px 1fr auto auto;
		gap: 10px;
		padding: 14px 18px;
	}
	.vly-athlete__match-comp { display: none; }
	.vly-athlete__matches-head { padding: 18px 18px; }
}

@media (max-width: 540px) {
	.vly-athlete__stat-tiles { grid-template-columns: repeat(2, 1fr); }
	.vly-athlete__tile:nth-child(2n) { border-right: 0; }
	.vly-athlete__tile:nth-child(n+3) { border-top: 1px solid rgba(40, 81, 172, 0.10); }
	.vly-athlete__tile-value { font-size: 44px; }
}

/* ---- Print --------------------------------------------------------- */
@media print {
	.vly-athlete__backdrop { background: #fff; }
	.vly-athlete__actions { display: none; }
	.vly-athlete__hero-card,
	.vly-athlete__card,
	.vly-athlete__stat-tiles { box-shadow: none; border: 1px solid #ddd; }
}
