/**
 * Boutique Autocomplete Styles pour AvisLab
 * Système d'autocomplétion pour le champ boutique
 */

.boutique-autocomplete-container {
    position: relative;
    width: 100%;
    /* Transition fluide pour l'espacement dynamique */
    transition: margin-bottom 0.3s ease;
}

/* Quand le dropdown est ouvert, ajouter de l'espace en dessous */
.boutique-autocomplete-container.dropdown-open {
    margin-bottom: 70px;
}

.boutique-autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    /* Dégradé liquid glass violet/vert avec opacité forte */
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.95) 0%,
        rgba(16, 185, 129, 0.85) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    /* Ombre élégante avec glow violet */
    box-shadow:
        0 8px 32px rgba(124, 58, 237, 0.5),
        0 0 80px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.boutique-autocomplete-suggestions.show {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.boutique-autocomplete-suggestion {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.boutique-autocomplete-suggestion:last-child {
    border-bottom: none;
}

.boutique-autocomplete-suggestion:hover,
.boutique-autocomplete-suggestion.highlighted {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: translateX(4px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.boutique-autocomplete-suggestion:active {
    transform: scale(0.98);
}

.boutique-autocomplete-suggestion i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.boutique-autocomplete-no-results {
    padding: 12px 16px;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.boutique-autocomplete-no-results i {
    font-size: 14px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

/* Scrollbar personnalisé */
.boutique-autocomplete-suggestions::-webkit-scrollbar {
    width: 8px;
}

.boutique-autocomplete-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 8px 0;
}

.boutique-autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.boutique-autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 100%
    );
}

/* Animation d'entrée */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boutique-autocomplete-suggestions.show {
    animation: slideDown 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .boutique-autocomplete-suggestions {
        border-radius: 12px;
        max-height: 250px;
    }

    .boutique-autocomplete-suggestion {
        padding: 12px 14px;
        font-size: 14px;
    }
}
