/**
 * Search Autocomplete - CSS Styling
 */

/* Suggestions Container */
.search-autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #00838c;
    border-radius: 0 0 8px 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 131, 140, 0.15);
    display: none;
    margin-top: -1px;
}

/* Individual Suggestion Items */
.search-suggestion-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
}

.search-suggestion-item:hover,
.search-suggestion-item.selected {
    background: #f9f9f9;
    border-left: 3px solid #00838c;
    padding-left: 13px;
}

/* Suggestion Title */
.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: #00838c;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Suggestion Meta (Date) */
.suggestion-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.suggestion-date {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Suggestion Excerpt */
.suggestion-excerpt {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Empty State */
.search-suggestion-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Scrollbar Styling */
.search-autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-autocomplete-suggestions::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.search-autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #00838c;
    border-radius: 3px;
}

.search-autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #006064;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-autocomplete-suggestions {
        max-height: 300px;
    }
    
    .search-suggestion-item {
        padding: 10px 12px;
    }
    
    .suggestion-title {
        font-size: 13px;
    }
    
    .suggestion-excerpt {
        font-size: 12px;
    }
}

/* Dark Theme Support (for dark WordPress themes) */
@media (prefers-color-scheme: dark) {
    .search-autocomplete-suggestions {
        background: #222;
        border-color: #00838c;
    }
    
    .search-suggestion-item {
        color: #e0e0e0;
        border-bottom-color: #333;
    }
    
    .search-suggestion-item:hover,
    .search-suggestion-item.selected {
        background: #2a2a2a;
    }
    
    .suggestion-title {
        color: #00bfcf;
    }
    
    .suggestion-meta {
        color: #888;
    }
    
    .suggestion-date {
        background: #333;
    }
    
    .suggestion-excerpt {
        color: #b0b0b0;
    }
}
