.search-widget {
    position: relative;
}

.search-widget .input-group {
    position: relative;
}

.search-widget #blog-search-input {
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
}

.search-widget #search-clear-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-results {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

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

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

.search-result-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #212529;
}

.search-result-excerpt {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.search-result-meta {
    font-size: 0.75rem;
    color: #868e96;
}

.search-result-item a:hover .search-result-title {
    color: #0056b3;
}

.search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0 2px;
    font-weight: 500;
}

.search-loading {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
}

.search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
