/**
 * DarkBooks - Live Autocomplete Dropdown Styles
 * Occult & Esoteric Library Theme
 */

.search-suggest-panel {
	position: absolute;
	z-index: 999999;
	box-sizing: border-box;
	background: #0d1015;
	border: 1px solid #4a3b2c;
	border-radius: 4px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(201, 158, 78, 0.2);
	color: #c9d2dc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	overflow: hidden;
}

.search-suggest-scroller {
	max-height: 480px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #4a3b2c #0d1015;
}

.search-suggest-scroller::-webkit-scrollbar {
	width: 6px;
}

.search-suggest-scroller::-webkit-scrollbar-track {
	background: #0d1015;
}

.search-suggest-scroller::-webkit-scrollbar-thumb {
	background: #4a3b2c;
	border-radius: 3px;
}

.search-suggest-notice {
	padding: 8px 14px;
	background: #141820;
	border-bottom: 1px solid #232a35;
	color: #9cb1c9;
	font-size: 11.5px;
	font-style: italic;
}

.search-suggest-notice strong {
	color: #e5c178;
	font-weight: 600;
}

.search-suggest-section {
	padding: 6px 0;
	border-bottom: 1px solid #1a1f29;
}

.search-suggest-section:last-of-type {
	border-bottom: none;
}

.search-suggest-section-title {
	padding: 6px 14px 4px;
	color: #7b8896;
	font-family: "IM Fell English SC", Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.search-suggest-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	color: inherit;
	text-decoration: none;
	transition: background 0.15s ease, border-left-color 0.15s ease;
	border-left: 3px solid transparent;
	cursor: pointer;
}

.search-suggest-item:hover,
.search-suggest-item.is-selected {
	background: linear-gradient(90deg, rgba(201, 158, 78, 0.16) 0%, rgba(13, 16, 21, 0.95) 100%);
	border-left-color: #c99e4e;
	color: #ffffff;
}

.search-suggest-cover {
	flex: 0 0 38px;
	height: 52px;
	border-radius: 2px;
	overflow: hidden;
	background: #161b24;
	border: 1px solid #33261a;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-suggest-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.search-suggest-cover-blank {
	font-size: 20px;
	opacity: 0.4;
}

.search-suggest-avatar {
	flex: 0 0 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	background: #161b24;
	border: 1px solid #5a4632;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-suggest-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.search-suggest-avatar-blank {
	font-size: 22px;
	color: #c99e4e;
}

.search-suggest-info {
	flex: 1 1 auto;
	min-width: 0;
}

.search-suggest-title,
.search-suggest-name {
	color: #e5edf5;
	font-family: "IM Fell English", Georgia, serif;
	font-size: 14.5px;
	font-style: italic;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-suggest-item:hover .search-suggest-title,
.search-suggest-item.is-selected .search-suggest-title,
.search-suggest-item:hover .search-suggest-name,
.search-suggest-item.is-selected .search-suggest-name {
	color: #ffeed0;
}

.search-suggest-author-line {
	margin-top: 2px;
	color: #bfa16f;
	font-size: 11.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-suggest-sub {
	margin-top: 2px;
	color: #8c98a8;
	font-size: 11px;
}

.search-suggest-meta {
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
}

.search-suggest-badge {
	display: inline-block;
	padding: 1px 6px;
	background: #1a1e27;
	border: 1px solid #4a3b2c;
	border-radius: 2px;
	color: #d6b26d;
	font-family: "IM Fell English SC", Georgia, serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 9.5px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 140px;
}

.search-suggest-specs {
	color: #7d8b9b;
}

.search-suggest-mark {
	background: rgba(201, 158, 78, 0.32);
	color: #ffffff;
	padding: 0 2px;
	border-radius: 2px;
	font-weight: 600;
}

.search-suggest-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #12161d;
	border-top: 1px solid #232a35;
	color: #c99e4e;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
	border-left: 3px solid transparent;
}

.search-suggest-footer:hover,
.search-suggest-footer.is-selected {
	background: #181d26;
	color: #ffd88a;
	border-left-color: #c99e4e;
}

.search-suggest-footer strong {
	color: #ffffff;
}

.search-suggest-arrow {
	font-size: 14px;
	transition: transform 0.15s ease;
}

.search-suggest-footer:hover .search-suggest-arrow,
.search-suggest-footer.is-selected .search-suggest-arrow {
	transform: translateX(3px);
}

.search-suggest-empty {
	padding: 16px 14px 0;
	text-align: center;
}

.search-suggest-empty-text {
	padding-bottom: 12px;
	color: #8c98a8;
	font-size: 12.5px;
}

.search-suggest-empty-text strong {
	color: #e5edf5;
}

.search-suggest-empty .search-suggest-footer {
	margin: 0 -14px;
	justify-content: center;
	border-radius: 0 0 3px 3px;
}
