/*
 * XFinit Gaming forum identity layer
 * Loaded after the Prosilver Dark colour preset so upgrades remain isolated.
 */

:root {
	--xfg-bg: #050304;
	--xfg-bg-soft: #100709;
	--xfg-surface: rgba(20, 10, 12, 0.95);
	--xfg-surface-2: rgba(31, 14, 17, 0.93);
	--xfg-surface-3: #241216;
	--xfg-border: rgba(255, 183, 70, 0.17);
	--xfg-border-strong: rgba(255, 70, 62, 0.48);
	--xfg-cyan: #ffbd45;
	--xfg-blue: #d91d35;
	--xfg-red: #ff4655;
	--xfg-text: #fff7ef;
	--xfg-muted: #bda7a0;
	--xfg-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

html {
	background: var(--xfg-bg);
}

body {
	background-color: var(--xfg-bg) !important;
	background-image:
		linear-gradient(180deg, rgba(5, 3, 4, 0.34) 0, rgba(5, 3, 4, 0.88) 46rem),
		url("./images/xfg-page.png");
	background-attachment: fixed;
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--xfg-text);
	font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
	min-height: 100vh;
}

body::before {
	background-image:
		linear-gradient(rgba(255, 187, 72, 0.026) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 187, 72, 0.026) 1px, transparent 1px);
	background-size: 44px 44px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: 0;
}

a,
a:link,
a:visited {
	color: var(--xfg-cyan);
	transition: color 160ms ease, opacity 160ms ease;
}

a:hover,
a:focus {
	color: #ffffff;
	text-decoration: none;
}

.wrap {
	background: transparent !important;
	border: 0;
	box-shadow: none;
	margin: 28px auto 0;
	max-width: 1280px;
	min-width: 290px;
	padding: 0 28px 42px;
	position: relative;
	z-index: 1;
}

/* XFG arena masthead */
.headerbar {
	background:
		linear-gradient(90deg, rgba(5, 3, 4, 0.97) 0%, rgba(8, 4, 5, 0.78) 44%, rgba(8, 3, 4, 0.2) 100%),
		linear-gradient(180deg, transparent 48%, rgba(5, 3, 4, 0.94) 100%),
		url("./images/xfg-hero.png") center 50% / cover no-repeat !important;
	border: 1px solid var(--xfg-border-strong) !important;
	border-radius: 22px;
	box-shadow: var(--xfg-shadow), inset 0 0 80px rgba(217, 29, 53, 0.12);
	min-height: 236px;
	overflow: hidden;
	padding: 0;
	position: relative;
}

.headerbar::before {
	background: linear-gradient(90deg, var(--xfg-cyan), var(--xfg-blue) 48%, var(--xfg-cyan));
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

.headerbar::after {
	background: linear-gradient(90deg, rgba(255, 189, 69, 0.72), transparent 48%);
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	right: 0;
}

.headerbar > .inner {
	min-height: 236px;
	position: relative;
}

.site-description {
	align-content: center;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	grid-template-rows: auto auto;
	min-height: 236px;
	padding: 34px 370px 34px 38px;
	text-align: left;
	width: auto;
}

.site-description .logo {
	align-self: center;
	float: none;
	grid-row: 1 / 3;
	margin: 0 24px 0 0;
	padding: 0;
}

.site_logo {
	background-image: url("./images/xfg-logo-poster.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border: 1px solid rgba(255, 187, 69, 0.42);
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(127, 0, 14, 0.35), inset 0 0 20px rgba(255, 188, 69, 0.12);
	display: block;
	filter: drop-shadow(0 0 16px rgba(255, 55, 48, 0.36));
	float: none;
	height: 92px;
	overflow: hidden;
	padding: 0;
	width: 92px;
}

.xfg-logo-video {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.site-description h1 {
	color: #ffffff;
	float: none;
	font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
	font-size: clamp(25px, 3vw, 39px);
	font-weight: 800;
	grid-column: 2;
	letter-spacing: 0.02em;
	line-height: 1.04;
	margin: 0;
	text-shadow: 0 3px 20px rgba(0, 0, 0, 0.7);
	text-transform: uppercase;
}

.site-description h1::before {
	color: var(--xfg-cyan);
	content: "XFG // COMMUNITY NETWORK";
	display: block;
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.23em;
	line-height: 1.4;
	margin-bottom: 9px;
	text-shadow: none;
}

.site-description > p:not(.skiplink) {
	color: #b7c8d8;
	font-size: 13px;
	grid-column: 2;
	letter-spacing: 0.01em;
	line-height: 1.6;
	margin: 10px 0 0;
	max-width: 560px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.search-header {
	background: rgba(5, 11, 18, 0.78);
	border: 1px solid var(--xfg-border-strong);
	border-radius: 12px;
	bottom: 28px;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
	padding: 5px;
	right: 28px;
	top: auto;
}

.search-header .inputbox {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--xfg-text);
	height: 32px;
	padding-left: 10px;
}

.search-header .button {
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* Navigation */
.navbar {
	background: rgba(20, 10, 12, 0.94) !important;
	border: 1px solid var(--xfg-border) !important;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
	color: var(--xfg-muted);
	margin-top: 13px;
	padding: 7px 12px;
}

.navbar ul.linklist {
	padding: 1px 0;
}

.navbar a,
.navbar a:link,
.navbar a:visited {
	color: #b9cad9;
	font-weight: 600;
}

.navbar a:hover,
.navbar a:focus,
.navbar .icon {
	color: var(--xfg-cyan);
}

.breadcrumbs .crumb a {
	font-weight: 700;
}

.page-body {
	margin-top: 16px;
}

.time,
.responsive-hide,
.mark-read {
	color: var(--xfg-muted);
}

/* Forum and topic cards */
.forabg,
.forumbg {
	background: var(--xfg-surface) !important;
	border: 1px solid var(--xfg-border) !important;
	border-radius: 18px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	margin-bottom: 18px;
	overflow: hidden;
	padding: 0;
}

.forabg > .inner,
.forumbg > .inner {
	margin: 0;
}

ul.topiclist li.header {
	background:
		linear-gradient(90deg, rgba(217, 29, 53, 0.25), rgba(255, 189, 69, 0.05) 60%, transparent),
		#200d12;
	border-bottom: 1px solid rgba(255, 189, 69, 0.24);
	color: #dcecff;
	font-family: Bahnschrift, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	padding: 13px 16px;
	text-transform: uppercase;
}

ul.topiclist li.header dt,
ul.topiclist li.header dd {
	color: #cfe9fa;
}

ul.topiclist li.row {
	background: linear-gradient(90deg, rgba(217, 29, 53, 0.055), transparent 38%), rgba(24, 11, 14, 0.94) !important;
	border-bottom: 1px solid rgba(255, 183, 70, 0.11);
	border-left: 3px solid transparent;
	padding: 9px 13px;
	transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

ul.topiclist li.row:last-child {
	border-bottom: 0;
}

ul.topiclist li.row:hover {
	background: linear-gradient(90deg, rgba(217, 29, 53, 0.18), rgba(255, 189, 69, 0.035) 54%, transparent), #261014 !important;
	border-left-color: var(--xfg-cyan);
}

ul.topiclist li.row dt,
ul.topiclist li.row dd {
	border-color: rgba(255, 183, 70, 0.12);
}

a.forumtitle,
a.topictitle {
	color: #f2f8ff;
	font-family: Bahnschrift, "Segoe UI", sans-serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.015em;
}

a.forumtitle:hover,
a.topictitle:hover {
	color: var(--xfg-cyan);
}

.forum-image img,
.topiclist .icon {
	filter: drop-shadow(0 0 7px rgba(255, 189, 69, 0.2));
}

ul.topiclist dd.topics,
ul.topiclist dd.posts,
ul.topiclist dd.views {
	color: #d8e7f4;
	font-family: Bahnschrift, "Segoe UI", sans-serif;
	font-size: 13px;
}

ul.topiclist dd.lastpost {
	color: var(--xfg-muted);
	line-height: 1.45;
}

ul.topiclist dd.lastpost a {
	font-weight: 700;
}

/* Panels, posts, profiles and control pages */
.panel,
.post,
.cp-main .pm,
.rules,
.phpbb_alert {
	background: var(--xfg-surface) !important;
	border: 1px solid var(--xfg-border) !important;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
	color: var(--xfg-text);
}

.panel,
.post {
	margin-bottom: 16px;
	padding: 18px;
}

.post:target {
	border-color: var(--xfg-border-strong);
	box-shadow: 0 0 0 1px rgba(255, 189, 69, 0.12), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.postheader {
	background: linear-gradient(90deg, var(--xfg-blue), var(--xfg-red) 48%, var(--xfg-cyan)) !important;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 3px 16px rgba(217, 29, 53, 0.28);
	height: 4px;
}

.postprofile {
	border-color: var(--xfg-border);
	color: var(--xfg-muted);
}

.content,
.postbody,
.signature,
.panel p,
.panel li {
	color: #cbd9e6;
}

h2,
.panel h2,
.content h2,
.panel-container h2 {
	color: #f4f9ff;
	font-family: Bahnschrift, "Segoe UI", sans-serif;
	font-weight: 750;
	letter-spacing: 0.02em;
}

h3,
.panel h3,
.stat-block h3 {
	border-bottom-color: rgba(255, 189, 69, 0.22);
	color: #dcecff;
	font-family: Bahnschrift, "Segoe UI", sans-serif;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stat-block {
	background: linear-gradient(135deg, rgba(217, 29, 53, 0.1), rgba(20, 10, 12, 0.92));
	border: 1px solid var(--xfg-border);
	border-radius: 14px;
	margin: 18px 0;
	padding: 16px 18px;
}

.stat-block h3 {
	margin-top: 0;
	padding-bottom: 10px;
}

.stat-block p {
	color: var(--xfg-muted);
	line-height: 1.7;
	margin-bottom: 0;
}

.tabs .tab > a,
.minitabs .tab > a,
.navigation a {
	background: #101a26;
	border-color: var(--xfg-border);
	color: #b8cada;
}

.tabs .activetab > a,
.minitabs .activetab > a,
.navigation .active-subsection a,
.tabs .tab > a:hover,
.navigation a:hover {
	background: linear-gradient(135deg, rgba(217, 29, 53, 0.28), rgba(255, 189, 69, 0.09));
	border-color: var(--xfg-border-strong);
	color: #ffffff;
}

/* Form controls and actions */
.inputbox,
textarea,
select,
fieldset.quick-login input.inputbox {
	background: #100709;
	border: 1px solid rgba(255, 183, 70, 0.22);
	border-radius: 8px;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
	color: var(--xfg-text);
}

.inputbox:hover,
textarea:hover,
select:hover,
.inputbox:focus,
textarea:focus,
select:focus {
	border-color: var(--xfg-cyan);
	box-shadow: 0 0 0 3px rgba(255, 189, 69, 0.11);
	outline: none;
}

.button,
a.button1,
input.button1,
input.button3,
a.button2,
input.button2 {
	background: linear-gradient(135deg, var(--xfg-blue), #ff4b32);
	border: 1px solid rgba(106, 225, 255, 0.58);
	border-radius: 9px;
	box-shadow: 0 8px 22px rgba(217, 29, 53, 0.24);
	color: #ffffff;
	font-weight: 700;
	text-shadow: none;
	transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.button:hover,
.button:focus,
a.button1:hover,
input.button1:hover,
a.button2:hover,
input.button2:hover,
input.button3:hover {
	background: linear-gradient(135deg, #ff3349, var(--xfg-cyan));
	border-color: #ffd578;
	box-shadow: 0 10px 28px rgba(255, 189, 69, 0.25);
	color: #1a0705;
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.button-secondary,
.button-secondary .icon {
	color: #dcecff;
}

.pagination li a,
.pagination li span {
	background: #211014;
	border-color: var(--xfg-border);
	border-radius: 7px;
	color: #c8d9e7;
}

.pagination li.active span,
.pagination li a:hover {
	background: var(--xfg-blue);
	border-color: var(--xfg-cyan);
	color: #ffffff;
}

.dropdown .dropdown-contents,
.dropdown-extended .dropdown-contents {
	background: #190c0f !important;
	border: 1px solid var(--xfg-border-strong);
	border-radius: 12px;
	box-shadow: var(--xfg-shadow);
}

.dropdown li,
.dropdown li li,
.dropdown-extended .header,
.dropdown-extended .footer {
	border-color: var(--xfg-border);
}

/* Footer */
.page-footer .navbar {
	margin-top: 24px;
}

.copyright {
	color: #6f8498;
	font-size: 11px;
	line-height: 1.7;
	padding: 18px 0 6px;
}

.copyright::before {
	color: var(--xfg-cyan);
	content: "XFG // BUILT FOR THE COMMUNITY";
	display: block;
	font-family: Bahnschrift, "Segoe UI", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 900px) {
	.site-description {
		padding-right: 250px;
	}

	.search-header {
		width: 210px;
	}
}

@media (max-width: 700px) {
	body {
		background: linear-gradient(180deg, #0a111a 0, var(--xfg-bg) 34rem);
	}

	.wrap {
		margin-top: 0;
		padding: 0 10px 28px;
	}

	.headerbar,
	.headerbar > .inner {
		border-radius: 0 0 18px 18px;
		min-height: 210px;
	}

	.headerbar {
		background-position: 58% center;
	}

	.site-description {
		align-content: start;
		grid-template-columns: 72px minmax(0, 1fr);
		min-height: 210px;
		padding: 26px 18px 70px;
	}

	.site_logo {
		height: 62px;
		width: 62px;
	}

	.site-description .logo {
		display: block !important;
		margin-right: 13px;
	}

	.site-description h1 {
		font-size: 23px;
	}

	.site-description h1::before {
		font-size: 8px;
		letter-spacing: 0.16em;
		margin-bottom: 5px;
	}

	.site-description > p:not(.skiplink) {
		display: block;
		font-size: 11px;
		line-height: 1.4;
		margin-top: 6px;
	}

	.search-header {
		bottom: 14px;
		left: 16px;
		right: 16px;
		width: auto;
	}

	.navbar {
		border-radius: 12px;
		margin-top: 10px;
	}

	.forabg,
	.forumbg,
	.panel,
	.post,
	.stat-block {
		border-radius: 12px;
	}

	ul.topiclist li.row {
		padding-left: 7px;
		padding-right: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xfg-logo-video {
		display: none;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
