/*
Theme Name: Brussels Games
Description: Child theme of Chaplin for the Brussels Games website (organised by Brussels Gay Sports). For now it provides the holding page (front-page.php) and the 404 page.
Author: BGS
Template: chaplin
Version: 0.2.0
Requires PHP: 8.3
Text Domain: brusselsgames
*/

/* ---------- Design tokens (Brussels Games colours) ---------- */

:root {
	--bxg-blue: #1b6fa4;
	--bxg-purple: #9347bc;
	--bxg-pink: #e07ec2;
	--bxg-navy: #072c3f;
	--bxg-light: #f5f6f8;
	--bxg-text: #1d2733;
	--bxg-muted: #5a6573;
}

/* ---------- Holding page (front-page.php) ---------- */

body.bxg-holding {
	margin: 0;
	background: var(--bxg-light);
	color: var(--bxg-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

.bxg-holding a {
	color: var(--bxg-blue);
}

.bxg-holding a:hover,
.bxg-holding a:focus {
	color: var(--bxg-purple);
}

.bxg-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Top bar with the row of sport icons and the language switcher */
.bxg-topbar {
	background: var(--bxg-blue);
	padding: 14px 0;
}

.bxg-topbar .bxg-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bxg-topbar img {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 420px;
	height: auto;
	opacity: 0.9;
}

.bxg-switcher {
	display: flex;
	flex: 0 0 auto;
	gap: 4px;
}

.bxg-switcher a {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	padding: 3px 7px;
	border-radius: 3px;
}

.bxg-holding .bxg-switcher a:hover,
.bxg-holding .bxg-switcher a:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
}

.bxg-holding .bxg-switcher a[aria-current],
.bxg-holding .bxg-switcher a[aria-current]:hover,
.bxg-holding .bxg-switcher a[aria-current]:focus {
	background: #fff;
	color: var(--bxg-blue);
}

/* Hero: purple/pink gradient band with the logo */
.bxg-hero {
	background: linear-gradient(100deg, var(--bxg-purple) 0%, var(--bxg-pink) 55%, var(--bxg-purple) 100%);
	color: #fff;
	text-align: center;
	padding: 64px 0 56px;
}

.bxg-hero .bxg-logo {
	display: block;
	width: 280px;
	max-width: 70%;
	height: auto;
	margin: 0 auto 28px;
}

.bxg-hero h1 {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.bxg-hero .bxg-tagline {
	margin: 0 auto;
	max-width: 640px;
	font-size: 1.1rem;
}

/* 404 page (404.php): the hero fills the space between top bar and footer */
body.bxg-holding.error404 {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.bxg-notfound {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
}

.bxg-notfound .bxg-code {
	margin: 0;
	font-size: clamp(4rem, 14vw, 7rem);
	font-weight: 800;
	line-height: 1;
}

.bxg-holding .bxg-button {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 24px;
	border-radius: 4px;
	background: #fff;
	color: var(--bxg-navy);
	font-weight: 700;
	text-decoration: none;
}

.bxg-holding .bxg-button:hover,
.bxg-holding .bxg-button:focus {
	background: var(--bxg-navy);
	color: #fff;
}

/* Main content: the editable page content (placeholders) */
.bxg-main {
	padding: 48px 0 56px;
}

.bxg-main .entry-content {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(7, 44, 63, 0.08);
	padding: 32px clamp(20px, 4vw, 44px);
}

.bxg-main .entry-content > *:first-child {
	margin-top: 0;
}

.bxg-main h2,
.bxg-main h3 {
	color: var(--bxg-navy);
	line-height: 1.25;
}

.bxg-main h2 {
	margin: 1.8em 0 0.6em;
	padding-bottom: 6px;
	border-bottom: 3px solid var(--bxg-pink);
	display: inline-block;
}

/* Placeholder marker: text in [square brackets] wrapped in <mark class="bxg-todo"> */
.bxg-main mark.bxg-todo {
	background: #fdf0f8;
	color: var(--bxg-purple);
	border: 1px dashed var(--bxg-pink);
	border-radius: 3px;
	padding: 0 4px;
}

.bxg-main .wp-block-columns {
	gap: 20px;
}

.bxg-main .bxg-card {
	box-sizing: border-box;
	height: 100%;
	background: var(--bxg-light);
	border-top: 4px solid var(--bxg-blue);
	border-radius: 4px;
	padding: 16px 18px;
}

.bxg-main .bxg-card h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
}

.bxg-main .bxg-card p {
	margin: 0;
	color: var(--bxg-muted);
	font-size: 0.95rem;
}

/* Footer */
.bxg-footer {
	background: var(--bxg-navy);
	color: #dfe6ec;
	padding: 32px 0;
	font-size: 0.92rem;
}

.bxg-footer a {
	color: #fff;
}

.bxg-footer .bxg-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
}

.bxg-footer p {
	margin: 0;
}

@media (max-width: 600px) {
	.bxg-hero {
		padding: 44px 0 40px;
	}

	.bxg-footer .bxg-wrap {
		flex-direction: column;
	}
}
