/* Root wrapper */
.alps-wrapper {
    position: relative;
    z-index: 99999;
}

/* Search bar */
.alps-search-bar {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.alps-category,
.alps-search-input,
.alps-search-btn {
    padding: 10px;
    border: none;
}

.alps-category {
    background: #f9f9f9;
}

.alps-search-input {
    flex: 1;
    outline: none;
}

.alps-search-btn {
    background: #222;
    color: #fff;
    cursor: pointer;
}

/* Results dropdown */
.alps-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    z-index: 999999;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    transition: opacity 0.15s ease;
}

/* Result item */
.alps-result-item {
    border-bottom: 1px solid #eee;
    outline: none;
}

.alps-result-item:last-child {
    border-bottom: none;
}

.alps-result-item a {
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

/* Thumbnail */
.alps-thumb img {
    width: 60px;
    height: auto;
    border-radius: 4px;
}

/* Active (keyboard navigation) */
.alps-active {
    background: #f0f0f0;
}

/* Loader */
.alps-loading {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* No results message */
.alps-no-results {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Highlight searched keyword */
.alps-results mark {
    background: #ffe58a;
    padding: 0 2px;
    border-radius: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .alps-results {
        max-height: 260px;
    }
}
