/* Heliolisk Header widget — fully self-contained, no theme dependency. */

.hlw-header,
.hlw-header *,
.hlw-header *::before,
.hlw-header *::after {
	box-sizing: border-box;
}

.hlw-header {
	--hlw-header-panel-bg: #0c0c10;
	position: relative;
	z-index: 50;
	width: 100%;
	background-color: #080808;
	border-bottom: 1px solid #242438;
	color: #f4f5fb;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	transition: box-shadow 0.3s ease;
}

.hlw-header--sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.admin-bar .hlw-header--sticky {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .hlw-header--sticky {
		top: 46px;
	}
}

.hlw-header.is-scrolled {
	box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
}

.hlw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 78px;
	max-width: 1280px;
	margin: 0 auto;
}

/* ---- Logo ---- */
.hlw-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	text-decoration: none;
}

.hlw-header__logo-mark {
	display: block;
	width: 36px;
	height: 36px;
	border: 1px solid #8b5cf6;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #0c0c0c;
}

.hlw-header__logo-mark img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}

.hlw-header__logo-text {
	font-family: 'Barlow Condensed', 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f4f5fb;
}

/* ---- Menu ---- */
.hlw-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.hlw-header__nav-list {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hlw-header__nav a {
	display: block;
	padding: 6px 8px;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #8a8a8a;
	transition: color 0.2s ease;
}

.hlw-header__nav a:hover,
.hlw-header__nav a:focus-visible,
.hlw-header__nav .current-menu-item > a,
.hlw-header__nav .current_page_item > a {
	color: #a78bfa;
}

.hlw-header__empty {
	margin: 0;
	flex: 1;
	text-align: center;
	font-size: 0.85rem;
	color: #8a8a8a;
}

/* ---- Right side ---- */
.hlw-header__right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.hlw-header__social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hlw-header__social a {
	display: inline-flex;
	color: #8a8a8a;
	transition: color 0.2s ease, transform 0.2s ease;
}

.hlw-header__social a:hover,
.hlw-header__social a:focus-visible {
	color: #a78bfa;
	transform: translateY(-2px);
}

.hlw-header__social svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* ---- Mobile toggle ---- */
.hlw-header__toggle {
	display: none;
	position: relative;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: #f4f5fb;
	cursor: pointer;
}

.hlw-header__toggle span {
	position: absolute;
	left: 10px;
	right: 10px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.hlw-header__toggle span:nth-child(1) { top: 13px; }
.hlw-header__toggle span:nth-child(2) { top: 19px; }
.hlw-header__toggle span:nth-child(3) { top: 25px; }

.hlw-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hlw-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hlw-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hlw-header__toggle:focus-visible {
	outline: 2px solid #a78bfa;
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.hlw-header__toggle {
		display: inline-block;
	}

	.hlw-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		padding: 8px 24px 20px;
		background: var(--hlw-header-panel-bg);
		border-bottom: 1px solid #242438;
	}

	.hlw-header__nav.is-open {
		display: flex;
	}

	.hlw-header__nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0 !important;
	}

	.hlw-header__nav a {
		padding: 14px 0;
		border-bottom: 1px solid #242438;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hlw-header,
	.hlw-header__social a,
	.hlw-header__toggle span {
		transition: none;
	}
}
