/* ==========================================================================
   SummonGamers — Nav bar
   Two rows: row 1 is socials (left) / logo (center) / mobile toggle (right);
   row 2 is the centered genre sub-nav. Full black background, thin bottom
   border on the whole bar.
   ========================================================================== */

.sg-navbar {
	background-color: #050805;
	border-bottom: 1px solid var(--sg-color-border, #2A332A);
	position: relative;
	z-index: 100;
}

.sg-navbar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 24px;
	gap: 16px;
}

/* Socials — left edge */
.sg-navbar__socials {
	display: flex;
	align-items: center;
	gap: 16px;
	justify-self: start;
}

.sg-navbar__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--sg-color-text-meta, #7C8A7C);
	transition: color 0.2s ease;
}

.sg-navbar__social-link:hover,
.sg-navbar__social-link:focus-visible {
	color: var(--sg-color-accent-start, #39FF14);
}

/* Logo — centered */
.sg-navbar__logo {
	justify-self: center;
	text-align: center;
}

.sg-navbar__logo a {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 0.5px;
	color: var(--sg-color-text-title, #FFFFFF);
	text-decoration: none;
	white-space: nowrap;
}

.sg-navbar__logo img {
	max-height: 36px;
	width: auto;
	display: block;
}

/* Mobile toggle (hamburger) — sits in row 1's right-hand column */
.sg-navbar__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	cursor: pointer;
	justify-self: end;
	padding: 0;
}

.sg-navbar__toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--sg-color-text-title, #FFFFFF);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.sg-navbar__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.sg-navbar__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.sg-navbar__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Row 2 — genre sub-nav: thin bar, centered links, active state in accent
   green. Desktop only; the same links live in the mobile dropdown below.
   ========================================================================== */

.sg-navbar__subnav {
	border-top: 1px solid var(--sg-color-border, #2A332A);
}

.sg-navbar__subnav-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	list-style: none;
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px 24px;
}

.sg-navbar__subnav-list a {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--sg-color-text-body, #A9B8A9);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.sg-navbar__subnav-list a:hover,
.sg-navbar__subnav-list a:focus-visible {
	color: var(--sg-color-text-title, #FFFFFF);
}

.sg-navbar__subnav-list a.is-active {
	color: var(--sg-color-accent-start, #39FF14);
}

/* Mobile dropdown panel */
.sg-navbar__mobile {
	border-top: 1px solid var(--sg-color-border, #2A332A);
	padding: 16px 24px 24px;
}

.sg-navbar__mobile[hidden] {
	display: none;
}

.sg-navbar__mobile-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sg-navbar__mobile-list a {
	display: block;
	padding: 10px 0;
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 600;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--sg-color-text-body, #A9B8A9);
	text-decoration: none;
	border-bottom: 1px solid var(--sg-color-border, #2A332A);
}

.sg-navbar__mobile-list a:hover,
.sg-navbar__mobile-list a:focus-visible {
	color: var(--sg-color-accent-start, #39FF14);
}

.sg-navbar__mobile-list a.is-active {
	color: var(--sg-color-accent-start, #39FF14);
}

.sg-navbar__mobile-socials {
	display: flex;
	gap: 20px;
}

.sg-navbar__mobile-socials a {
	font-family: var(--sg-font-body, 'Manrope', sans-serif);
	font-size: 13px;
	color: var(--sg-color-text-meta, #7C8A7C);
	text-decoration: none;
}

@media (max-width: 860px) {
	.sg-navbar__socials,
	.sg-navbar__subnav {
		display: none;
	}

	.sg-navbar__inner {
		grid-template-columns: 1fr auto;
	}

	.sg-navbar__logo {
		justify-self: start;
	}

	.sg-navbar__toggle {
		display: flex;
	}
}
