/* ==========================================================================
   World Cup Betting — Main Stylesheet
   Reset, CSS variables, base styles
   ========================================================================== */

/* ---- CSS VARIABLES — LIGHT MODE WORLD CUP THEME ---- */
:root {
	/* Brand palette */
	--wcb-navy: #0A2540;
	--wcb-navy-dark: #061a30;
	--wcb-navy-soft: #1e3a5f;
	--wcb-emerald: #10B981;
	--wcb-emerald-dark: #059669;
	--wcb-emerald-soft: #D1FAE5;
	--wcb-gold: #FBBF24;
	--wcb-gold-dark: #F59E0B;
	--wcb-gold-soft: #FEF3C7;
	--wcb-red: #EF4444;
	--wcb-red-soft: #FEE2E2;
	--wcb-blue: #3B82F6;
	--wcb-purple: #8B5CF6;

	/* Neutrals — warm off-white light mode */
	--wcb-bg: #FAFBFC;
	--wcb-bg-soft: #F3F5F8;
	--wcb-surface: #FFFFFF;
	--wcb-surface-hover: #F8FAFC;
	--wcb-border: #E5E9EF;
	--wcb-border-soft: #EEF1F5;
	--wcb-border-strong: #CBD5E1;

	/* Text */
	--wcb-text: #0A2540;
	--wcb-text-soft: #475569;
	--wcb-text-muted: #94A3B8;
	--wcb-text-inverse: #FFFFFF;

	/* No gradients — flat design system */

	/* Shadow system — flat, subtle only */
	--wcb-shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04);
	--wcb-shadow: 0 1px 3px rgba(10, 37, 64, 0.06);
	--wcb-shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
	--wcb-shadow-lg: 0 8px 20px rgba(10, 37, 64, 0.08);
	--wcb-shadow-xl: 0 12px 32px rgba(10, 37, 64, 0.10);

	/* Typography */
	--wcb-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
	--wcb-font-display: 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
	--wcb-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

	--wcb-fs-xs: 0.75rem;
	--wcb-fs-sm: 0.875rem;
	--wcb-fs-base: 1rem;
	--wcb-fs-lg: 1.125rem;
	--wcb-fs-xl: 1.25rem;
	--wcb-fs-2xl: 1.5rem;
	--wcb-fs-3xl: 1.875rem;
	--wcb-fs-4xl: 2.25rem;
	--wcb-fs-5xl: 3rem;
	--wcb-fs-6xl: 3.75rem;
	--wcb-fs-7xl: 4.5rem;

	/* Spacing */
	--wcb-space-1: 0.25rem;
	--wcb-space-2: 0.5rem;
	--wcb-space-3: 0.75rem;
	--wcb-space-4: 1rem;
	--wcb-space-5: 1.25rem;
	--wcb-space-6: 1.5rem;
	--wcb-space-8: 2rem;
	--wcb-space-10: 2.5rem;
	--wcb-space-12: 3rem;
	--wcb-space-16: 4rem;
	--wcb-space-20: 5rem;
	--wcb-space-24: 6rem;

	/* Radius */
	--wcb-radius-sm: 6px;
	--wcb-radius: 10px;
	--wcb-radius-md: 14px;
	--wcb-radius-lg: 20px;
	--wcb-radius-xl: 28px;
	--wcb-radius-full: 9999px;

	/* Containers */
	--wcb-max-width: 1320px;
	--wcb-max-width-narrow: 820px;

	/* Transitions */
	--wcb-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
	--wcb-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
	--wcb-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--wcb-font);
	font-size: var(--wcb-fs-base);
	line-height: 1.6;
	color: var(--wcb-text);
	background: var(--wcb-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	font-feature-settings: 'cv11','ss01','ss03';
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--wcb-space-4);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--wcb-text);
}
h1 { font-size: var(--wcb-fs-5xl); letter-spacing: -0.03em; }
h2 { font-size: var(--wcb-fs-4xl); letter-spacing: -0.025em; }
h3 { font-size: var(--wcb-fs-2xl); }
h4 { font-size: var(--wcb-fs-xl); }
h5 { font-size: var(--wcb-fs-lg); }

p { margin: 0 0 var(--wcb-space-4); color: var(--wcb-text-soft); }
a { color: var(--wcb-emerald-dark); text-decoration: none; transition: color var(--wcb-transition); }
a:hover { color: var(--wcb-emerald); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; margin: 0 0 var(--wcb-space-4); }

hr { border: 0; height: 1px; background: var(--wcb-border); margin: var(--wcb-space-10) 0; }

::selection { background: var(--wcb-emerald); color: white; }

/* Skip link */
.wcb-skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.wcb-skip-link:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	background: var(--wcb-navy);
	color: white;
	z-index: 99999;
	border-radius: var(--wcb-radius);
}

/* ---- CONTAINER ---- */
.wcb-container {
	width: 100%;
	max-width: var(--wcb-max-width);
	margin: 0 auto;
	padding: 0 var(--wcb-space-6);
}
.wcb-container-narrow { max-width: var(--wcb-max-width-narrow); }

.wcb-section { padding: var(--wcb-space-20) 0; }
.wcb-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: var(--wcb-space-12);
	gap: var(--wcb-space-6);
}
.wcb-section-header-center {
	text-align: center;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	max-width: 680px;
	margin: 0 auto var(--wcb-space-12);
}
.wcb-section-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem;
	background: var(--wcb-emerald-soft);
	color: var(--wcb-emerald-dark);
	border-radius: var(--wcb-radius-full);
	font-size: var(--wcb-fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--wcb-space-4);
	border: 1px solid rgba(16, 185, 129, 0.2);
}
.wcb-section-title {
	font-size: var(--wcb-fs-4xl);
	margin: 0 0 var(--wcb-space-3);
	font-weight: 800;
	letter-spacing: -0.025em;
}
.wcb-section-sub {
	color: var(--wcb-text-soft);
	font-size: var(--wcb-fs-lg);
	margin: 0;
	max-width: 580px;
}

/* ---- TOPBAR ---- */
.wcb-topbar {
	background: var(--wcb-navy);
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--wcb-fs-xs);
	font-weight: 500;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wcb-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.wcb-topbar-left { display: flex; align-items: center; gap: 0.5rem; }
.wcb-topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.wcb-topbar-separator { opacity: 0.5; }
.wcb-topbar-flag { font-size: 0.9rem; letter-spacing: 0.15em; }
.wcb-live-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wcb-emerald);
	animation: pulseOpacity 1.8s ease-in-out infinite;
}
@keyframes pulseOpacity {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

/* ---- HEADER ---- */
.wcb-header {
	background: var(--wcb-surface);
	border-bottom: 1px solid var(--wcb-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 0;
}
.wcb-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wcb-space-6);
}
.wcb-brand-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--wcb-text);
}
.wcb-brand-mark {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wcb-brand-name {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.wcb-brand-primary {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.wcb-brand-secondary {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--wcb-text-soft);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.wcb-brand-year {
	color: var(--wcb-emerald);
}
.wcb-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.wcb-nav-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wcb-nav-menu li { list-style: none; }
.wcb-nav-menu a {
	display: inline-block;
	padding: 0.5rem 1rem;
	color: var(--wcb-text);
	font-weight: 600;
	font-size: var(--wcb-fs-sm);
	border-radius: var(--wcb-radius);
	transition: background var(--wcb-transition), color var(--wcb-transition);
}
.wcb-nav-menu a:hover {
	background: var(--wcb-bg-soft);
	color: var(--wcb-emerald-dark);
}
.wcb-nav-menu .current-menu-item > a {
	background: var(--wcb-emerald-soft);
	color: var(--wcb-emerald-dark);
}
.wcb-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: var(--wcb-bg-soft);
	border: 1px solid var(--wcb-border);
	border-radius: var(--wcb-radius);
	cursor: pointer;
	padding: 0 10px;
}
.wcb-mobile-toggle span {
	display: block;
	height: 2px;
	background: var(--wcb-navy);
	border-radius: 2px;
	transition: all var(--wcb-transition);
}
.wcb-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wcb-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wcb-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wcb-mobile-menu {
	position: fixed;
	top: 96px;
	left: 0;
	right: 0;
	background: white;
	border-top: 1px solid var(--wcb-border);
	padding: var(--wcb-space-6);
	box-shadow: var(--wcb-shadow-lg);
	z-index: 999;
	max-height: calc(100vh - 96px);
	overflow-y: auto;
}
.wcb-mobile-menu-list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}
.wcb-mobile-menu-list li {
	border-bottom: 1px solid var(--wcb-border-soft);
}
.wcb-mobile-menu-list a {
	display: block;
	padding: 1rem 0;
	font-size: var(--wcb-fs-lg);
	font-weight: 600;
	color: var(--wcb-text);
}
.wcb-mobile-cta {
	margin-top: 1rem;
	text-align: center;
	width: 100%;
	justify-content: center;
}
