/**
 * Live Search Styles
 */

.euro-live-search-wrapper {
	position: relative;
	display: inline-block;
}

/* Search Button */
.euro-live-search-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	background-color: transparent !important;
	color: #000000 !important;
	border: none !important;
	cursor: pointer !important;
}

.euro-live-search-button svg {
	width: 22px !important;
	height: 22px !important;
}

.euro-live-search-button img {
	width: 22px !important;
	height: 22px !important;
}

/* Search Container */
.euro-live-search-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 60px 20px 20px;
	overflow-y: auto;
}

.euro-live-search-container.show {
	display: flex;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Input Wrapper */
.euro-live-search-input-wrapper {
	position: relative;
	width: 100%;
	max-width: 700px;
	margin-bottom: 20px;
}

/* Search Input */
.euro-live-search-input {
	width: 100%;
	padding: 15px 50px 15px 20px;
	font-size: 18px;
	border: 2px solid #0073aa;
	border-radius: 8px;
	outline: none;
	background-color: #ffffff;
	transition: border-color 0.3s ease;
}

.euro-live-search-input:focus {
	border-color: #005a87;
}

/* Close Button */
.euro-live-search-close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.euro-live-search-close:hover {
	color: #0073aa;
}

/* Results Container */
.euro-live-search-results {
	width: 100%;
	max-width: 700px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-height: 500px;
	overflow-y: auto;
}

/* Loading State */
.euro-live-search-results.loading {
	padding: 20px;
	text-align: center;
	color: #666;
}

/* Message (No results or minimum chars) */
.euro-live-search-message {
	padding: 20px;
	text-align: center;
	color: #666;
	font-size: 16px;
}

/* Result Item */
.euro-live-search-result-item {
	display: flex;
	gap: 15px;
	padding: 15px;
	border-bottom: 1px solid #e0e0e0;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease;
}

.euro-live-search-result-item:last-child {
	border-bottom: none;
}

.euro-live-search-result-item:hover {
	background-color: #f5f5f5;
}

/* Result Thumbnail */
.euro-live-search-result-thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
	background-color: #e0e0e0;
}

.euro-live-search-result-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.euro-live-search-result-no-thumbnail {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e0e0e0;
	border-radius: 4px;
	color: #999;
	font-size: 14px;
}

/* Result Content */
.euro-live-search-result-content {
	flex: 1;
	min-width: 0;
}

.euro-live-search-result-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #0073aa;
	line-height: 1.3;
}

.euro-live-search-result-item:hover .euro-live-search-result-title {
	color: #005a87;
}

.euro-live-search-result-excerpt {
	font-size: 14px;
	color: #666;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.euro-live-search-result-date {
	font-size: 12px;
	color: #999;
}

/* Responsive */
@media (max-width: 768px) {
	.euro-live-search-container {
		padding: 40px 15px 15px;
	}

	.euro-live-search-input {
		font-size: 16px;
		padding: 12px 45px 12px 15px;
	}

	.euro-live-search-result-item {
		flex-direction: column;
		gap: 10px;
	}

	.euro-live-search-result-thumbnail,
	.euro-live-search-result-no-thumbnail {
		width: 100%;
		height: 150px;
	}

	.euro-live-search-result-title {
		font-size: 16px;
	}
}

/* Scrollbar Styling */
.euro-live-search-results::-webkit-scrollbar {
	width: 8px;
}

.euro-live-search-results::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.euro-live-search-results::-webkit-scrollbar-thumb {
	background: #0073aa;
	border-radius: 4px;
}

.euro-live-search-results::-webkit-scrollbar-thumb:hover {
	background: #005a87;
}
