/* ===== ESTILOS PARA COMPARTILHAMENTO SOCIAL - BLOG INTERNO ===== */

/* Correção para garantir que os botões sejam clicáveis */
.share-btn-sidebar {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Botão de Compartilhamento Nativo */
.share-btn-sidebar.native-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transition: all 0.3s ease;
}

.share-btn-sidebar.native-share:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.share-btn-sidebar.native-share i {
    color: white;
}

/* Botão Copiar Link */
.share-btn-sidebar.copy-link {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #6c757d;
    color: white;
    transition: all 0.3s ease;
}

.share-btn-sidebar.copy-link:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.share-btn-sidebar.copy-link i {
    color: white;
}

/* Estado de Sucesso para Copiar Link */
.share-btn-sidebar.copy-link.copy-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    animation: copySuccess 0.5s ease-in-out;
}

.share-btn-sidebar.copy-link.copy-success i {
    color: white;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Efeito de Clique nos Botões de Compartilhamento */
.share-btn-sidebar.share-clicked {
    animation: shareClicked 0.3s ease-in-out;
}

@keyframes shareClicked {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Melhorias nos Botões Existentes */
.share-btn-sidebar.facebook {
    background: #1877f2;
    color: white;
}

.share-btn-sidebar.facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #165ed0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.share-btn-sidebar.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-sidebar.twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.share-btn-sidebar.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn-sidebar.linkedin:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.share-btn-sidebar.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn-sidebar.whatsapp:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Feedback Visual para Compartilhamento */
.share-btn-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.share-btn-sidebar:hover::before {
    left: 100%;
}

/* Tooltip para Botões de Compartilhamento */
.share-btn-sidebar::after {
    content: '';
    z-index: 1000;
}

.share-btn-sidebar:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Container de compartilhamento */
.share-buttons-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 5;
}

/* Widget de compartilhamento */
.share-widget {
    position: relative;
    z-index: 5;
}

/* Correção para artigos relacionados */
.related-post-link {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-post-link:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Responsividade para Compartilhamento */
@media (max-width: 768px) {
    .share-buttons-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .share-btn-sidebar {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .share-btn-sidebar i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .share-buttons-sidebar {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .share-btn-sidebar {
        padding: 0.875rem;
        font-size: 0.8rem;
    }
}

/* Acessibilidade para Compartilhamento */
@media (prefers-reduced-motion: reduce) {
    .share-btn-sidebar,
    .share-btn-sidebar::before,
    .share-btn-sidebar::after {
        transition: none;
        animation: none;
    }
    
    .share-btn-sidebar:hover {
        transform: none;
    }
}

/* Alto Contraste para Compartilhamento */
@media (prefers-contrast: high) {
    .share-btn-sidebar {
        border: 2px solid currentColor;
        background: white;
        color: black;
    }
    
    .share-btn-sidebar:hover {
        background: #f0f0f0;
        border-color: black;
    }
    
    .share-btn-sidebar.copy-success {
        background: #28a745;
        color: white;
        border-color: #28a745;
    }
}

/* Estados de Foco para Navegação por Teclado */
.share-btn-sidebar:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    z-index: 20;
}

/* Loading State para Compartilhamento */
.share-btn-sidebar.sharing {
    pointer-events: none;
    opacity: 0.7;
}

.share-btn-sidebar.sharing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contador de Compartilhamentos (opcional) */
.share-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Animações de Entrada para Widget de Compartilhamento */
.share-widget {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorias na Acessibilidade */
.share-btn-sidebar[aria-label] {
    position: relative;
}

.share-btn-sidebar[aria-label]:focus::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
}

/* Suporte para Modo Escuro */
@media (prefers-color-scheme: dark) {
    .share-btn-sidebar {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .share-btn-sidebar:hover {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        border-color: #718096;
    }
    
    .share-btn-sidebar.copy-success {
        background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
        border-color: #38a169;
        color: white;
    }
}

/* ===== FIM DOS ESTILOS DE COMPARTILHAMENTO SOCIAL ===== */ 