/**
 * CSS para Seção de Compartilhamento Social
 * Blog Tec Perifa - Post Individual
 * 
 * Responsivo e acessível - Mobile First
 */

/* Seção de Compartilhamento */
.social-share-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e8e8e8;
    border-bottom: 2px solid #e8e8e8;
}

.social-share-title {
    font-family: 'Alegreya SC', serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
}

/* Container dos botões */
.social-share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Botões individuais */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-share-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ícones SVG dentro dos botões */
.social-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Cores específicas por rede social */
.social-share-btn.facebook {
    background: #1877f2;
}

.social-share-btn.facebook:hover {
    background: #145dbf;
}

.social-share-btn.twitter {
    background: #000000; /* X (Twitter) agora usa preto */
}

.social-share-btn.twitter:hover {
    background: #333333;
}

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

.social-share-btn.whatsapp:hover {
    background: #1eaa52;
}

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

.social-share-btn.linkedin:hover {
    background: #084d8f;
}

/* Texto do botão */
.social-share-btn span {
    display: inline-block;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .social-share-section {
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .social-share-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .social-share-buttons {
        gap: 10px;
    }
    
    .social-share-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
        min-width: 100px;
    }
    
    .social-share-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile muito pequeno - Ocultar texto, mostrar só ícone */
@media (max-width: 480px) {
    .social-share-btn span {
        display: none; /* Ocultar texto em telas muito pequenas */
    }
    
    .social-share-btn {
        min-width: auto;
        width: 48px;
        height: 48px;
        padding: 12px;
        border-radius: 50%; /* Botões circulares */
    }
    
    .social-share-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Acessibilidade - Foco visível */
.social-share-btn:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

.social-share-btn:focus:not(:focus-visible) {
    outline: none;
}

.social-share-btn:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Mensagem de confirmação (feedback visual) */
.share-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

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

/* Print - Ocultar na impressão */
@media print {
    .social-share-section {
        display: none;
    }
}

