/* ================================================================
   Event / Match Page — Maranatha SC
   ================================================================ */

.match-hero *,
.match-details-strip *,
.match-body * { box-sizing: border-box; }

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

.match-hero {
	position: relative;
	background: #0a0f1e;
	overflow: hidden;
	padding: 3rem 1.5rem 2.5rem;
}

/* Gradient overlay */
.match-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, #0a0f1e 0%, #15051a 50%, #0a0f1e 100% );
}

/* Subtle pitch-line texture */
.match-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(
			0deg,
			rgba(255,255,255,0.012) 0px,
			rgba(255,255,255,0.012) 1px,
			transparent 1px,
			transparent 60px
		),
		repeating-linear-gradient(
			90deg,
			rgba(255,255,255,0.012) 0px,
			rgba(255,255,255,0.012) 1px,
			transparent 1px,
			transparent 60px
		);
	pointer-events: none;
}

/* Status colour accent line at top */
.match-hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--color-accent,#c8102e);
	transition: background 0.3s;
}

.match-hero.is-finished::after { background: var(--color-accent,#c8102e); }
.match-hero.is-upcoming::after { background: #1a6fc4; }
.match-hero.is-tbc::after      { background: #888; }

/* Breadcrumb */
.match-hero__breadcrumb {
	position: relative;
	z-index: 2;
	text-align: center;
	margin-bottom: 2rem;
	font-size: 0.75rem;
	color: rgba(255,255,255,0.45);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.match-hero__breadcrumb-sep { opacity: 0.35; }

/* ── Scoreboard ──────────────────────────────────────────────── */

.match-hero__scoreboard {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1.5rem;
}

/* ── Team block ──────────────────────────────────────────────── */

.match-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	text-align: center;
}

.match-team--away { flex-direction: column; }

.match-team__logo-wrap {
	width: 96px;
	height: 96px;
	background: rgba(255,255,255,0.06);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem;
	border: 2px solid rgba(255,255,255,0.1);
	box-shadow: 0 0 32px rgba(0,0,0,0.4);
	flex-shrink: 0;
}

.match-team__logo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.match-team__logo-wrap a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.match-team__logo-placeholder {
	color: rgba(255,255,255,0.2);
}

.match-team__logo-placeholder svg {
	width: 40px;
	height: 40px;
}

.match-team__name {
	font-size: clamp(0.9rem, 2vw, 1.25rem);
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}

.match-team__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

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

/* Outcome badges */
.match-team__outcome {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.2rem 0.6rem;
	border-radius: 2px;
}

.match-team__outcome--win  { background: #15803d; color: #fff; }
.match-team__outcome--loss { background: var(--color-accent,#c8102e); color: #fff; }
.match-team__outcome--draw { background: #555; color: #fff; }

/* ── Score centre ──────────────────────────────────────────── */

.match-score {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
}

/* Status pill */
.match-score__status {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	padding: 0.25rem 0.8rem;
	border-radius: 20px;
	background: rgba(255,255,255,0.1);
	color: rgba(255,255,255,0.6);
	border: 1px solid rgba(255,255,255,0.12);
}

.match-score__status.is-finished {
	background: rgba(200,16,46,0.2);
	border-color: rgba(200,16,46,0.35);
	color: #f87171;
}

.match-score__status.is-upcoming {
	background: rgba(26,111,196,0.2);
	border-color: rgba(26,111,196,0.35);
	color: #60a5fa;
}

/* Score digits */
.match-score__digits {
	display: flex;
	align-items: center;
	gap: 0.25em;
	line-height: 1;
}

.match-score__num {
	font-size: clamp(3rem, 8vw, 5.5rem);
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.03em;
	min-width: 1ch;
	text-align: center;
}

.match-score__divider {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 300;
	color: rgba(255,255,255,0.3);
}

/* Minutes played */
.match-score__minutes {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.4);
	font-weight: 600;
}

/* VS block (upcoming) */
.match-score__vs {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.match-score__vs > span {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 900;
	color: rgba(255,255,255,0.15);
	letter-spacing: 0.1em;
}

.match-score__datetime {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
}

.match-score__date {
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
}

.match-score__time {
	font-size: 0.8rem;
	color: rgba(255,255,255,0.5);
}

/* ================================================================
   DETAILS STRIP
   ================================================================ */

.match-details-strip {
	background: #111827;
	border-top: 1px solid rgba(255,255,255,0.05);
	border-bottom: 3px solid var(--color-accent,#c8102e);
}

.match-details-strip__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	flex-wrap: wrap;
}

.match-detail {
	flex: 1;
	min-width: 120px;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 1rem 0.75rem;
	border-right: 1px solid rgba(255,255,255,0.06);
}

.match-detail:last-child { border-right: none; }

.match-detail svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--color-accent,#c8102e);
	opacity: 0.85;
}

.match-detail > div {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.match-detail__label {
	font-size: 0.62rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.35);
	font-weight: 600;
}

.match-detail__value {
	font-size: 0.8125rem;
	font-weight: 700;
	color: #fff;
}

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

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

.match-body__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ================================================================
   SHARED CARD  (mirrored from team-page.css for standalone use)
   ================================================================ */

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

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

.match-body .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;
}

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

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

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

/* SP table resets inside cards */
.match-body .sp-card__table-wrap .sp-template { margin: 0; }
.match-body .sp-card__table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.match-body .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; }
.match-body .sp-card__table-wrap table th:first-child { text-align: left; }
.match-body .sp-card__table-wrap table td { padding: 0.65rem 1rem; border-bottom: 1px solid #f0f0f0; text-align: center; color: #333; vertical-align: middle; }
.match-body .sp-card__table-wrap table td:first-child { text-align: left; font-weight: 600; }
.match-body .sp-card__table-wrap table tbody tr:last-child td { border-bottom: none; }
.match-body .sp-card__table-wrap table tbody tr:hover { background: #fdf5f6; }

/* Performance table: team name header rows */
.match-body .match-performance-wrap .sp-template-event-performance h4 {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #888;
	padding: 0.75rem 1rem 0.4rem;
	margin: 0;
	border-top: 1px solid #f0f0f0;
}

.match-body .match-performance-wrap .sp-template-event-performance h4:first-child {
	border-top: none;
}

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

@media screen and ( max-width: 700px ) {
	.match-hero { padding: 2.5rem 1rem 2rem; }

	.match-hero__scoreboard {
		grid-template-columns: 1fr auto 1fr;
		gap: 0.75rem;
	}

	.match-team__logo-wrap {
		width: 64px;
		height: 64px;
	}

	.match-team__name {
		font-size: 0.8rem;
	}

	.match-score__num {
		font-size: clamp(2.25rem, 10vw, 3.5rem);
	}

	.match-details-strip__inner {
		padding: 0;
	}

	.match-detail {
		flex: 0 0 50%;
		border-bottom: 1px solid rgba(255,255,255,0.06);
		padding: 0.85rem 1rem;
	}

	.match-detail:nth-child(2n) { border-right: none; }
	.match-detail:nth-last-child(-n+2):first-child,
	.match-detail:last-child { border-bottom: none; }
}

@media screen and ( max-width: 480px ) {
	.match-hero__scoreboard {
		grid-template-columns: 1fr 80px 1fr;
	}

	.match-team__logo-wrap {
		width: 52px;
		height: 52px;
	}

	.match-score__num {
		font-size: 2.25rem;
	}

	.match-score__divider {
		font-size: 1.5rem;
	}

	.match-detail {
		flex: 0 0 100%;
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}

	.match-detail:last-child { border-bottom: none; }
}
