/* ?? AutoSuggest Container */
div.autosuggest {
    position: absolute;
    z-index: 110;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    animation: fadeIn 0.2s ease-in-out;
    min-width: 280px;
}

    /* ?? Suggest List */
    div.autosuggest ul {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 320px;
        overflow-y: auto;
    }

        /* ?? Suggest Item */
        div.autosuggest ul li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 20px;
            font-size: 15px;
            color: #212529;
            text-decoration: none;
            border-bottom: 1px solid #f1f1f1;
            transition: background 0.3s ease, transform 0.2s ease;
        }

            /* ? Hover & Highlight */
            div.autosuggest ul li a:hover,
            div.autosuggest ul li.as_highlight a {
                background-color: #007bff;
                color: #fff;
                transform: scale(1.01);
            }

                div.autosuggest ul li a:hover *,
                div.autosuggest ul li.as_highlight a * {
                    color: #fff !important;
                }

        /* ?? Highlighted Text */
        div.autosuggest ul em {
            font-style: normal;
            font-weight: bold;
            color: #007bff;
        }

/* ??? Category Label */
.Suggest-Category {
    font-weight: 600;
    background: linear-gradient(90deg, #495057, #343a40);
    color: #f8f9fa;
    font-size: 14px;
    padding: 10px 20px;
    border-bottom: 1px solid #444;
    backdrop-filter: blur(2px);
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
    opacity: 0.95;
}

    /* ?? Category Hover (pasif görünüm) */
    .Suggest-Category:hover {
        background-color: inherit;
        color: inherit;
    }

/* ?? Spinner */
.spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ??? Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ?? Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ??? Scrollbar Styling (Chrome) */
div.autosuggest ul::-webkit-scrollbar {
    width: 8px;
}

div.autosuggest ul::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 4px;
}

/* ?? Responsive Touch Support */
@media (max-width: 480px) {
    div.autosuggest {
        font-size: 14px;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

        div.autosuggest ul li a {
            padding: 12px 16px;
        }

    .Suggest-Category {
        padding: 8px 16px;
        font-size: 13px;
    }
}
