/* TT-MIM canlı arama dropdown – child override stilleri
   Parent tema'nın .live-search-results container'ı dark scheme'de siyah arka
   plan veriyordu. Burada container'ı zorla aydınlık, modern bir kart hâline
   getiriyor; içeriği de SmartMag'in dark/light scheme'inden bağımsız tutarlı
   şekilde stilize ediyoruz. */

.smart-head-search .live-search-results,
.live-search-results {
	background: #ffffff !important;
	color: #1f2937 !important;
	width: 600px !important;
	max-width: calc(100vw - 24px);
	padding: 10px !important;
	border-radius: 12px !important;
	border: 1px solid #e5e7eb !important;
	box-shadow: 0 18px 48px rgba(15, 37, 67, 0.18), 0 4px 12px rgba(15, 37, 67, 0.08) !important;
	right: 0;
	left: auto;
	overflow: hidden;
}

.s-dark .live-search-results,
.search-modal .live-search-results {
	background: #ffffff !important;
	color: #1f2937 !important;
	border-color: #e5e7eb !important;
}

.ttmim-live-search {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttmim-live-search__item {
	border-bottom: 1px solid #f1f3f6;
}
.ttmim-live-search__item:last-child {
	border-bottom: 0;
}

.ttmim-live-search__link {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 10px 12px !important;
	color: #1f2937 !important;
	text-decoration: none !important;
	border-radius: 8px;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.ttmim-live-search__link:hover,
.ttmim-live-search__link:focus {
	background-color: #f3f5f8 !important;
	color: #111827 !important;
}

.ttmim-live-search__thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f5f8;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ttmim-live-search__thumb-img,
.ttmim-live-search__thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
}
.ttmim-live-search__thumb-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eef0f3 0%, #d6dae2 100%);
}

.ttmim-live-search__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ttmim-live-search__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ttmim-live-search__type {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #6b7280;
	margin-top: 2px;
}
.ttmim-live-search__item--product .ttmim-live-search__type {
	color: #2AB391;
}
.ttmim-live-search__item--post .ttmim-live-search__type {
	color: #2563eb;
}
.ttmim-live-search__item--page .ttmim-live-search__type {
	color: #0F2543;
}

/* "Tüm Sonuçlar" alt çubuğu */
.live-search-results .view-all {
	margin: 8px -10px -10px !important;
	border-top: 1px solid #f1f3f6 !important;
	background: #fafbfc !important;
}
.live-search-results .view-all a {
	display: block !important;
	text-align: center !important;
	padding: 12px 14px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	color: #2AB391 !important;
	background: transparent !important;
	border: 0 !important;
	text-decoration: none !important;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.live-search-results .view-all a:hover {
	background: #f3f5f8 !important;
	color: #1F9C7C !important;
}

/* Sonuç yok mesajı */
.live-search-results .no-results {
	display: block !important;
	float: none !important;
	text-align: center !important;
	padding: 22px 14px !important;
	font-size: 13px !important;
	color: #6b7280 !important;
}

/* Header arama kutusunu biraz daha kullanışlı genişlikte göster */
.smart-head-search .query {
	min-width: 200px !important;
}
.smart-head-search .query:focus {
	min-width: 260px !important;
}

/* Mobil */
@media (max-width: 600px) {
	.smart-head-search .live-search-results,
	.live-search-results {
		width: calc(100vw - 24px) !important;
		right: 12px;
	}
}
