/*
SportsProGear — Design tokens (Palette B: Court Green)
Load this AFTER the GeneratePress parent stylesheet.
These are plain CSS custom properties — no build step required.
*/

:root {
	/* Base neutrals — identical across every sport */
	--spg-bg: #16181c;
	--spg-surface: #1e2126;
	--spg-surface-alt: #1a1c21;
	--spg-border: #2a2d33;

	--spg-text: #f2f2f2;
	--spg-text-secondary: #94a3b8;
	--spg-text-muted: #8b909c;
	--spg-surface-elevated: #262b33;
    --spg-surface-elevated-alt: #2f3540;
    --spg-border-elevated: #3a4049;

	/* Fixed CTA — always the buy/affiliate action, never tied to sport */
	--spg-cta: #eef0f3 ;
	--spg-cta-hover: #ffffff;
	--spg-cta-text: #1a1d22;
	--spg-cta-divider: #b9bec6;

    --spg-surface-elevated: #262b33;
    --spg-surface-elevated-alt: #2f3540;
    --spg-border-elevated: #3a4049;
	/* Sport accent — overridden per-page in header.php from the
	   Sports taxonomy term's ACF "sport_accent_color" field.
	   Padel green is the fallback until that field is read. */
	--spg-sport-accent: #7fd858;
	--spg-sport-accent-bg: rgba(127, 216, 88, 0.15);

	--spg-radius: 8px;
	--spg-radius-lg: 12px;
}

/* ============================
   Global resets tied to the palette
   ============================ */

body {
	background: var(--spg-bg);
	color: var(--spg-text);
}

a {
	color: var(--spg-text);
	text-decoration: none;
}

::selection {
	background: var(--spg-sport-accent);
	color: var(--spg-bg);
}

/* ============================
   Header
   ============================ */

.spg-header {
	background: var(--spg-bg);
	border-bottom: 0.5px solid var(--spg-border);
	padding: 10px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.spg-header__logo-img {
	height: 64px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.spg-header__search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--spg-surface);
	border: 0.5px solid var(--spg-border);
	border-radius: var(--spg-radius);
	padding: 11px 16px;
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.spg-header__search:focus-within {
	border-color: var(--spg-text-secondary);
	background: var(--spg-surface-alt);
}

.spg-header__search input[type="search"] {
	background: transparent;
	border: none;
	outline: none;
	color: var(--spg-text);
	font-size: 15px;
	width: 100%;
}

.spg-header__search input[type="search"]::placeholder {
	color: var(--spg-text-secondary);
}

.spg-header__search-icon {
	color: var(--spg-text-secondary);
	font-size: 14px;
	flex-shrink: 0;
}

/* ============================
   Sport accent utility — use sparingly:
   badges, hub hero underline, sport icons only.
   ============================ */

.spg-badge-sport {
	display: inline-block;
	background: var(--spg-sport-accent-bg);
	color: var(--spg-sport-accent);
	font-size: 12px;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 6px;
}

.spg-cta {
	display: inline-block;
	background: var(--spg-cta);
	color: var(--spg-cta-text);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: var(--spg-radius);
	transition: background 0.15s ease;
}

.spg-cta:hover {
	background: var(--spg-cta-hover);
	color: var(--spg-cta-text);
}

/* ============================
   Footer
   ============================ */

.spg-footer {
	background: var(--spg-bg);
	border-top: 0.5px solid var(--spg-border);
	padding: 32px 24px 20px;
}

.spg-footer__columns {
	display: flex;
	gap: 48px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.spg-footer__brand p {
	color: var(--spg-text-muted);
	font-size: 12px;
	line-height: 1.6;
	max-width: 220px;
}
.spg-footer__logo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.spg-footer__logo-icon {
	height: 28px;
	width: auto;
	display: block;
}

.spg-footer__logo-text {
	color: var(--spg-text);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: -0.01em;
}

.spg-footer__heading {
	color: #d8dadd;
	font-weight: 600;
	font-size: 12px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.spg-footer__columns a {
	display: block;
	color: var(--spg-text-muted);
	font-size: 13px;
	margin-bottom: 8px;
}

.spg-footer__columns a:hover {
	color: var(--spg-text);
}

.spg-footer__columns a.spg-footer__accent-link {
	color: var(--spg-sport-accent);
}

.spg-footer__bottom {
	border-top: 0.5px solid var(--spg-border);
	padding-top: 14px;
}

.spg-footer__bottom p {
	color: var(--spg-text-muted);
	font-size: 11px;
	margin: 0;
}
.spg-footer__brand {
	flex: 1 1 260px;
}

@media (max-width: 600px) {
	.spg-header__search {
		min-width: 0;
		flex: 1;
		margin-left: 16px;
	}
	.spg-footer__columns {
		gap: 28px;
	}
}
