/* ==========================================================================
   L2 LULU — design system (Godlike child theme customization layer)
   ========================================================================== */

:root {
	--lulu-bg: #0a0908;
	--lulu-bg-secondary: #14110f;
	--lulu-bg-elevated: #1c1815;
	--lulu-gold: #c9a24b;
	--lulu-gold-bright: #e8c876;
	--lulu-bronze: #7a5c2e;
	--lulu-red: #7a1f1f;
	--lulu-red-bright: #a83232;
	--lulu-border: rgba(201, 162, 75, 0.25);
	--lulu-text: #e9e2d5;
	--lulu-muted: #a89c8a;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Global base ---------- */
body {
	background-color: var(--lulu-bg);
	color: var(--lulu-text);
	font-family: 'Inter', 'Roboto Condensed', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.l2-hero-title, .l2-section-heading h2, .l2-server-card-name {
	color: var(--lulu-text);
	font-family: 'Cinzel', 'Marcellus SC', serif;
}

a {
	transition: color 0.25s ease;
}

/* subtle gold divider used between major sections */
.l2-divider {
	width: 120px;
	height: 1px;
	margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--lulu-gold), transparent);
	opacity: 0.6;
}

/* scroll-reveal (progressive enhancement, JS adds .l2-reveal-in) */
.l2-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.l2-reveal-in {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- Header / navigation ---------- */
.nk-header {
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.nk-navbar-fixed.nk-header,
.nk-navbar-fixed .nk-header,
header.nk-header.nk-navbar-fixed {
	background: rgba(10, 9, 8, 0.85) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--lulu-border);
}

.nk-nav > li > a {
	color: var(--lulu-text) !important;
	letter-spacing: 0.5px;
	font-weight: 600;
	transition: color 0.25s ease;
}

.nk-nav > li > a:hover,
.nk-nav > li.current-menu-item > a,
.nk-nav > li.current-menu-ancestor > a {
	color: var(--lulu-gold-bright) !important;
}

.nk-nav > li.menu-item-server-active > a {
	color: var(--lulu-gold) !important;
}

.l2-active-server {
	color: var(--lulu-gold);
	font-size: 0.72em;
	opacity: 0.9;
	margin-left: 4px;
	text-transform: uppercase;
}

.nk-nav .dropdown {
	background: linear-gradient(180deg, #0d0d0d 0%, #1a1613 100%) !important;
	border: 1px solid var(--lulu-bronze) !important;
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(0,0,0,0.65);
	min-width: 220px;
	overflow: hidden;
}

.nk-nav .dropdown li a {
	color: #e6d9b8 !important;
	background: transparent !important;
	border-bottom: 1px solid rgba(201, 162, 75, 0.15);
	padding: 12px 18px !important;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 13px;
	transition: all 0.2s ease;
}

.nk-nav .dropdown li:last-child a { border-bottom: none; }

.nk-nav .dropdown li a:hover,
.nk-nav .dropdown li a:focus {
	background: linear-gradient(90deg, rgba(122,31,31,0.4), rgba(201,162,75,0.18)) !important;
	color: var(--lulu-gold-bright) !important;
	padding-left: 24px !important;
}

/* ---------- Buttons ---------- */
.l2-btn {
	display: inline-block;
	padding: 13px 30px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 3px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
	border: 1px solid transparent;
}
.l2-btn-sm { padding: 9px 20px; font-size: 11px; }

.l2-btn-primary {
	background: linear-gradient(135deg, var(--lulu-gold) 0%, var(--lulu-bronze) 100%);
	color: #1a1410 !important;
	box-shadow: 0 4px 18px rgba(201, 162, 75, 0.25);
}
.l2-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 26px rgba(201, 162, 75, 0.4);
	color: #100c08 !important;
}

.l2-btn-ghost {
	background: rgba(255,255,255,0.03);
	color: var(--lulu-gold-bright) !important;
	border-color: var(--lulu-border);
}
.l2-btn-ghost:hover {
	background: rgba(201, 162, 75, 0.12);
	border-color: var(--lulu-gold);
	box-shadow: 0 0 0 3px rgba(201,162,75,0.12), 0 8px 20px rgba(0,0,0,0.3);
	transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.l2-hero {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	min-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center 30%;
	background-repeat: no-repeat;
	overflow: hidden;
	padding: 60px 20px;
}

.l2-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, rgba(10,9,8,0.35) 0%, rgba(10,9,8,0.85) 75%),
		linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.35) 40%, rgba(10,9,8,0.95) 100%);
	pointer-events: none;
}

.l2-hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.l2-hero-kicker {
	display: inline-block;
	color: var(--lulu-gold);
	letter-spacing: 4px;
	text-transform: uppercase;
	font-size: 13px;
	margin-bottom: 18px;
	opacity: 0;
	animation: l2FadeUp 1s ease 0.1s forwards;
}

.l2-hero-title {
	font-family: 'Cinzel', serif;
	font-size: clamp(3.2rem, 9vw, 7rem);
	font-weight: 900;
	letter-spacing: 8px;
	margin: 0 0 20px;
	background: linear-gradient(180deg, #fff6df 0%, var(--lulu-gold-bright) 45%, var(--lulu-bronze) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 40px rgba(201,162,75,0.3));
	opacity: 0;
	animation: l2FadeUp 1s ease 0.25s forwards;
}

.l2-hero-sub {
	color: var(--lulu-muted);
	font-size: 17px;
	max-width: 560px;
	margin: 0 auto 34px;
	line-height: 1.6;
	opacity: 0;
	animation: l2FadeUp 1s ease 0.4s forwards;
}

.l2-hero-cta {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	opacity: 0;
	animation: l2FadeUp 1s ease 0.55s forwards;
}

@keyframes l2FadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section headings ---------- */
.l2-section-heading {
	text-align: center;
	margin-bottom: 52px;
}
.l2-section-kicker {
	display: block;
	color: var(--lulu-gold);
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 12px;
	margin-bottom: 14px;
}
.l2-section-heading h2 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	margin: 0 0 18px;
	letter-spacing: 1.5px;
}
.l2-section-sub {
	max-width: 560px;
	margin: 18px auto 0;
	color: var(--lulu-muted);
	font-size: 15px;
	line-height: 1.7;
}
.l2-section-heading h2::after {
	content: "";
	display: block;
	width: 90px;
	height: 2px;
	margin: 18px auto 0;
	background: linear-gradient(90deg, transparent, var(--lulu-gold), transparent);
}

/* ---------- Server cards ---------- */
.l2-server-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	max-width: 1100px;
	margin: 0 auto;
}

.l2-server-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	border: 1px solid var(--lulu-border);
	box-shadow: 0 10px 28px rgba(0,0,0,0.35);
	transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}
.l2-server-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: inherit;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform 0.6s ease;
	z-index: 0;
}
.l2-server-card:hover::before {
	transform: scale(1.08);
}
.l2-server-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 22px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,162,75,0.35);
	border-color: var(--lulu-gold);
}
.l2-server-card:hover .l2-server-card-content img,
.l2-server-card img {
	transition: transform 0.5s ease;
}

.l2-server-card-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10,9,8,0.15) 0%, rgba(10,9,8,0.97) 90%);
}
.l2-server-card-overlay-red {
	background: linear-gradient(180deg, rgba(30,10,10,0.2) 0%, rgba(15,8,8,0.97) 90%);
}

.l2-server-card-content {
	position: relative;
	z-index: 2;
	padding: 28px 26px;
	width: 100%;
}

.l2-server-card-name {
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--lulu-text);
	margin-bottom: 14px;
}
.l2-server-card-name strong {
	color: var(--lulu-gold-bright);
	font-size: 1.5em;
}

.l2-server-card-meta {
	font-size: 13.5px;
	color: var(--lulu-muted);
	line-height: 1.9;
	margin-bottom: 20px;
}
.l2-server-card-meta strong { color: var(--lulu-text); }

.l2-server-card-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ---------- Stats grid ---------- */
.l2-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	max-width: 1100px;
	margin: 0 auto;
}
.l2-stats-grid-center {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	max-width: 900px;
	margin: 0 auto;
}
.l2-stats-grid-center .l2-stat-box {
	flex: 0 1 220px;
}
.l2-stat-box {
	background: var(--lulu-bg-elevated);
	border: 1px solid var(--lulu-border);
	border-radius: 8px;
	padding: 22px 18px;
	text-align: center;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.l2-stat-box:hover {
	border-color: var(--lulu-gold);
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(0,0,0,0.4), 0 0 24px rgba(201,162,75,0.12);
}
.l2-stat-label {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--lulu-muted);
	margin-bottom: 8px;
}
.l2-stat-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lulu-gold-bright);
}

.l2-features-note {
	max-width: 760px;
	margin: 30px auto 0;
	text-align: center;
	color: var(--lulu-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* ---------- Server hero (server detail pages) ---------- */
.l2-server-hero {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	text-align: center;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center 30%;
	overflow: hidden;
}
.l2-server-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at center, rgba(10,9,8,0.35) 0%, rgba(10,9,8,0.88) 78%),
		linear-gradient(180deg, rgba(10,9,8,0.6) 0%, rgba(10,9,8,0.4) 35%, rgba(10,9,8,0.97) 100%);
}
.l2-server-hero-inner {
	position: relative;
	z-index: 2;
	padding: 40px 20px;
}
.l2-server-hero h1 {
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 2px;
}
.l2-server-hero-rate {
	font-size: 2.6em;
	color: var(--lulu-gold-bright);
	display: inline-block;
	margin: 10px 0;
}
.l2-server-hero-chronicle {
	font-size: 0.85em;
	letter-spacing: 4px;
	opacity: 0.65;
	text-transform: uppercase;
}
.l2-hero-server-status {
	color: var(--lulu-muted);
	font-size: 14px;
	margin-top: 14px;
}

/* Numbered "How to Connect" steps */
.l2-connect-steps {
	list-style: none;
	counter-reset: l2-step;
	max-width: 640px;
	margin: 0 auto;
	padding: 0;
}
.l2-connect-steps li {
	counter-increment: l2-step;
	position: relative;
	padding: 14px 0 14px 56px;
	border-bottom: 1px solid var(--lulu-border);
	color: var(--lulu-text);
}
.l2-connect-steps li:last-child { border-bottom: none; }
.l2-connect-steps li::before {
	content: counter(l2-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 10px;
	font-family: 'Cinzel', serif;
	font-weight: 700;
	color: var(--lulu-gold);
	font-size: 1.2rem;
}

.l2-status-online { color: #4caf7d; font-weight: 700; }
.l2-status-offline { color: #c0524a; font-weight: 700; }
.l2-online-count { color: var(--lulu-gold-bright); font-weight: 700; }

/* ---------- Site-wide background video (user-selected), kept subtle so content stays readable ---------- */
.nk-page-background {
	opacity: 0.35 !important;
}
.nk-page-background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10,9,8,0.55);
}

/* Remove the old generic page-title banner on homepage & server pages (replaced by our own hero) */
body.home .nk-header-title,
body.page-id-1170 .nk-header-title,
body.page-id-1165 .nk-header-title,
body.page-id-1253 .nk-header-title,
body.page-id-1074 .nk-header-title,
body.page-id-332 .nk-header-title {
	display: none !important;
}

/* ---------- Donate page ---------- */
.l2-donate-notice {
	max-width: 640px;
	margin: 0 auto 40px;
	text-align: center;
	padding: 16px 22px;
	border: 1px solid var(--lulu-border);
	border-radius: 6px;
	background: var(--lulu-bg-elevated);
	color: var(--lulu-muted);
	font-size: 14px;
}
.l2-stat-value a {
	color: var(--lulu-gold-bright);
}
.l2-stat-value a:hover {
	color: #fff;
}

/* ---------- Footer ---------- */
.nk-footer {
	background: var(--lulu-bg-secondary);
	border-top: 1px solid var(--lulu-border);
	padding: 10px 0 30px;
}
.nk-footer p {
	color: var(--lulu-muted);
	font-size: 13px;
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.7;
}
.nk-footer-links {
	text-align: center;
	margin-top: 16px;
}
.nk-footer-links a {
	color: var(--lulu-gold);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	font-weight: 700;
}
.nk-footer-links a:hover { color: var(--lulu-gold-bright); }
.nk-footer-links span {
	color: var(--lulu-border);
	margin: 0 10px;
}

/* Hide the now-unused background-audio toggle button (audio disabled) */
.nk-bg-audio-toggle { display: none !important; }

/* ---------- Animated ember background (pure CSS, lightweight) ---------- */
.l2-embers {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.l2-embers span {
	position: absolute;
	bottom: -20px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--lulu-gold-bright) 0%, rgba(201,162,75,0) 70%);
	opacity: 0;
	animation: l2Ember linear infinite;
}
.l2-embers span:nth-child(1)  { left: 6%;  width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 0s; }
.l2-embers span:nth-child(2)  { left: 16%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 1.5s; }
.l2-embers span:nth-child(3)  { left: 28%; width: 2px; height: 2px; animation-duration: 8s;  animation-delay: 3s; }
.l2-embers span:nth-child(4)  { left: 41%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 0.5s; }
.l2-embers span:nth-child(5)  { left: 53%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 4s; }
.l2-embers span:nth-child(6)  { left: 64%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 2s; }
.l2-embers span:nth-child(7)  { left: 76%; width: 3px; height: 3px; animation-duration: 9.5s; animation-delay: 5s; }
.l2-embers span:nth-child(8)  { left: 87%; width: 4px; height: 4px; animation-duration: 12.5s; animation-delay: 1s; }
.l2-embers span:nth-child(9)  { left: 95%; width: 2px; height: 2px; animation-duration: 8.5s; animation-delay: 3.5s; }
.l2-embers span:nth-child(10) { left: 34%; width: 3px; height: 3px; animation-duration: 10.5s; animation-delay: 6s; }

@keyframes l2Ember {
	0%   { transform: translateY(0) translateX(0); opacity: 0; }
	10%  { opacity: 0.9; }
	50%  { transform: translateY(-45vh) translateX(12px); opacity: 0.6; }
	90%  { opacity: 0.15; }
	100% { transform: translateY(-85vh) translateX(-8px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.l2-embers { display: none; }
}

.l2-embers-section {
	position: relative;
}

/* ---------- How To Connect steps ---------- */
.l2-htc-steps {
	max-width: 780px;
	margin: 0 auto;
}
.l2-htc-step {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 30px 0;
	border-bottom: 1px solid var(--lulu-border);
}
.l2-htc-step:last-child { border-bottom: none; }

.l2-htc-step-number {
	flex: 0 0 auto;
	font-family: 'Cinzel', serif;
	font-weight: 900;
	font-size: 2.6rem;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--lulu-gold);
	min-width: 76px;
	text-align: center;
}

.l2-htc-step-body h3 {
	margin: 4px 0 10px;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--lulu-gold-bright);
}
.l2-htc-step-body p {
	color: var(--lulu-text);
	line-height: 1.7;
	margin: 0 0 12px;
}
.l2-htc-step-body strong { color: var(--lulu-gold-bright); }

.l2-htc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.l2-btn-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}
.l2-htc-note {
	font-size: 12px;
	color: var(--lulu-muted);
	font-style: italic;
	margin-top: 10px !important;
}

@media (max-width: 600px) {
	.l2-htc-step { gap: 16px; }
	.l2-htc-step-number { font-size: 1.8rem; min-width: 48px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.l2-server-cards { grid-template-columns: 1fr; }
	.l2-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.l2-hero { min-height: 78vh; }
}
@media (max-width: 600px) {
	.l2-stats-grid { grid-template-columns: 1fr; }
	.l2-hero-cta { flex-direction: column; align-items: stretch; }
	.l2-hero-cta .l2-btn { text-align: center; }
}
