/*
 * SECTION:  Header (announcement bar, logo, search, icons, category bar)
 * File:     assets/css/sections/sol-header.css
 * Used by:  [sol_header] shortcode and the Header widget (inc/header-footer.php)
 * To remove: delete this file and its line in inc/assets.php (handle "sol-header").
 */

.sol-announce {
	background: var(--sol-text);
	color: var(--sol-bg);
	font-size: var(--sol-text-sm);
	text-align: center;
	padding: 8px var(--sol-gutter);
}

.sol-header {
	background: var(--sol-header-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--sol-line);
}

/* Phone: logo and icons on the first row, search on its own row. */
.sol-header__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	max-width: var(--sol-container);
	margin-inline: auto;
	padding: 10px var(--sol-gutter);
}

.sol-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 600 1.35rem var(--sol-font-serif);
	text-decoration: none;
	white-space: nowrap;
	color: var(--sol-text);
}

.sol-logo i {
	width: 11px;
	height: 21px;
	background: var(--sol-accent);
	border-radius: 11px 11px 2px 2px;
}

.sol-search {
	order: 3;
	flex: 1 1 100%;
}

.sol-search input[type="search"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--sol-line);
	border-radius: 10px;
	background: var(--sol-surface);
	color: var(--sol-text);
	font: inherit;
	font-size: var(--sol-text-sm);
}

.sol-header__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sol-iconbtn {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--sol-line);
	border-radius: 10px;
	background: transparent;
	color: var(--sol-text);
	font-size: var(--sol-text-sm);
	font-weight: 500;
	text-decoration: none;
	position: relative;
}

.sol-iconbtn:hover {
	background: var(--sol-surface-alt);
	color: var(--sol-text);
}

.sol-iconbtn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sol-iconbtn__label {
	display: none;
}

.sol-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--sol-accent);
	color: var(--sol-accent-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* Category bar: scrolls sideways when it does not fit. */
.sol-header__sub {
	border-top: 1px solid var(--sol-line);
	font-size: 0.8125rem;
}

.sol-menu {
	display: flex;
	gap: 22px;
	max-width: var(--sol-container);
	margin: 0 auto;
	padding: 0 var(--sol-gutter);
	list-style: none;
	height: 44px;
	align-items: center;
	overflow-x: auto;
	white-space: nowrap;
}

.sol-menu a {
	color: var(--sol-muted);
	text-decoration: none;
}

.sol-menu a:hover {
	color: var(--sol-text);
}

/* Tablet and up: one row, search in the middle, labels next to icons. */
@media (min-width: 760px) {
	.sol-header__main {
		flex-wrap: nowrap;
		gap: 22px;
	}

	.sol-search {
		order: 0;
		flex: 1;
		max-width: 560px;
		margin-inline: auto;
	}

	.sol-header__tools {
		margin-left: 0;
	}
}

@media (min-width: 960px) {
	.sol-iconbtn--label {
		display: inline-flex;
		gap: 8px;
		padding: 0 14px;
	}

	.sol-iconbtn--label .sol-iconbtn__label {
		display: inline;
	}
}
