/* ============================================================
   AKKC Expanding Search v1.0.1 — CSS bazë strukturore
   Ngjyrat, madhësitë dhe shpejtësia vijnë nga kontrollet
   e Elementor-it ({{WRAPPER}} selectors).

   Guard-e kundër temës:
   - appearance:none + background transparent në butona
   - line-height normal + height 100% te inputi
============================================================ */

.akkc-exps {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	--exps-width: 260px;
	--exps-speed: 350ms;
	--exps-gap: 8px;
}

.akkc-exps-form {
	display: flex;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Kur hapet, wrapper-i ngrihet mbi elementët fqinjë të header-it */
.akkc-exps.is-open {
	z-index: 99991;
}

/* ---------- FUSHA (kontenieri i inputit) ----------
   ABSOLUTE, e ankoruar te ikona — ikona NUK lëviz kurrë.
   dir-left:  fusha del nga ana e MAJTË e ikonës (drejt majtas)
   dir-right: fusha del nga ana e DJATHTË e ikonës            */
.akkc-exps-field {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	width: 0;
	overflow: hidden;
	opacity: 0;
	transition: width var(--exps-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            opacity calc(var(--exps-speed) * 0.6) ease;
	box-sizing: border-box;
	z-index: 2;
}

.akkc-exps--dir-left  .akkc-exps-field { right: calc(100% + var(--exps-gap)); }
.akkc-exps--dir-right .akkc-exps-field { left:  calc(100% + var(--exps-gap)); }

.akkc-exps.is-open .akkc-exps-field {
	width: var(--exps-width);
	opacity: 1;
}

/* ---------- INPUTI ---------- */
.akkc-exps-input,
.akkc-exps-field input[type="search"] {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 100% !important;              /* guard: tema */
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 !important;
	padding: 0 6px 0 16px !important;
	line-height: normal !important;       /* guard: tema 38px */
	color-scheme: light;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.akkc-exps-input::-webkit-search-decoration,
.akkc-exps-input::-webkit-search-cancel-button,
.akkc-exps-input::-webkit-search-results-button,
.akkc-exps-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

/* ---------- BUTONAT (guard i plotë kundër crimson të temës) ---------- */
.akkc-exps-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: color 0.2s ease, background-color 0.2s ease,
	            transform 0.2s ease, opacity 0.2s ease;
}

.akkc-exps-btn:focus,
.akkc-exps-btn:active {
	outline: none !important;
	box-shadow: none !important;
}

/* Toggle (lupa) */
.akkc-exps-toggle:hover { transform: scale(1.06); }

/* Close (X) — brenda fushës, djathtas */
.akkc-exps-close {
	padding: 0 10px !important;
	background: transparent !important;
}

.akkc-exps-close:hover,
.akkc-exps-close:focus,
.akkc-exps-close:active {
	background: transparent !important;
	transform: rotate(90deg);
}

/* SVG-të default */
.akkc-exps-svg {
	display: block;
	stroke-width: 2;
}

/* ---------- REZULTATET LIVE ---------- */
.akkc-exps-results {
	position: absolute;
	top: calc(100% + 10px);
	width: var(--exps-width);
	min-width: 240px;
	max-height: 60vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
	z-index: 99990;
	display: none;
	padding: 6px;
	box-sizing: border-box;
}

/* Paneli rreshtohet me fushën (jo me ikonën) */
.akkc-exps--dir-left  .akkc-exps-results { right: calc(100% + var(--exps-gap)); }
.akkc-exps--dir-right .akkc-exps-results { left:  calc(100% + var(--exps-gap)); }

.akkc-exps-results.has-content { display: block; }

/* Rreshti i statusit */
.akkc-exps-status {
	font-size: 12px;
	color: #9a9a9a;
	padding: 12px 10px;
}

/* Rezultati */
.akkc-exps-result {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px;
	border-radius: 8px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.akkc-exps-result-title {
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
}

.akkc-exps-result-type {
	font-size: 9px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	flex-shrink: 0;
}

/* Shiko të gjitha */
.akkc-exps-viewall {
	display: block !important;
	text-align: center;
	font-size: 11px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none !important;
	padding: 12px 0 8px;
	transition: opacity 0.15s;
}

.akkc-exps-viewall:hover { opacity: 0.65; }

/* ---------- MOBILE ---------- */
@media (max-width: 767px) {
	.akkc-exps { --exps-width: min(var(--exps-width), 72vw); }

	.akkc-exps-results {
		width: min(var(--exps-width), 86vw);
		min-width: 220px;
	}

	.akkc-exps-result-type { display: none; }
}
