/**
 * TradeLink Hub forum branding — matches titanjobfinder.com hub (zinc-950 + orange-500).
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600&display=swap');

:root {
	--tlh-orange: #f97316;
	--tlh-orange-hover: #fb923c;
	--tlh-zinc-950: #09090b;
	--tlh-zinc-900: #18181b;
	--tlh-zinc-800: #27272a;
	--tlh-zinc-700: #3f3f46;
	--tlh-text: #fafafa;
	--tlh-muted: #a1a1aa;
}

html,
body {
	font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
	background-color: var(--tlh-zinc-950) !important;
}

/* Hero banner */
.tlh-forum-hero {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 10px;
	min-height: 168px;
	background: var(--tlh-zinc-900) url('/imagine_images/II0uc.jpg') center center / cover no-repeat;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
}

.tlh-forum-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(9, 9, 11, 0.94) 0%, rgba(9, 9, 11, 0.72) 42%, rgba(249, 115, 22, 0.22) 100%),
		linear-gradient(to bottom, transparent 55%, rgba(9, 9, 11, 0.55) 100%);
	pointer-events: none;
}

.tlh-forum-hero__content {
	position: relative;
	z-index: 1;
	padding: 22px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tlh-forum-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.tlh-forum-hero__hub-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	color: var(--tlh-text) !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	backdrop-filter: blur(10px);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tlh-forum-hero__hub-link:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(249, 115, 22, 0.45);
	color: var(--tlh-orange-hover) !important;
}

.tlh-forum-hero__hub-link .icon {
	font-size: 11px;
	opacity: 0.85;
}

.tlh-forum-hero__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.tlh-forum-hero__logo {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	flex-shrink: 0;
}

.tlh-forum-hero__title {
	display: block;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-size: 1.65rem;
	font-weight: 600;
	line-height: 1.15;
	color: var(--tlh-text);
	letter-spacing: -0.02em;
}

.tlh-forum-hero__title .tlh-orange {
	color: var(--tlh-orange);
}

.tlh-forum-hero__subtitle {
	display: block;
	margin-top: 4px;
	font-size: 0.95rem;
	color: var(--tlh-muted);
	font-weight: 500;
}

.tlh-forum-hero__tagline {
	margin: 0;
	max-width: 42rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(250, 250, 250, 0.78);
}

/* Header bar — slim toolbar under hero */
#page-header .headerbar {
	background: rgba(24, 24, 27, 0.92) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 12px !important;
	margin-bottom: 10px !important;
	padding: 8px 10px !important;
	backdrop-filter: blur(12px);
}

#page-header .headerbar .inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
}

#site-description {
	display: none !important;
}

#search-box.search-header {
	float: none;
	margin: 0;
	width: 100%;
	max-width: 340px;
}

#search-box.search-header fieldset {
	display: flex;
	align-items: center;
	gap: 4px;
}

#search-box.search-header .inputbox.search {
	background: rgba(255, 255, 255, 0.07) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 10px !important;
	color: var(--tlh-text) !important;
	flex: 1;
	min-width: 0;
}

#search-box.search-header .inputbox.search::placeholder {
	color: var(--tlh-muted);
}

#search-box.search-header .button-search,
#search-box.search-header .button-search-end {
	border-radius: 10px !important;
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#search-box.search-header .button-search:hover,
#search-box.search-header .button-search-end:hover {
	background: rgba(249, 115, 22, 0.22) !important;
	border-color: rgba(249, 115, 22, 0.35) !important;
}

/* Nav bar */
#page-header .navbar {
	background: rgba(24, 24, 27, 0.75) !important;
	border: 1px solid rgba(255, 255, 255, 0.06) !important;
	border-radius: 12px !important;
	margin-bottom: 14px !important;
}

/* Forum section headers — orange accent instead of blue */
.forabg,
.forumbg {
	background: linear-gradient(180deg, rgba(39, 39, 42, 0.95) 0%, rgba(24, 24, 27, 0.98) 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.07) !important;
	border-radius: 12px !important;
}

.forabg .header a,
.forumbg .header a {
	color: var(--tlh-text) !important;
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
}

a:link,
a:active,
a:visited {
	color: var(--tlh-orange) !important;
}

a:hover {
	color: var(--tlh-orange-hover) !important;
}

.pagination li.active span,
.pagination li a:hover,
.global_unread:before,
.global_unread_mine:before,
.global_unread_locked:before,
.global_unread_locked_mine:before,
.announce_unread:before,
.announce_unread_mine:before,
.announce_unread_locked:before,
.announce_unread_locked_mine:before,
.forum_unread:before,
.forum_unread_locked:before,
.forum_unread_subforum:before,
.sticky_unread:before,
.sticky_unread_mine:before,
.sticky_unread_locked:before,
.sticky_unread_locked_mine:before,
.pm_unread:before,
.topic_unread:before,
.topic_unread_mine:before,
.topic_unread_hot:before,
.topic_unread_hot_mine:before,
.topic_unread_locked:before,
.topic_unread_locked_mine:before {
	background-color: var(--tlh-orange) !important;
}

.button,
a.button1,
input.button1,
input.button3,
a.button2,
input.button2 {
	border-radius: 10px !important;
}

a.button1,
input.button1,
a.button2,
input.button2 {
	background: rgba(255, 255, 255, 0.08) !important;
}

a.button1:hover,
input.button1:hover,
a.button2:hover,
input.button2:hover {
	background: rgba(249, 115, 22, 0.2) !important;
}

/* Primary actions */
.post-buttons .button,
.quickreply .button,
a.button1[href*="posting"],
input.button1[value*="Submit"],
input.button1[value*="Reply"] {
	background: var(--tlh-orange) !important;
	color: var(--tlh-zinc-950) !important;
	border-color: transparent !important;
}

.post-buttons .button:hover,
.quickreply .button:hover {
	background: var(--tlh-orange-hover) !important;
}

.wrap {
	background: transparent !important;
}

#page-footer .copyright {
	color: var(--tlh-muted);
}

.tlh-footer-brand {
	color: var(--tlh-muted);
	font-size: 12px;
}

.tlh-footer-brand strong {
	color: var(--tlh-text);
	font-weight: 600;
}

.tlh-footer-brand .tlh-orange {
	color: var(--tlh-orange);
}

/* Hide native phpBB guest login — hub auth only */
#nav-main li.rightside:has(a[href*="mode=login"]),
#nav-main li.rightside:has(a[href*="mode=register"]) {
	display: none !important;
}

form.headerspace:has(fieldset.quick-login),
#page-body form[action*="mode=login"],
form#login_forum {
	display: none !important;
}

.tlh-hub-auth-panel {
	border: 1px solid rgba(249, 115, 22, 0.25) !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, rgba(24, 24, 27, 0.95) 0%, rgba(39, 39, 42, 0.9) 100%) !important;
	margin-bottom: 16px !important;
}

.tlh-hub-auth-panel h3 {
	font-family: 'Space Grotesk', 'Inter', sans-serif;
	font-weight: 600;
	color: var(--tlh-text) !important;
	margin: 0 0 8px;
}

.tlh-hub-auth-panel__text {
	color: var(--tlh-muted) !important;
	margin: 0 0 14px;
	line-height: 1.5;
}

.tlh-hub-auth-panel__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tlh-hub-auth-panel__actions .button1 {
	background: var(--tlh-orange) !important;
	color: var(--tlh-zinc-950) !important;
	border-color: transparent !important;
	border-radius: 10px !important;
	font-weight: 600;
}

.tlh-hub-auth-panel__actions .button1:hover {
	background: var(--tlh-orange-hover) !important;
}

.tlh-hub-auth-panel__actions .button2 {
	border-radius: 10px !important;
}

.tlh-nav-auth-link {
	font-weight: 600;
}

/* Profile menu — hub account + synced logout (hide native phpBB UCP items) */
.header-profile .dropdown-contents > li:not(.tlh-profile-item) {
	display: none !important;
}

.header-profile .dropdown-contents > li.tlh-profile-item.separator {
	display: list-item !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: 4px;
	padding-top: 4px;
}

/* Hide third-party style credits injected in prosilver_dark footer */
.footer-row.tlh-hide-planetstyles {
	display: none !important;
}

@media (max-width: 700px) {
	.tlh-forum-hero {
		min-height: 150px;
	}

	.tlh-forum-hero__title {
		font-size: 1.35rem;
	}

	.tlh-forum-hero__logo {
		width: 44px;
		height: 44px;
	}

	#search-box.search-header {
		max-width: none;
	}
}
