
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-list {
    padding: 8px 0;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.active {
    background: #f3f4f6;
}

.result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 6px;
    color: #3b82f6;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-type {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-item mark {
    background: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 2px;
}

.search-view-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.search-view-all:hover {
    background: #f9fafb;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 24px;
    text-align: center;
    color: #6b7280;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.search-no-results i,
.search-error i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.search-error {
    color: #ef4444;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-autocomplete {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        max-height: calc(100vh - 80px);
    }
    
    .result-description {
        -webkit-line-clamp: 1;
    }
}
