/* =====================================================
   PREMIUM SEARCH SUGGESTIONS UI
===================================================== */

.search-suggestion-wrapper {
    position: relative;
    width: 100%;
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.suggestion-group-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    padding: 10px 20px 5px;
    font-weight: 600;
    letter-spacing: 1px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
}

.suggestion-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.suggestion-thumb {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f0f0;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
    display: block;
}

.suggestion-meta {
    font-size: 11px;
    color: #999;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Specific highlight for search matches */
.search-match {
    color: #eb2b2b;
    /* Or the module's primary color */
    font-weight: 700;
}

/* Loading Spinner */
.suggestion-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.spinner-mini {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #eb2b2b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}