/* ============================================
   Free2RP Theme – generic.css (clean header)
   ============================================ */

:root {
	/* Standard shared.css variable mappings */
	--color-bg: #121212;
	--color-brighter-bg: #1a1a1a;
	--color-text: #e5e5e5;
	--color-text-darker: #f5f5f5;
	--color-text-secondary: #a1a1a1;
	--color-text-dark: #111;

	--color-primary: #fcc419;
	--color-primary-hover: #ffdd55;
	--color-primary-text: #111;
	--color-primary-text-hover: #111;

	--color-secondary: #333;

	/* Theme-specific aliases */
	--accent: var(--color-primary);
	--accent-hover: var(--color-primary-hover);
	--surface-1: var(--color-brighter-bg);
	--surface-2: #181818;
	--surface-3: #151515;

	--radius: 14px;
}

/* ============================================================
   GLOBAL
   ============================================================ */

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: "Rubik", sans-serif;
}

body::before {
	display: none !important;
}

/* ============================================================
   HEADER – full-width lighter bar
   Markup: header.twig you posted
   ============================================================ */

.site-header {
	width: 100% !important;
	max-width: 100% !important;
	position: sticky;
	top: 0;
	z-index: 999;
	background: #191919;
	border-bottom: 1px solid rgba(252, 196, 25, 0.2);
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.site-header-inner {
	max-width: 1180px;
	height: 60px;
	margin: 0 auto;
	padding: 0 20px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Kill Tebex’s old absolute positioning in header */
.site-header-inner .actions,
.site-header-inner .log-in,
.site-header-inner .user-actions,
.site-header-inner .site-title,
.site-header-inner .info {
	position: static !important;
	inset: auto !important;
	margin: 0 !important;
}

.header-left,
.header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ---------------- LOGO ---------------- */

.header-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.header-logo img {
	display: block;
	height: 26px;
	width: auto;
}

/* ============================================================
   HEADER BUTTONS (HOME / USER / BASKET)
   ============================================================ */

/* Home pill (links back to main website) */
.header-home-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: #111;
	color: #f5f5f5;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.15s ease;
}

.header-home-link:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Basket pill – yellow, matches hero buttons */
.header-basket {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #111;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.15s ease;
}

.header-basket:hover {
	background: var(--accent-hover);
	border-color: var(--accent-hover);
}

.user-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	white-space: nowrap;
	cursor: pointer;
	overflow: hidden;

	/* Hard override Tebex btn-secondary colors */
	--btn-color-bg: #111;
	--btn-color-bg-hover: #111;
	--btn-color-text: #f5f5f5;
	--btn-color-text-hover: #f5f5f5;

	background-color: #111 !important;
	color: #f5f5f5 !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* kill Tebex default glyph that created weird spacing */
.user-pill::before {
	content: none !important;
}

/* hover: keep dark background, just accent the border */
.user-pill:hover {
	background-color: #111 !important;
	color: #f5f5f5 !important;
	border-color: var(--accent) !important;
}

/* labels inside (already in your header.twig) */
.user-pill .label {
	white-space: nowrap;
}

/* default (IGN) label */
.user-pill .label-default {
	opacity: 1;
	transition: opacity 0.18s ease;
}

/* hover (Log out) label sits on top but doesn’t change width */
.user-pill .label-hover {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	color: var(--accent);
	transition: opacity 0.18s ease;
}

/* swap on hover */
.user-pill:hover .label-default {
	opacity: 0;
}

.user-pill:hover .label-hover {
	opacity: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.f2rp-hero {
	width: 100%;
	max-width: 1180px;
	margin: 40px auto 20px;
}

.f2rp-hero-inner {
	background: var(--surface-2);
	padding: 32px 36px;
	border-radius: var(--radius);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.site-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-secondary);
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: 10px;
}

.f2rp-hero-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 10px;
	line-height: 1.2;
	position: relative;
}

.f2rp-hero-title span {
	position: relative;
	display: inline-block;
}

.f2rp-hero-title span::after {
	content: "";
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(to right, var(--accent), transparent);
	border-radius: 999px;
}

.f2rp-hero-subtitle {
	margin-top: 18px;
	max-width: 620px;
	color: var(--color-text-secondary);
	font-size: 13px;
}

/* ============================================================
   GLOBAL BUTTON COLORS (matches header style)
   ============================================================ */

.btn-primary {
	background: var(--accent);
	color: #111;
	border-radius: 999px;

	font-weight: 600;
}

.btn-primary:hover {
	background: var(--accent-hover);
}

.btn-secondary {
	background: var(--surface-1);
	color: var(--color-text-secondary);
	border: 1px solid #333;
	border-radius: 999px;
	padding: 0.55rem 1.4rem;
}

.btn-secondary:hover {
	color: var(--color-text);
	border-color: var(--accent);
}

/* ============================================================
   CATEGORIES
   ============================================================ */

.site-home-categories {
	width: 100%;
	max-width: 1180px;
	margin: 10px auto 20px;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.site-home-categories .category {
	background: var(--surface-2);
	padding: 16px;
	border-radius: var(--radius);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
	border: 1px solid #222;
	transition: 0.15s ease;
}

.site-home-categories .category:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.site-content {
	max-width: 1180px;
	margin: 20px auto 50px;
	background: var(--surface-2);
	border-radius: var(--radius);
	padding: 20px 25px;
	display: flex;
	gap: 20px;

	border: 1px solid #222;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.site-content-widgets {
	display: grid !important;
	grid-template-columns: 280px 1fr !important;
	gap: 24px;
}

.widgets,
.widget {
	background: var(--surface-1) !important;
	border: 1px solid #333 !important;
	border-radius: var(--radius) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
	padding: 20px !important;
}

.navigation-list a {
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--color-text-secondary);
}

.navigation-list a:hover {
	background: #222;
	color: var(--accent);
}

.navigation-list .active a {
	background: var(--accent);
	color: #111;
}

/* TEXT BLOCK */
.store-text {
	background: transparent !important;
	padding: 20px 10px !important;
	font-size: 0.92rem;
	line-height: 1.55;
}

/* Note: Removed aggressive wildcard background-image rule that could break icons/masks */

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
	background: var(--color-bg) !important;
	border-top: 1px solid #222;
}

.site-footer-credit {
	background: var(--color-brighter-bg);
}

/* Duplicate declarations removed - see HEADER section above */

.f2rp-hero-actions .btn-primary,
.f2rp-hero-actions .btn-secondary {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	line-height: 1 !important;
	font-size: 14px;
	font-weight: 600;
}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 960px) {
	.site-header-inner {
		height: auto;
		min-height: 60px;
		padding: 10px 16px;
		flex-wrap: wrap;
	}

	.site-header-inner .site-title {
		order: 0;
		flex: 1;
		text-align: center;
	}

	.site-header-inner .actions {
		order: -1;
	}

	.site-header-inner .user-actions,
	.site-header-inner .log-in {
		order: 1;
	}

	.site-content-widgets {
		grid-template-columns: 1fr !important;
	}

	.f2rp-hero {
		margin: 20px auto 10px;
	}

	.f2rp-hero-inner {
		padding: 20px;
	}

	.f2rp-hero-title {
		font-size: 24px;
	}
}

/* Hide hamburger on desktop */
@media (min-width: 961px) {
	.site-header-inner .actions {
		display: none;
	}
}
