/* Wikid Header Search — frontend styles */

.wks-trigger {
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 0;
}
.wks-trigger:hover,
.wks-trigger:focus-visible {
	background: var(--wks-trigger-hover-bg, transparent);
	color: var(--wks-accent, #f89a36);
	outline: none;
}

.wks-menu-item {
	display: inline-flex;
	align-items: center;
}

.wks-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 10vh 20px 20px;
}
.wks-modal[hidden] {
	display: none;
}
.wks-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	backdrop-filter: blur(2px);
}
.wks-panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	background: var(--wks-panel-bg, #fff);
	border-radius: 14px;
	padding: 32px 28px 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
	animation: wks-in 0.18s ease-out;
}
@keyframes wks-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}
.wks-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	color: var(--wks-muted, #59595b);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.wks-close:hover,
.wks-close:focus-visible {
	background: var(--wks-subtle-bg, #f0f0f0);
	color: var(--wks-accent, #f89a36);
	outline: none;
}
.wks-title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	color: var(--wks-text, #333);
	letter-spacing: -0.01em;
	line-height: 1.2;
}
.wks-form {
	margin: 0;
}
.wks-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--wks-input-bg, #fff9e1);
	border: 1px solid var(--wks-input-border, #f6b94a);
	border-radius: 10px;
	padding: 4px 4px 4px 42px;
}
.wks-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wks-muted, #59595b);
	pointer-events: none;
}
.wks-input {
	flex: 1;
	background: transparent;
	border: 0;
	padding: 10px 8px;
	font-size: 16px;
	color: var(--wks-text, #333);
	outline: none;
	min-width: 0;
	font-family: inherit;
}
.wks-input::placeholder {
	color: var(--wks-muted, #59595b);
	opacity: 0.85;
}
.wks-submit {
	background: var(--wks-accent, #f89a36);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
	font-family: inherit;
}
.wks-submit:hover,
.wks-submit:focus-visible {
	background: var(--wks-accent-dark, #d97f1d);
	outline: none;
}

.wks-results {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	max-height: 360px;
	overflow-y: auto;
	border-radius: 10px;
	border: 1px solid var(--wks-border, #e5e5e5);
}
.wks-results[hidden] {
	display: none;
}
.wks-result {
	margin: 0;
	padding: 0;
}
.wks-result::before {
	content: none !important;
}
.wks-result a {
	display: block;
	padding: 12px 16px;
	color: var(--wks-text, #333);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
	border-bottom: 1px solid var(--wks-border, #f0f0f0);
	transition: background 0.12s ease, color 0.12s ease;
}
.wks-result:last-child a {
	border-bottom: 0;
}
.wks-result a:hover,
.wks-result.is-active a,
.wks-result a:focus-visible {
	background: var(--wks-hover-bg, #fff9e1);
	color: var(--wks-accent, #f89a36);
	outline: none;
}
.wks-result mark {
	background: transparent;
	color: inherit;
	font-weight: 700;
}

.wks-status {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--wks-muted, #59595b);
}

.wks-results::-webkit-scrollbar { width: 6px; }
.wks-results::-webkit-scrollbar-track { background: transparent; }
.wks-results::-webkit-scrollbar-thumb {
	background: var(--wks-border, #cccccc);
	border-radius: 3px;
}

@media (max-width: 600px) {
	.wks-modal {
		padding: 0;
		align-items: stretch;
	}
	.wks-panel {
		max-width: 100%;
		border-radius: 0;
		min-height: 100vh;
		padding-top: 56px;
	}
	.wks-submit {
		padding: 10px 12px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wks-panel { animation: none; }
	.wks-result a,
	.wks-submit,
	.wks-close,
	.wks-trigger {
		transition: none;
	}
}
