/**
 * Search Styles (Trending & Autocomplete)
 */

/* Trending bar */
.sse-trending-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.sse-trending-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sse-trending-label::before {
    content: '🔥';
}

.sse-trending-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sse-trending-term {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.sse-trending-term:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Autocomplete dropdown */
.sse-autocomplete-wrapper {
    position: relative;
}

.sse-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.sse-autocomplete-dropdown.active {
    display: block;
    animation: sse-dropdown-in 0.2s ease;
}

@keyframes sse-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sse-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.sse-autocomplete-item:hover {
    background: #f8fafc;
}

.sse-autocomplete-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.sse-autocomplete-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.sse-autocomplete-info {
    flex: 1;
}

.sse-autocomplete-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 2px;
}

.sse-autocomplete-title mark {
    background: #fef3c7;
    padding: 0 2px;
}

.sse-autocomplete-price {
    font-size: 13px;
    color: #16a34a;
    font-weight: 600;
}

.sse-autocomplete-type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

/* Category item */
.sse-autocomplete-item.sse-category {
    background: #f8fafc;
}

.sse-autocomplete-item.sse-category .sse-autocomplete-title::before {
    content: '📁 ';
}

/* Loading state */
.sse-autocomplete-loading {
    padding: 20px;
    text-align: center;
    color: #888;
}

/* No results */
.sse-autocomplete-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}