/* Semsearch Search Results Dropdown */
:root {
    --semsearch-bg:           #fff;
    --semsearch-border:       #ddd;
    --semsearch-radius:       6px;
    --semsearch-shadow:       0 4px 16px rgba(0,0,0,.12);
    --semsearch-hover-bg:     #f5f7fa;
    --semsearch-highlight-bg: #fff3cd;
}

.semsearch-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999;
    background: var(--semsearch-bg);
    border: 1px solid var(--semsearch-border);
    border-top: none;
    border-radius: 0 0 var(--semsearch-radius) var(--semsearch-radius);
    box-shadow: var(--semsearch-shadow);
    max-height: 420px;
    overflow-y: auto;
}

.semsearch-results.semsearch-open {
    display: block;
}

.semsearch-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.semsearch-result-item {
    border-bottom: 1px solid #f0f0f0;
}

.semsearch-result-item:last-child {
    border-bottom: none;
}

.semsearch-result-link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.semsearch-result-item:hover .semsearch-result-link,
.semsearch-result-item.semsearch-active .semsearch-result-link {
    background: var(--semsearch-hover-bg);
}

.semsearch-result-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.semsearch-result-excerpt {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

mark.semsearch__highlight {
    background: var(--semsearch-highlight-bg);
    color: #1a1a1a;
    font-weight: 600;
    padding: 0 1px;
    border-radius: 2px;
}

.semsearch-no-results {
    padding: 14px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.semsearch-results-footer {
    padding: 6px 14px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.semsearch-mode-badge {
    font-size: 11px;
    color: #999;
}

/* Loading dots */
.semsearch-loading {
    padding: 14px;
    text-align: center;
}

.semsearch-loading span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 2px;
    animation: semsearch-bounce .6s infinite alternate;
}

.semsearch-loading span:nth-child(2) { animation-delay: .2s; }
.semsearch-loading span:nth-child(3) { animation-delay: .4s; }

@keyframes semsearch-bounce {
    to { background: #666; transform: translateY(-3px); }
}
