/**
 * Social Sharing Buttons Styles
 */

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-share-btn i {
    font-size: 16px;
}

/* Couleurs spécifiques par réseau */
.social-share-facebook {
    background: #1877f2;
}

.social-share-twitter {
    background: #1da1f2;
}

.social-share-linkedin {
    background: #0a66c2;
}

.social-share-whatsapp {
    background: #25d366;
}

.social-share-telegram {
    background: #0088cc;
}

.social-share-reddit {
    background: #ff4500;
}

.social-share-pinterest {
    background: #e60023;
}

.social-share-email {
    background: #6b7280;
}

.social-share-copy {
    background: #2563eb;
}

/* Version compacte (icônes seulement) */
.social-share-buttons.compact .social-share-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.social-share-buttons.compact .social-share-btn span {
    display: none;
}

.social-share-buttons.compact .social-share-btn i {
    font-size: 18px;
}

/* Version flottante (sidebar) */
.social-share-buttons.floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-share-buttons.floating .social-share-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-share-buttons.floating .social-share-btn span {
    display: none;
}

.social-share-buttons.floating .social-share-btn i {
    font-size: 20px;
}

/* Animation de copie réussie */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.social-share-copy.copied {
    background: #10b981;
    animation: copySuccess 0.3s ease;
}

/* Tooltip pour les boutons compacts */
.social-share-buttons.compact .social-share-btn,
.social-share-buttons.floating .social-share-btn {
    position: relative;
}

.social-share-buttons.compact .social-share-btn::after,
.social-share-buttons.floating .social-share-btn::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    padding: 5px 10px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-share-buttons.compact .social-share-btn:hover::after,
.social-share-buttons.floating .social-share-btn:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .social-share-buttons {
        justify-content: center;
    }
    
    .social-share-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    /* Masquer les boutons flottants sur mobile */
    .social-share-buttons.floating {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Forcer le mode compact sur très petits écrans */
    .social-share-buttons:not(.floating) .social-share-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .social-share-buttons:not(.floating) .social-share-btn span {
        display: none;
    }
}

/* Section de partage dédiée */
.share-section {
    background: #f9fafb;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: center;
}

.share-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.share-section .social-share-buttons {
    justify-content: center;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .share-section {
        background: #1f2937;
    }
    
    .share-section h3 {
        color: #f9fafb;
    }
}