/* =========================================================
   Kurs Search widget
   ========================================================= */

.kurs-search-widget {
	position: relative;
	width: 260px;
	max-width: 100%;
}

.kurs-search-form {
	display: flex;
	align-items: stretch;
}

.kurs-search-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	padding: 10px 16px;
	font-family: var( --kurs-font-family-body );
	font-size: var( --kurs-font-text-small );
	background-color: #f2f2f2;
	color: #111111;
	border-radius: 20px 0 0 20px;
}

.kurs-search-input::placeholder {
	color: #888888;
}

.kurs-search-submit {
	border: none;
	cursor: pointer;
	padding: 0 18px;
	background-color: #111111;
	color: #ffffff;
	border-radius: 0 20px 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.kurs-search-submit-label {
	font-family: var( --kurs-font-family-body );
	font-size: var( --kurs-font-text-small );
	font-weight: 600;
}

.kurs-search-submit:hover {
	opacity: 0.85;
}

.kurs-search-submit svg,
.kurs-search-submit i {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* --- Dropdown s rezultatima --- */
/* Dropdown je uvijek bijela kartica, pa tekst mora biti taman bez
   obzira na boju teksta konteksta u kojem widget stoji. Header u
   "dark-bg" modu ima color:#ffffff, sto je naslove rezultata cinilo
   nevidljivima (bijelo na bijelom) - vidio se samo datum, koji ima
   vlastitu boju. Isti razlog kao kod .kurs-nav-list .sub-menu a. */
.kurs-search-results {
	color: #3A2E22;
	list-style: none;
	margin: 8px 0 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.15 );
	max-height: 340px;
	overflow-y: auto;
	z-index: 200;
}

.kurs-search-results[hidden] {
	display: none;
}

.kurs-search-results li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.kurs-search-results li.is-selected,
.kurs-search-results li:hover {
	background-color: #f2f2f2;
}

.kurs-search-results li img {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.kurs-search-results .kurs-result-text {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kurs-search-results .kurs-result-title {
	font-family: var( --kurs-font-family-body );
	font-size: var( --kurs-font-text-small );
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kurs-search-results .kurs-result-date {
	font-family: var( --kurs-font-family-body );
	font-size: var( --kurs-font-text-small );
	color: #888888;
}

.kurs-search-results .kurs-no-results {
	padding: 10px;
	font-family: var( --kurs-font-family-body );
	font-size: var( --kurs-font-text-small );
	color: #888888;
	cursor: default;
}

.kurs-search-results .kurs-no-results:hover {
	background: none;
}

/* Mobitel - polje puna širina wrappera */
@media ( max-width: 600px ) {
	.kurs-search-widget {
		width: 100%;
	}
}

.kurs-search-results .kurs-result-title {
	color: #3A2E22;
}
