.live-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
}

.live-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.live-search-input:focus {
    border-color: rgba(250, 70, 22, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 60%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.search-loader {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.spinner {
    animation: rotate 1s linear infinite;
}

.spinner circle {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

.results-container {
    padding: 10px;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.search-result-item:hover {
    background-color: #f8f9fa;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.result-title:hover {
    color: #0073aa;
}

.result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.result-meta {
    font-size: 12px;
    color: #999;
}

.post-type-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bb-primary-color);
    color: white;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    margin-right: 8px;
}

.relevance-score {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.highlight {
    background-color: #fff3cd;
    font-weight: 600;
}
