/* search.css - 搜索组件样式已在 main.css 中定义 */
/* 此文件预留扩展 */

/* 加载动画 */
.search-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.search-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 搜索建议下拉 */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background var(--transition);
}

.suggestion-item:hover {
    background: var(--bg-tag);
}
