/**
 * Search Dropdown Styles
 * Source: https://www.w3schools.com/css/
 */

.search {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 400px;
    background: #282828;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
}

.search-section {
    padding: 12px;
    border-bottom: 1px solid #404040;
}

.search-section:last-of-type {
    border-bottom: none;
}

.search-section h4 {
    color: #b3b3b3;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-item:hover {
    background: #3e3e3e;
}

.search-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #404040;
    border-radius: 4px;
}

.search-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.search-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-sub {
    color: #b3b3b3;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    padding: 24px;
    text-align: center;
    color: #b3b3b3;
}
