/* FIFA World Cup 2026 Fixtures
   Styles for the fixtures page template.
   Loaded only on the World Cup 2026 page template. */

.wc2026-page {
	margin: 0 auto;
	padding: 24px 0 60px;
}

.wc2026-page-header {
	text-align: center;
	margin-bottom: 28px;
}

.wc2026-title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0 0 8px;
}

.wc2026-intro {
	color: #4f2123;
	font-size: 1rem;
	margin: 0 auto;
	max-width: 640px;
}

.wc2026-empty {
	text-align: center;
	padding: 60px 20px;
	color: #4f2123;
	font-size: 1.05rem;
}

/* Fixtures grid */
.wc2026-fixtures {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
	align-items: start;
}

/* Day scroller wrapper */
.wc2026-scroller-wrap {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
}

.wc2026-scroller-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%) !important;
	width: 36px;
	height: 36px;
	border: none !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	color: #555 !important;
	background: #fff !important;
	transition: color 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	padding: 0;
	opacity: 0;
	font-family: inherit;
	line-height: 1;
	text-shadow: none !important;
	text-decoration: none !important;
	letter-spacing: normal;
	font-weight: 400;
}

.wc2026-scroller-arrow:hover,
.wc2026-scroller-arrow:focus,
.wc2026-scroller-arrow:active {
	background: #fff !important;
	border: none !important;
	border-radius: 50% !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
	outline-offset: 2px;
	transform: translateY(-50%) !important;
	text-decoration: none !important;
	color: #4f2123 !important;
}

.wc2026-scroller-arrow:focus-visible {
	outline: 2px solid #4f2123;
	outline-offset: 2px;
	opacity: 1;
}

.wc2026-scroller-arrow:active {
	color: #111 !important;
	opacity: 0.8;
}

.wc2026-scroller-arrow--left {
	left: -14px;
}

.wc2026-scroller-arrow--right {
	right: -14px;
}

.wc2026-scroller-arrow.is-disabled {
	opacity: 0 !important;
	pointer-events: none;
}

.wc2026-scroller-wrap:hover .wc2026-scroller-arrow,
.wc2026-scroller-arrow:focus-visible {
	opacity: 1;
}

/* Day scroller */
.wc2026-day-scroller {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 0;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.wc2026-day-scroller::-webkit-scrollbar {
	display: none;
}

.wc2026-day-btn {
	flex: 0 0 auto;
	scroll-snap-align: start;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 12px 18px;
	min-width: 96px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: #333;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wc2026-day-btn:hover {
	border-color: #4f2123;
	color: #4f2123;
	background: #fafafa;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.wc2026-day-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.wc2026-day-btn:focus-visible {
	outline: 2px solid #4f2123;
	outline-offset: 2px;
}

.wc2026-day-btn.is-active {
	background: #4f2123;
	border-color: #4f2123;
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.wc2026-day-btn.is-active:hover {
	background: #3a181a;
	border-color: #3a181a;
	color: #fff;
	transform: translateY(-2px);
}

.wc2026-day-btn.is-today {
	border-color: #4f2123;
	color: #4f2123;
}

.wc2026-day-btn.is-today:hover {
	background: #faf5f5;
	border-color: #4f2123;
	color: #4f2123;
}

.wc2026-day-btn.is-today.is-active {
	background: #4f2123;
	border-color: #4f2123;
	color: #fff;
}

.wc2026-day-btn.is-today.is-active:hover {
	background: #3a181a;
	border-color: #3a181a;
	color: #fff;
}

.wc2026-day-btn-label {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
}

.wc2026-day-btn-sub {
	font-size: 0.72rem;
	opacity: 0.75;
	line-height: 1.2;
}

.wc2026-day-btn-count {
	font-size: 0.7rem;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	padding: 2px 8px;
	margin-top: 4px;
	font-weight: 600;
	transition: background 0.18s ease;
}

.wc2026-day-btn:hover .wc2026-day-btn-count {
	background: rgba(0, 0, 0, 0.12);
}

.wc2026-day-btn.is-active .wc2026-day-btn-count,
.wc2026-day-btn.is-active:hover .wc2026-day-btn-count {
	background: rgba(255, 255, 255, 0.25);
}

/* Day group section */
.wc2026-day-group {
	margin-bottom: 32px;
}

.wc2026-day-group.is-hidden {
	display: none;
}

.wc2026-day-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	margin-bottom: 14px;
}

.wc2026-day-title {
	font-size: 1.25rem;
	margin: 0;
	color: #4f2123;
}

.wc2026-day-count {
	font-size: 0.8rem;
	color: #4f2123;
	font-weight: 600;
}

.wc2026-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.wc2026-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.wc2026-card.is-hidden {
	display: none;
}

.wc2026-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.wc2026-stage {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #4f2123;
}

.wc2026-status {
	font-size: 0.68rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.wc2026-status--live {
	background: #4f2123;
	color: #fff;
	animation: wc2026-pulse 1.6s infinite;
}

.wc2026-status--done {
	background: #f6f6f6;
	color: #4f2123;
}

.wc2026-status--time {
	background: #f6f6f6;
	color: #4f2123;
	font-variant-numeric: tabular-nums;
}

/* ─── Completed match visual indicator ─── */
.wc2026-card.is-completed {
	position: relative;
	overflow: hidden;
}

/* Diagonal "Completed" stamp in the top-right corner */
.wc2026-completed-stamp {
	position: absolute;
	top: 14px;
	right: -34px;
	transform: rotate(35deg);
	background: linear-gradient(90deg, #cda07f, #b88d6e);
	color: #fff;
	font-size: 0.6rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 40px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	z-index: 2;
	pointer-events: none;
}

.wc2026-completed-stamp-text {
	white-space: nowrap;
}

/* Winner / loser styling for completed matches with scores */
.wc2026-team.is-winner .wc2026-team-name {
	color: #1a7a3c;
}

.wc2026-team.is-winner .wc2026-team-score {
	color: #1a7a3c;
}

.wc2026-team.is-loser .wc2026-team-name,
.wc2026-team.is-loser .wc2026-team-score {
	opacity: 0.5;
}

.wc2026-team.is-loser .wc2026-team-name {
	text-decoration: line-through;
	text-decoration-color: #000;
	text-decoration-thickness: 2px;
}

/* Completed status badge enhancement */
.wc2026-card.is-completed .wc2026-status--done {
	background: #cda07f;
	color: #fff;
}

/* Live card subtle highlight */
.wc2026-card.is-live {
	border-color: #4f2123;
	box-shadow: 0 0 0 1px rgba(79, 33, 35, 0.15), 0 2px 8px rgba(79, 33, 35, 0.1);
}

@keyframes wc2026-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.wc2026-teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.wc2026-team {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}

.wc2026-team--home {
	align-items: flex-start;
	text-align: left;
}

.wc2026-team--away {
	align-items: flex-end;
	text-align: right;
}

.wc2026-team-row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.wc2026-team--home,
.wc2026-team--away {
	min-width: 0;
	max-width: 100%;
}

.wc2026-team--home .wc2026-team-row {
	flex-direction: row;
}

.wc2026-team--away .wc2026-team-row {
	flex-direction: row-reverse;
}

.wc2026-team-name {
	font-size: 1.05rem;
	font-weight: 600;
	color: #111;
	line-height: 1.2;
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
	min-width: 0;
}

.wc2026-team--away .wc2026-team-name {
	text-align: right;
}

.wc2026-flag {
	display: block;
	flex-shrink: 0;
	width: 40px;
	height: 23px;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	object-fit: cover;
}

.wc2026-team-score {
	font-size: 1.4rem;
	font-weight: 800;
	color: #4f2123;
	line-height: 1;
}

.wc2026-vs {
	font-size: 1.1rem;
	color: #cda07f;
	font-weight: 600;
}

.wc2026-venue {
	font-size: 0.82rem;
	color: #4f2123;
	margin: 0 0 12px;
	text-align: center;
}

/* Venue / watch-at-Arkaba details */
.wc2026-venue-details {
	background: #f6f6f6;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 12px;
}

.wc2026-venue-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 0.85rem;
}

.wc2026-venue-row dt {
	font-weight: 600;
	color: #4f2123;
	margin: 0;
	word-break: normal;
}

.wc2026-venue-row dd {
	margin: 0;
	color: #222;
	text-align: right;
}

.wc2026-notes {
	font-size: 0.85rem;
	color: #4f2123;
	font-style: italic;
	margin: 0;
	padding-top: 8px;
	border-top: 1px dashed #e0e0e0;
}

/* Responsive */
@media (max-width: 600px) {
	.wc2026-fixtures {
		grid-template-columns: 1fr;
	}

	.wc2026-team--home,
	.wc2026-team--away {
		align-items: center;
		text-align: center;
	}

	.wc2026-team--home .wc2026-team-row,
	.wc2026-team--away .wc2026-team-row {
		flex-direction: row;
	}
}