
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #1E212B;
    border: 1px solid rgba(147, 156, 177, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 500px;
    overflow-y: auto;
    z-index: 10000;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(147, 156, 177, 0.3);
    border-radius: 4px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 156, 177, 0.5);
}


.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #939cb1;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.search-no-results p {
    margin: 0;
    font-size: 14px;
}


.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(147, 156, 177, 0.1);
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: rgba(255, 166, 13, 0.1);
}

.search-result-item:active {
    background-color: rgba(255, 166, 13, 0.15);
}


.search-result-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 166, 13, 0.15);
    border-radius: 6px;
    color: #FFA60D;
    font-size: 16px;
}


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

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.4;
}

.search-result-desc {
    font-size: 13px;
    color: #939cb1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-result-rating {
    font-size: 12px;
    color: #ffd700;
    margin-top: 4px;
}


.search-highlight,
mark.search-highlight {
    background-color: rgba(255, 166, 13, 0.3);
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}


#elSearchWrapper,
#elSearch {
    position: relative;
}

/* Search Bar Input Styling */
#elSearchField {
    color: #ffffff;
    background-color: #1E212B;
    border: 1px solid rgba(147, 156, 177, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#elSearchField:focus {
    border-color: #FFA60D;
    box-shadow: 0 0 0 3px rgba(255, 166, 13, 0.1);
}

#elSearchField::placeholder {
    color: #939cb1;
}


.cSearchSubmit {
    color: #939cb1;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.cSearchSubmit:hover {
    color: #FFA60D;
}

.cSearchSubmit:focus {
    outline: 2px solid rgba(255, 166, 13, 0.5);
    outline-offset: 2px;
}

.cSearchSubmit svg {
    transition: stroke 0.3s ease;
}

.cSearchSubmit:hover svg path {
    stroke: #FFA60D;
}


.cSearchFilter__menu {
    background-color: #1E212B;
    border: 1px solid rgba(255, 166, 13, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cSearchFilter__menu li label {
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.cSearchFilter__menu li label:hover {
    background-color: rgba(255, 166, 13, 0.1);
}

.cSearchFilter__menu li input[type="radio"]:checked + .cSearchFilter__menuText {
    color: #FFA60D;
    font-weight: 600;
}

.cSearchFilter__menu li input[type="radio"]:focus + .cSearchFilter__menuText {
    outline: 2px solid rgba(255, 166, 13, 0.5);
    outline-offset: 2px;
}


@media screen and (max-width: 768px) {
    .search-results-dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        top: auto;
        margin-top: 4px;
        max-height: 70vh;
    }

    .search-result-item {
        padding: 14px 12px;
    }

    .search-result-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .search-result-title {
        font-size: 13px;
    }

    .search-result-desc {
        font-size: 12px;
    }
}

/* Loading State */
.search-results-loading {
    padding: 20px;
    text-align: center;
    color: #939cb1;
}

.search-results-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


.search-result-type {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 8px;
}

.search-result-type.type-product {
    background: rgba(255, 166, 13, 0.2);
    color: #FFA60D;
}

.search-result-type.type-review {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.search-result-type.type-topic {
    background: rgba(34, 228, 29, 0.2);
    color: #22e41d;
}

.search-result-type.type-status {
    background: rgba(147, 156, 177, 0.2);
    color: #939cb1;
}


.search-empty-state {
    padding: 40px 20px;
    text-align: center;
}

.search-empty-state img {
    max-width: 200px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.search-empty-state h4 {
    color: #ffffff;
    margin-bottom: 8px;
}

.search-empty-state p {
    color: #939cb1;
    font-size: 14px;
}

.search-result-item.keyboard-focus {
    background-color: rgba(255, 166, 13, 0.2);
    outline: 2px solid rgba(255, 166, 13, 0.5);
    outline-offset: -2px;
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(147, 156, 177, 0.2);
    color: #939cb1;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-results-footer {
    padding: 8px 16px;
    border-top: 1px solid rgba(147, 156, 177, 0.1);
    text-align: center;
    font-size: 12px;
    color: #939cb1;
}

.search-results-footer a {
    color: #FFA60D;
    text-decoration: none;
}

.search-results-footer a:hover {
    text-decoration: underline;
}
