/* ============================================================
   STRAATZAKEN026 — Live Search
   ============================================================ */

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover,
.live-search-item.selected {
    background: var(--primary);
    color: var(--accent);
}

.live-search-item:hover .live-search-subtitle,
.live-search-item.selected .live-search-subtitle {
    color: rgba(255, 255, 255, 0.8);
}


.live-search-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.live-search-content {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
}

/* Loading state */
.live-search-loading {
    padding: 1rem;
    text-align: center;
}

.live-search-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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