/**
 * Solr Suggest/Autocomplete Styles
 */

/* Dropdown container - appended to body */
.solr-suggest-dropdown {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
}

/* Suggestion groups */
.solr-suggest-group {
    padding: 8px 0;
}

.solr-suggest-group:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Group header (for "Top Results") */
.solr-suggest-header {
    padding: 8px 12px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.05em;
}

/* Individual suggestion items */
.solr-suggest-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.solr-suggest-item:hover,
.solr-suggest-item.solr-suggest-active {
    background-color: #f5f5f5;
}

/* Term suggestions - highlight matched text */
.solr-suggest-term strong {
    font-weight: 700;
    color: var(--loges-primary, #007bff);
}

/* Result items */
.solr-suggest-result a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.solr-suggest-result a:hover {
    color: var(--loges-primary, #007bff);
}

.solr-suggest-result em {
    font-style: normal;
    font-weight: 600;
    color: var(--loges-primary, #007bff);
}

/* Form state when suggest is open */
form.solr-suggest-open .search-field {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Header search specific */
#tx-solr-header-search-form .solr-suggest-dropdown {
    min-width: 300px;
    right: 0;
    left: auto;
}
