/**
 * TrinityDC Network Search Autocomplete
 * Plugin Version: 0.1.1
 * File: assets/css/autocomplete-custom.css
 * File Version: 0.1.1-001
 * Last Updated: 2025-10-12
 * 
 * Purpose: Custom styling for autocomplete dropdown
 */

/* Override Awesomplete default styling to match Trinity search form */
.awesomplete {
    display: block;
}

.awesomplete > ul {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    padding: 0;
    list-style: none;
    z-index: 999999; /* Ensure it appears above search overlay */
}

.awesomplete > ul[hidden] {
    display: none;
}

/* Individual suggestion items */
.awesomplete > ul > li {
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
}

/* Remove border from last item */
.awesomplete > ul > li:last-child {
    border-bottom: none;
}

/* Hover state */
.awesomplete > ul > li:hover,
.awesomplete > ul > li[aria-selected="true"] {
    background: #f5f5f5;
}

/* Highlighted text within suggestions */
.awesomplete mark {
    background: #fff3cd;
    color: #333333;
    font-weight: 600;
    padding: 0;
}

/* Details container for people/office results (Phase 2) */
.trinitydc-nsa-details {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trinitydc-nsa-details-inner h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    color: #333333;
}

.trinitydc-nsa-details-inner p {
    margin: 4px 0;
    color: #666666;
    font-size: 14px;
}

.trinitydc-nsa-details-inner p.title {
    font-style: italic;
    color: #888888;
    margin-bottom: 12px;
}

.trinitydc-nsa-details-inner a {
    color: #0066cc;
    text-decoration: none;
}

.trinitydc-nsa-details-inner a:hover {
    text-decoration: underline;
}

/* Ensure proper positioning within search overlay */
#search-box .awesomplete {
    position: relative;
}

#search-box .awesomplete > ul {
    position: absolute;
    width: 100%;
}