/**
 * NeoFollower Child custom styles.
 *
 * Add your custom CSS here. This file loads after the parent theme stylesheet.
 */

/* Live search: keep results as an overlay instead of expanding/clipping sections. */
.nf-live-search {
	position: relative;
}

.nf-live-search.is-search-open,
.nf-live-search:focus-within {
	z-index: 999999;
}

.nf-live-search .nf-live-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 999999;
	max-height: min(70vh, 520px);
	overflow-y: auto;
}

.nf-hero-search.nf-live-search,
.nf-big-search.nf-live-search,
.nf-overlay-search.nf-live-search,
.nf-mobile-search.nf-live-search {
	overflow: visible;
}

.nf-hero-search.nf-live-search .nf-live-search__results,
.nf-big-search.nf-live-search .nf-live-search__results,
.nf-overlay-search.nf-live-search .nf-live-search__results,
.nf-mobile-search.nf-live-search .nf-live-search__results {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	width: auto;
	z-index: 999999;
}

/* The parent search JS adds this class while results are open. */
.nf-has-open-search {
	overflow: visible !important;
	contain: none !important;
	z-index: 999998;
}

/* Hide excerpt/shortcode text in live-search results. */
.nf-live-result small {
	display: none !important;
}

/* HOTFIX: isolate NeoFollower header from Elementor/WooCommerce/global button styles. */
.nf-site-header,
.nf-site-header * {
	box-sizing: border-box;
}

.nf-site-header {
	height: var(--nf-header-height, 76px) !important;
	min-height: var(--nf-header-height, 76px) !important;
	background: rgba(1, 9, 21, 0.82) !important;
	border-bottom: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.07)) !important;
	z-index: 120 !important;
}

.nf-site-header .nf-container.nf-site-header__inner {
	height: 100% !important;
	display: grid !important;
	grid-template-columns: minmax(160px, 1fr) auto minmax(220px, 1fr) !important;
	align-items: center !important;
	gap: var(--space-5, 1.25rem) !important;
}

.nf-site-header .nf-logo {
	justify-self: start !important;
	line-height: 1 !important;
}

.nf-site-header .nf-logo__image {
	display: block !important;
	width: clamp(154px, 13vw, 188px) !important;
	max-width: 100% !important;
	max-height: 34px !important;
	height: auto !important;
	object-fit: contain !important;
}

.nf-site-header .nf-primary-nav {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
}

.nf-site-header .nf-primary-nav__list {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: var(--space-2, 0.5rem) !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.nf-site-header .nf-nav-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: var(--space-1, 0.25rem) !important;
	min-height: 38px !important;
	padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem) !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: var(--radius-md, 0.5rem) !important;
	color: var(--color-text, #f8fafc) !important;
	font-size: var(--text-sm, 0.875rem) !important;
	font-weight: var(--weight-bold, 700) !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.nf-site-header .nf-header-actions {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: var(--space-3, 0.75rem) !important;
}

.nf-site-header button.nf-header-search-toggle {
	appearance: none !important;
	-webkit-appearance: none !important;
	box-sizing: border-box !important;
	display: grid !important;
	place-items: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1)) !important;
	border-radius: var(--radius-md, 0.5rem) !important;
	background: rgba(8, 22, 38, 0.55) !important;
	color: var(--color-text, #f8fafc) !important;
	font: inherit !important;
	line-height: 1 !important;
	cursor: pointer !important;
	box-shadow: none !important;
	text-indent: 0 !important;
}

.nf-site-header button.nf-header-search-toggle svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	max-width: 18px !important;
	max-height: 18px !important;
	fill: none !important;
	stroke: currentColor !important;
}

.nf-site-header .nf-btn.nf-btn--sm {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 38px !important;
	padding: var(--space-2, 0.5rem) var(--space-4, 1rem) !important;
	border: 1px solid transparent !important;
	border-radius: var(--radius-md, 0.5rem) !important;
	font-size: var(--text-sm, 0.875rem) !important;
	font-weight: var(--weight-bold, 700) !important;
	line-height: 1 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

.nf-site-header .nf-btn.nf-btn--primary {
	background: var(--gradient-gold, linear-gradient(155deg, #f5c842 0%, #e9a020 52%, #c47a0a 100%)) !important;
	color: var(--color-primary-text, #010915) !important;
}

@media (max-width: 1180px) {
	.nf-site-header .nf-container.nf-site-header__inner {
		display: flex !important;
	}

	.nf-site-header .nf-primary-nav,
	.nf-site-header .nf-header-actions {
		display: none !important;
	}

	.nf-site-header .nf-mobile-toggle {
		display: flex !important;
		margin-left: auto !important;
	}
}
