/**
 * site-search.css — Styles for the live search suggestions dropdown
 */

/* ── Dropdown container ── */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 400px;
    overflow-y: auto;
}

/* ── Individual suggestion item ── */
.search-suggestion-item a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
    gap: 10px;
    min-height: 48px;
}

.search-suggestion-item a:hover,
.search-suggestion-item.active a {
    background: #f0f6fc;
}

/* ── Source type badge ── */
.suggestion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff;
    font-size: 12px;
}

/* ── Text block ── */
.suggestion-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    text-align: left;
}

/* ── Override any inherited centering from parent form/container ── */
.search-suggestions-dropdown,
.search-suggestions-dropdown * {
    text-align: left;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.suggestion-excerpt {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    text-align: left;
}

/* ── Empty state ── */
.search-suggestion-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ── View all results link ── */
.search-suggestion-viewall a {
    display: block;
    padding: 10px 14px;
    text-align: center !important;
    font-size: 13px;
    font-weight: 600;
    color: #0270ba;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: background 0.15s;
}

.search-suggestion-viewall a:hover {
    background: #f0f6fc;
}
