/* SWOP ON header — replica van de header op swop-on.com */

/* Verberg de standaard Bloggerly-themaheader */
#masthead.site-header {
	display: none;
}

.swopon-header {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	margin-bottom: 40px;
}

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

.swopon-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Bovenste rij: logo, zoekbalk, accountlinks */
.swopon-top-row {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 22px 0 18px;
}

.swopon-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.swopon-logo svg {
	height: 34px;
	width: auto;
	display: block;
}

.swopon-search {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 20px;
	border: 1px solid #d1d5db;
	border-radius: 9999px;
	background: #ffffff;
}

.swopon-search:focus-within {
	border-color: #3a874e;
	box-shadow: 0 0 0 3px rgba(58, 135, 78, 0.12);
}

.swopon-search-icon {
	width: 20px;
	height: 20px;
	color: #6b7280;
	flex: 0 0 auto;
}

.swopon-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: 16px;
	color: #111827;
	padding: 0;
	margin: 0;
	box-shadow: none;
}

.swopon-search-input::placeholder {
	color: #9ca3af;
}

.swopon-search-input::-webkit-search-decoration,
.swopon-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.swopon-account {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	white-space: nowrap;
}

.swopon-account a {
	color: #2e7d43;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	line-height: 1.3;
}

.swopon-account a:visited,
.swopon-account a:focus {
	color: #2e7d43;
}

.swopon-account a:hover,
.swopon-account a:focus-visible {
	color: #1d5a2f;
	text-decoration: underline;
}

.swopon-account-divider {
	width: 1px;
	height: 26px;
	background: #d1d5db;
}

/* Sportennavigatie */
.swopon-cat-nav {
	position: relative;
}

.swopon-cat-list {
	display: flex;
	align-items: stretch;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.swopon-cat-item {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.swopon-cat-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 14px;
	color: #374151;
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	border: none;
	background: none;
	cursor: pointer;
	font-family: inherit;
	border-bottom: 3px solid transparent;
}

/* Neutraliseer link-/focusstijlen van het thema.
   Bloggerly zet op "a:hover, a:focus" een blauwe outline; die gaf de
   verticale streepjes links en rechts van een menu-item. */
.swopon-cat-link:link,
.swopon-cat-link:visited,
.swopon-cat-link:active {
	color: #374151;
}

.swopon-header a:hover,
.swopon-header a:focus,
.swopon-header button:hover,
.swopon-header button:focus {
	outline: none;
	outline-offset: 0;
	box-shadow: none;
}

/* Klikken mag geen kleur achterlaten: focus volgt de normale kleur */
.swopon-cat-link:focus {
	color: #374151;
}

/* Hover en toetsenbordfocus tonen alleen een streepje onder het item */
.swopon-cat-link:hover,
.swopon-cat-link:focus-visible {
	color: #111827;
	border-bottom-color: #1f4d2c;
}

.swopon-cat-link.is-active,
.swopon-cat-link.is-active:link,
.swopon-cat-link.is-active:visited {
	color: #111827;
	font-weight: 600;
	border-bottom-color: #1f4d2c;
}

.swopon-cat-link svg {
	width: 18px;
	height: 18px;
}

/* Meer sporten dropdown
   Verankerd aan .swopon-cat-nav: de lijst zelf heeft overflow:hidden,
   dus binnen .swopon-more zou het menu worden afgeknipt. */
.swopon-more {
	position: static;
}

.swopon-more-menu {
	position: absolute;
	top: calc(100% + 2px);
	right: 0;
	z-index: 1000;
	min-width: 220px;
	max-height: 420px;
	overflow-y: auto;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.swopon-more-menu .swopon-cat-item {
	display: block;
}

.swopon-more-menu .swopon-cat-link {
	display: block;
	width: 100%;
	padding: 9px 18px;
	border-bottom: none;
}

.swopon-more-menu .swopon-cat-link:hover {
	background: #f3f4f6;
}

/* Donkere modus van het thema: header bewust licht houden, zoals op swop-on.com */
body.dark-mode .swopon-header,
[data-theme="dark"] .swopon-header {
	background: #ffffff;
}

/* Responsief */
@media (max-width: 900px) {
	.swopon-top-row {
		flex-wrap: wrap;
		gap: 16px;
		padding-top: 16px;
	}

	.swopon-search {
		order: 3;
		flex-basis: 100%;
	}

	.swopon-account {
		margin-left: auto;
	}
}

@media (max-width: 600px) {
	.swopon-header-inner {
		padding: 0 16px;
	}

	.swopon-logo svg {
		height: 28px;
	}

	.swopon-account a {
		font-size: 14px;
	}

	.swopon-cat-list {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.swopon-cat-list::-webkit-scrollbar {
		display: none;
	}
}
