/* assets/css/components/header.css */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    animation: searchFadeIn 0.2s ease;
}

.search-modal {
    width: 600px;
    max-width: 90vw;
    background: var(--color-bg-subtle, #18181b);
    border: 1px solid var(--color-border, #27272a);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: searchSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border, #27272a);
    padding: 0 1rem;
    gap: 0.5rem;
}

.search-input-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem 0.5rem;
    font-size: 1.1rem;
    color: var(--color-text-main, #fff);
    outline: none;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
    color: inherit;
}

.search-item:hover {
    background: rgba(var(--color-primary-h), var(--color-primary-s), 50%, 0.1);
}

.search-item .info .title { font-weight: 600; font-size: 0.95rem; color: var(--color-text-main); margin-bottom: 0; }
.search-item .info .desc { color: var(--color-text-mute); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 350px; }

@keyframes searchFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes searchSlideUp { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
