/* ============================================
   STYLES DES BOUTONS DE PARTAGE
   ============================================ */

.ec-event-share {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.ec-share-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f2f5;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ec-share-toggle:hover {
    background: #e4e6eb;
    transform: translateY(-2px);
}

.ec-share-toggle .ec-share-icon {
    font-size: 16px;
}

.ec-share-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border: 1px solid #e9ecef;
}

.ec-share-dropdown::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.ec-share-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.ec-share-dropdown .ec-share-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    padding: 0 12px 8px 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 8px;
    text-align: center;
}

.ec-share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: transparent;
    color: #1a1a2e;
}

.ec-share-btn:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.ec-share-btn .ec-share-btn-icon {
    font-size: 18px;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.ec-share-btn .ec-share-btn-label {
    flex: 1;
    text-align: left;
}

/* Couleurs des réseaux sociaux */
.ec-share-btn-facebook:hover {
    background: #e7f3ff;
    color: #1877f2;
}

.ec-share-btn-twitter:hover {
    background: #e8f5fe;
    color: #000000;
}

.ec-share-btn-linkedin:hover {
    background: #e8f0fa;
    color: #0a66c2;
}

.ec-share-btn-whatsapp:hover {
    background: #e8f5ee;
    color: #25d366;
}

.ec-share-btn-email:hover {
    background: #fef3e8;
    color: #d44637;
}

.ec-share-btn-copy:hover {
    background: #e8f5e9;
    color: #28a745;
}

/* Toast de confirmation */
.ec-share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a2e;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ec-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ec-share-toast .ec-toast-icon {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .ec-share-dropdown {
        min-width: 180px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.95);
    }
    
    .ec-share-dropdown.open {
        transform: translateX(-50%) scale(1);
    }
    
    .ec-share-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .ec-share-btn .ec-share-btn-icon {
        font-size: 16px;
        width: 28px;
    }
}

/* Version compacte pour la carte événement */
.ec-event-card .ec-event-share {
    margin-top: 0;
}

.ec-event-card .ec-share-toggle {
    padding: 4px 12px;
    font-size: 12px;
    background: transparent;
    color: #6c757d;
}

.ec-event-card .ec-share-toggle:hover {
    background: #f0f2f5;
}

.ec-event-footer .ec-share-toggle {
    font-size: 13px;
}