/**
 * Share Buttons - Estilos e Animações
 * Para feedback visual durante compartilhamento
 */

/* Estado de loading durante compartilhamento */
.share-btn.sharing {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.share-btn.sharing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

/* Estado de sucesso após compartilhamento */
.share-btn.shared {
    background: #4CAF50 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.share-btn.shared i {
    animation: bounce 0.5s ease;
}

/* Animações */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Estilos dos botões de compartilhamento */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #666;
}

.share-btn:hover:not(.sharing):not(.shared) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.share-btn[data-platform="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

.share-btn[data-platform="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
    color: white;
}

.share-btn[data-platform="twitter"]:hover {
    background: #000;
    border-color: #000;
    color: white;
}

.share-btn[data-platform="whatsapp"]:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.share-btn.copy-link:hover {
    background: #7B9F7E;
    border-color: #7B9F7E;
    color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-btn {
        flex: 1 1 auto;
        min-width: 40px;
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
}
