
/* Search UI */
.search-fab {
    position: fixed; bottom: 24px; right: 24px;
    background: #111; color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 20px; border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    font-family: inherit; font-size: 14px;
    cursor: pointer; z-index: 9998;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-fab:hover { background: #222; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.search-fab kbd {
    background: rgba(255,255,255,0.15);
    padding: 3px 6px; border-radius: 4px; font-size: 11px; color: #ccc;
    font-family: monospace;
}

.search-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    z-index: 9999; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 12vh; opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.search-overlay.active { opacity: 1; pointer-events: auto; }

.search-modal {
    background: #181818; border: 1px solid #333; border-radius: 12px;
    width: 100%; max-width: 650px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; overflow: hidden;
    transform: scale(0.96) translateY(-10px); transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-overlay.active .search-modal { transform: scale(1) translateY(0); }

.search-modal input {
    width: 100%; padding: 22px 24px; font-size: 1.15rem;
    background: transparent; border: none; color: #fff;
    border-bottom: 1px solid #2a2a2a; outline: none;
    font-family: inherit;
}
.search-modal input::placeholder { color: #666; }

.search-results {
    max-height: 60vh; overflow-y: auto; padding: 8px 0;
}
.search-results::-webkit-scrollbar { width: 8px; }
.search-results::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.search-item {
    padding: 14px 24px; display: block; text-decoration: none; color: #ccc;
    border-left: 3px solid transparent; transition: background 0.1s;
}
.search-item:hover { background: #222; border-left-color: #007bff; }
.search-item h4 { margin: 0 0 6px 0; font-size: 1rem; color: #fff; font-weight: 500; }
.search-item p { margin: 0; font-size: 0.85rem; color: #888; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-highlight { color: #fff; background: rgba(0, 123, 255, 0.3); padding: 0 2px; border-radius: 2px; }
.search-empty { padding: 30px; text-align: center; color: #666; font-size: 0.95rem; }
