/* Reset pour éviter les conflits avec le thème */
.elegant-share-container * {
    box-sizing: border-box;
}

/* Conteneur principal */
.elegant-share-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    clear: both;
}

/* Bouton "Lire plus tard" */
.elegant-share-read-later {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    outline: none;
}

.elegant-share-read-later:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.elegant-share-read-later:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.elegant-share-read-later.saved {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.elegant-share-read-later svg {
    width: 20px;
    height: 20px;
}

/* Bouton toggle de partage */
.elegant-share-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
    padding: 0;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.elegant-share-toggle:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.elegant-share-toggle.active {
    background: #2563eb;
}

.elegant-share-toggle i {
    font-size: 22px;
}

/* Menu de partage */
.elegant-share-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    z-index: 1000;
    white-space: nowrap;
}

.elegant-share-menu.active {
    display: flex;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Boutons de partage dans le menu */
.elegant-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Boutons icônes uniquement (circulaires) */
.elegant-share-icon-only {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
}

.elegant-share-icon-only:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: scale(1.1);
}

.elegant-share-btn i {
    font-size: 18px;
}

/* Bouton Copier le lien avec texte */
.elegant-copy-link {
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
    background: white;
    margin-left: 4px;
}

.elegant-copy-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.elegant-share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Label "Copier le lien" */
.elegant-share-label {
    font-size: 14px;
    font-weight: 400;
    color: #374151;
}

/* Animation copié */
.elegant-copy-link.copied {
    background: #10b981 !important;
    color: white;
}

.elegant-copy-link.copied .elegant-share-label {
    color: white;
}

/* Wrapper pour le bouton de partage */
.elegant-share-wrapper {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .elegant-share-menu {
        left: auto;
        right: 0;
        min-width: 260px;
    }
    
    .elegant-share-container {
        flex-wrap: wrap;
    }
}