/**
 * Search Suggestions Dropdown Styles
 * Seven Scribes Theme
 */

/* -------------------------------------------------------------------------- */
/*                        Search Suggestions Dropdown                         */
/* -------------------------------------------------------------------------- */

.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: -4px;
}

body.dark-theme .search-suggestions-dropdown {
    background: #252525;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.search-suggestion-item {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

body.dark-theme .search-suggestion-item {
    color: #e0e0e0;
    border-bottom: 1px solid #333;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #f8f9fa;
}

body.dark-theme .search-suggestion-item:hover,
body.dark-theme .search-suggestion-item.active {
    background-color: #2a2a2a;
}

.search-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.suggestion-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

body.dark-theme .suggestion-title {
    color: #fff;
}

.suggestion-language {
    font-size: 13px;
    color: #666;
}

body.dark-theme .suggestion-language {
    color: #999;
}

.search-field.searching {
    /* Simple loading indicator - just keep the field as is, no spinning */
    opacity: 0.9;
}

/* Custom scrollbar for suggestions dropdown */
.search-suggestions-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

body.dark-theme .search-suggestions-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body.dark-theme .search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #444;
}

body.dark-theme .search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-suggestions-dropdown {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .search-suggestions-dropdown {
        max-height: 250px;
    }
    
    .search-suggestion-item {
        padding: 10px 12px;
    }
    
    .suggestion-title {
        font-size: 14px;
    }
    
    .suggestion-language {
        font-size: 12px;
    }
}

