/* Search Dropdown Styles */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.search-section {
    padding: 0 0 0.5rem 0;
}

.search-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tj-color-text-body-2);
    padding: 0.5rem 1.5rem;
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.search-item-link:hover {
    background: #f8f9fa;
    border-left-color: var(--tj-color-theme-primary);
}

.search-item-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tj-color-heading-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--tj-color-text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.search-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: var(--tj-color-theme-primary);
    font-size: 0.9rem;
}

.search-item-link:hover .search-arrow {
    opacity: 1;
    transform: translateX(0);
}

.search-loading, .search-no-results, .search-error {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--tj-color-text-body);
}

/* Scrollbar styling for the dropdown */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}
.search-results-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.search-highlight {
    background-color: #fff59d; /* Light yellow */
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

/* Highlight for search terms */
.search-highlight {
    background-color: #fef08a; /* Yellow-200 equivalent */
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
