/* ================================================================
   Maranatha SC — Player List Page (single-sp_list)
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────────── */
.pl-hero {
	position: relative;
	background: #0a0c12;
	overflow: hidden;
	min-height: 320px;
	display: flex;
	align-items: center;
}

.pl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--pl-hero-bg, none);
	background-size: cover;
	background-position: center top;
	opacity: 0.18;
}

.pl-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(200,16,46,0.22) 0%, transparent 55%),
		linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
	pointer-events: none;
}

.pl-hero__overlay {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--color-accent, #c8102e);
}

.pl-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	padding: 4rem 2rem 3.5rem;
}

.pl-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-accent, #c8102e);
	margin: 0 0 0.85rem;
}

.pl-hero__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 900;
	color: #fff;
	margin: 0 0 0.85rem;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.pl-hero__desc {
	font-size: 0.95rem;
	color: rgba(255,255,255,0.55);
	max-width: 560px;
	line-height: 1.65;
	margin: 0 0 2rem;
}

/* Stats row */
.pl-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
}

.pl-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.pl-hero__stat-num {
	font-size: 1.6rem;
	font-weight: 900;
	color: #fff;
	line-height: 1;
}

.pl-hero__stat-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: rgba(255,255,255,0.35);
}

/* ── Filter Bar ───────────────────────────────────────────────────── */
.pl-filters-bar {
	background: #fff;
	border-bottom: 1px solid #ececec;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.pl-filters-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	gap: 0.25rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.pl-filters-inner::-webkit-scrollbar { display: none; }

.pl-filter {
	flex-shrink: 0;
	padding: 0.85rem 1.25rem;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 0.82rem;
	font-weight: 700;
	color: #888;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
}

.pl-filter:hover { color: #333; }

.pl-filter--active {
	color: var(--color-accent, #c8102e);
	border-bottom-color: var(--color-accent, #c8102e);
}

/* ── Grid Section ─────────────────────────────────────────────────── */
.pl-section {
	background: #f0f0f3;
	padding: 2.5rem 0 4rem;
}

.pl-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* ── Player Card ──────────────────────────────────────────────────── */
.pl-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.07);
	transition: transform 0.25s, box-shadow 0.25s;
	position: relative;
}

.pl-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

/* Invisible full-card link (for accessibility, actual link in name) */
.pl-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Photo area */
.pl-card__photo-wrap {
	position: relative;
	width: 100%;
	padding-top: 115%; /* ~portrait ratio */
	background: #0f1117;
	overflow: hidden;
}

.pl-card__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.4s ease;
}

.pl-card:hover .pl-card__photo { transform: scale(1.04); }

/* Gradient overlay for text readability */
.pl-card__photo-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 45%, transparent 65%);
	pointer-events: none;
}

/* Silhouette (no photo) */
.pl-card__silhouette {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pl-card__silhouette svg {
	width: 60%;
	height: 60%;
	opacity: 0.6;
}

/* Color tinting by position */
.pl-pos--goalkeeper   { background: linear-gradient(145deg, #1a1200 0%, #332000 50%, #1a1200 100%); }
.pl-pos--defender     { background: linear-gradient(145deg, #001024 0%, #001f40 50%, #001024 100%); }
.pl-pos--midfielder   { background: linear-gradient(145deg, #001a0e 0%, #003020 50%, #001a0e 100%); }
.pl-pos--forward      { background: linear-gradient(145deg, #1a0008 0%, #2d0014 50%, #1a0008 100%); }

/* Jersey number */
.pl-card__number {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-accent, #c8102e);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Position badge (over photo, bottom-left) */
.pl-card__pos-badge {
	position: absolute;
	bottom: 0.85rem;
	left: 0.85rem;
	z-index: 2;
	padding: 0.22rem 0.65rem;
	border-radius: 6px;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.pl-pos-badge--goalkeeper { background: rgba(245,158,11,0.85); }
.pl-pos-badge--defender   { background: rgba(59,130,246,0.85); }
.pl-pos-badge--midfielder { background: rgba(16,185,129,0.85); }
.pl-pos-badge--forward    { background: rgba(200,16,46,0.85); }
.pl-card__pos-badge:not([class*="pl-pos-badge--"]) { background: rgba(120,120,120,0.75); }

/* Card body */
.pl-card__body {
	padding: 0.9rem 1rem 1rem;
}

.pl-card__name {
	font-size: 0.95rem;
	font-weight: 800;
	color: #111;
	margin: 0 0 0.5rem;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pl-card__name a {
	color: inherit;
	text-decoration: none;
	position: relative;
	z-index: 2;
}

.pl-card__name a:hover { color: var(--color-accent, #c8102e); }

/* Meta row */
.pl-card__meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.pl-card__nat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	color: #777;
}

.pl-card__nat img,
.pl-card__nat .flag-icon { width: 18px; border-radius: 2px; }

.pl-card__nat-name { font-weight: 600; }

.pl-card__team {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	color: #999;
	font-weight: 600;
}

.pl-card__team-logo {
	width: 16px;
	height: 16px;
	object-fit: contain;
	border-radius: 50%;
}

/* Empty state */
.pl-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 5rem 2rem;
	color: #ccc;
	text-align: center;
}

.pl-empty p { font-size: 1rem; color: #aaa; margin: 0; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.pl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.pl-hero__inner { padding: 3rem 1.25rem 2.5rem; }
	.pl-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 1.25rem;
		gap: 1rem;
	}
	.pl-filters-inner { padding: 0 1.25rem; }
	.pl-section { padding: 2rem 0 3rem; }
}

@media (max-width: 480px) {
	.pl-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
	.pl-card__name { font-size: 0.85rem; }
}
