/* ================================================================
   Team Page — Maranatha SC
   ================================================================ */

.team-hero *,
.team-body * { box-sizing: border-box; }

/* ================================================================
   HERO
   ================================================================ */

.team-hero {
	position: relative;
	background: #0a0f1e;
	padding: 4rem 0 3rem;
	overflow: hidden;
}

.team-hero__bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, #0a0f1e 0%, #1a0810 100% );
}

/* Subtle pitch-line pattern */
.team-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		90deg,
		rgba(255,255,255,0.015) 0px,
		rgba(255,255,255,0.015) 1px,
		transparent 1px,
		transparent 80px
	);
	pointer-events: none;
}

.team-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

/* Logo */
.team-hero__logo-wrap {
	flex-shrink: 0;
	width: 130px;
	height: 130px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 3px solid rgba(255,255,255,0.15);
	box-shadow: 0 0 40px rgba(200,16,46,0.2);
}

.team-hero__logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.team-hero__logo-placeholder {
	color: rgba(255,255,255,0.2);
}

.team-hero__logo-placeholder svg {
	width: 60px;
	height: 60px;
}

/* Info */
.team-hero__info { flex: 1; }

.team-hero__league {
	display: inline-block;
	background: var(--color-accent,#c8102e);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 0.25rem 0.75rem;
	border-radius: 2px;
	margin-bottom: 0.75rem;
}

.team-hero__name {
	font-size: clamp( 1.75rem, 4vw, 3.25rem );
	font-weight: 900;
	color: #fff;
	line-height: 1.05;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.team-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	color: rgba(255,255,255,0.55);
	font-size: 0.875rem;
}

.team-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.team-hero__meta-item svg {
	width: 14px;
	height: 14px;
	opacity: 0.6;
	flex-shrink: 0;
}

.team-hero__meta-sep { opacity: 0.3; }

/* ================================================================
   BODY
   ================================================================ */

.team-body {
	background: #f5f5f5;
	padding: 2rem 0 3rem;
}

.team-body__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 1.5rem;
	align-items: start;
}

/* ================================================================
   SHARED CARD  (reused across team/event pages)
   ================================================================ */

.sp-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.07);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.sp-card:last-child { margin-bottom: 0; }

.sp-card__heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #111;
	margin: 0;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid #f0f0f0;
}

.sp-card__bar {
	display: inline-block;
	width: 3px;
	height: 16px;
	background: var(--color-accent,#c8102e);
	border-radius: 2px;
	flex-shrink: 0;
}

.sp-card__count {
	margin-left: auto;
	background: #f0f0f0;
	color: #888;
	font-size: 0.7rem;
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
}

.sp-card__body {
	padding: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #444;
}

.sp-card__table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* SportsPress table resets inside cards */
.sp-card__table-wrap .sp-template { margin: 0; }
.sp-card__table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.sp-card__table-wrap table th { padding: 0.6rem 1rem; background: #f7f7f7; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #999; border-bottom: 2px solid #eee; text-align: center; white-space: nowrap; }
.sp-card__table-wrap table th:first-child { text-align: left; }
.sp-card__table-wrap table td { padding: 0.65rem 1rem; border-bottom: 1px solid #f0f0f0; text-align: center; color: #333; vertical-align: middle; }
.sp-card__table-wrap table td:first-child { text-align: left; font-weight: 600; }
.sp-card__table-wrap table tbody tr:last-child td { border-bottom: none; }
.sp-card__table-wrap table tbody tr:hover { background: #fdf5f6; }
.sp-card__table-wrap table .sp-row-current td { background: #fef9ec; font-weight: 700; }

/* ================================================================
   INFO LIST (sidebar details)
   ================================================================ */

.sp-info-list { margin: 0; padding: 0; }

.sp-info-list__row {
	display: flex;
	align-items: baseline;
	padding: 0.65rem 1.25rem;
	border-bottom: 1px solid #f5f5f5;
	gap: 0.75rem;
}

.sp-info-list__row:last-child { border-bottom: none; }

.sp-info-list__row dt {
	font-size: 0.72rem;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	white-space: nowrap;
	width: 90px;
	flex-shrink: 0;
}

.sp-info-list__row dd {
	font-size: 0.875rem;
	font-weight: 600;
	color: #111;
	margin: 0;
}

/* ================================================================
   SQUAD GRID
   ================================================================ */

.squad-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
	gap: 1px;
	background: #f0f0f0;
}

.squad-card {
	position: relative;
	background: #fff;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.squad-card:hover {
	z-index: 2;
	transform: scale( 1.03 );
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Photo */
.squad-card__photo-wrap {
	position: relative;
	aspect-ratio: 3/4;
	background: #1a1a2e;
	overflow: hidden;
}

.squad-card__photo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.35s ease;
}

.squad-card:hover .squad-card__photo-wrap img {
	transform: scale( 1.06 );
}

.squad-card__photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.15);
}

.squad-card__photo-placeholder svg { width: 50px; height: 50px; }

/* Jersey number badge */
.squad-card__number {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	background: var(--color-accent,#c8102e);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Info bar */
.squad-card__info {
	padding: 0.6rem 0.65rem 0.5rem;
	background: #fff;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.squad-card__flag img,
.squad-card__flag .sp-flag {
	width: 16px;
	height: auto;
	border-radius: 2px;
}

.squad-card__name {
	font-size: 0.8rem;
	font-weight: 700;
	color: #111;
	line-height: 1.2;
}

.squad-card__pos {
	font-size: 0.68rem;
	color: var(--color-accent,#c8102e);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

/* Hover accent bar */
.squad-card__hover-bar {
	height: 3px;
	background: var(--color-accent,#c8102e);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.squad-card:hover .squad-card__hover-bar {
	transform: scaleX(1);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media screen and ( max-width: 960px ) {
	.team-body__inner { grid-template-columns: 240px 1fr; }
	.squad-grid { grid-template-columns: repeat( auto-fill, minmax( 120px, 1fr ) ); }
}

@media screen and ( max-width: 700px ) {
	.team-hero__inner { flex-direction: column; text-align: center; gap: 1.5rem; }
	.team-hero__logo-wrap { width: 100px; height: 100px; }
	.team-hero__meta { justify-content: center; }
	.team-body__inner { grid-template-columns: 1fr; }
	.squad-grid { grid-template-columns: repeat( auto-fill, minmax( 110px, 1fr ) ); }
}
