/* Social Media Sharing - Frontend Styles */

/* Container principal */
.sms-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: all 0.3s ease;
    margin: 20px 0;
}

/* Espaçamento padrão entre botões */
.sms-share-buttons .sms-share-button {
    margin-right: 10px;
    margin-bottom: 5px;
}

.sms-share-buttons .sms-share-button:last-child {
    margin-right: 0;
}

/* Botão individual */
.sms-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e0e0e0;
}

/* Novo estilo com ícone colorido à esquerda e texto branco à direita */
.sms-share-button {
    background: white;
    color: #333;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-top: none;
    border-bottom: none;
    border-radius: 4px;
    padding: 0;
    min-height: 44px;
    overflow: hidden;
}

.sms-share-button i {
    background-color: var(--network-color);
    color: white;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
}

.sms-share-button .sms-label {
    padding: 12px 16px;
    margin-left: 0;
    color: #333;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    flex: 1;
    display: flex;
    align-items: center;
}

.sms-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.sms-share-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Ícones */
.sms-share-button i {
    font-size: inherit;
    line-height: 1;
}

/* Labels */
.sms-share-button .sms-label {
    margin-left: 12px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tamanhos */
.sms-small .sms-share-button {
    font-size: 14px;
    min-height: 36px;
}

.sms-small .sms-share-button i {
    width: 36px;
    height: 36px;
    min-width: 36px;
}

.sms-small .sms-share-button .sms-label {
    padding: 8px 12px;
}

.sms-medium .sms-share-button {
    font-size: 16px;
    min-height: 44px;
}

.sms-medium .sms-share-button i {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.sms-medium .sms-share-button .sms-label {
    padding: 12px 16px;
}

.sms-large .sms-share-button {
    font-size: 18px;
    min-height: 52px;
}

.sms-large .sms-share-button i {
    width: 52px;
    height: 52px;
    min-width: 52px;
}

.sms-large .sms-share-button .sms-label {
    padding: 16px 20px;
}

/* Formatos */
.sms-square .sms-share-button {
    border-radius: 0;
}

.sms-rounded .sms-share-button {
    border-radius: 6px;
}

/* Formato circular - sempre oculta labels e usa apenas ícone */
.sms-circle .sms-share-button {
    border-radius: 50%;
    aspect-ratio: 1;
    justify-content: center;
    padding: 0;
}

.sms-circle .sms-share-button i {
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.sms-circle .sms-share-button .sms-label {
    display: none;
}

/* Cores originais das redes sociais - Novo estilo com ícone colorido */
.sms-original .sms-facebook {
    --network-color: #1877f2;
}

.sms-original .sms-facebook:hover {
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
    transform: translateY(-1px);
}

.sms-original .sms-facebook:hover .sms-label {
    color: #1877f2;
}

.sms-original .sms-twitter {
    --network-color: #000000;
}

.sms-original .sms-twitter:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.sms-original .sms-twitter:hover .sms-label {
    color: #000000;
}

.sms-original .sms-linkedin {
    --network-color: #0077b5;
}

.sms-original .sms-linkedin:hover {
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
    transform: translateY(-1px);
}

.sms-original .sms-linkedin:hover .sms-label {
    color: #0077b5;
}

.sms-original .sms-whatsapp {
    --network-color: #25d366;
}

.sms-original .sms-whatsapp:hover {
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
    transform: translateY(-1px);
}

.sms-original .sms-whatsapp:hover .sms-label {
    color: #25d366;
}

.sms-original .sms-telegram {
    --network-color: #0088cc;
}

.sms-original .sms-telegram:hover {
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
    transform: translateY(-1px);
}

.sms-original .sms-telegram:hover .sms-label {
    color: #0088cc;
}

.sms-original .sms-instagram {
    --network-color: #e4405f;
}

.sms-original .sms-instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sms-original .sms-instagram:hover {
    box-shadow: 0 2px 8px rgba(225, 48, 108, 0.2);
    transform: translateY(-1px);
}

.sms-original .sms-instagram:hover .sms-label {
    color: #e4405f;
}

/* Estilo customizado - cores serão aplicadas via inline styles */
.sms-custom .sms-share-button {
    color: white;
}

.sms-custom .sms-share-button:hover {
    opacity: 0.9;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .sms-share-buttons {
        justify-content: center;
        gap: 6px;
    }
    
    .sms-large .sms-share-button {
        font-size: 16px;
        min-height: 44px;
    }
    
    .sms-large .sms-share-button i {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .sms-large .sms-share-button .sms-label {
        padding: 12px 16px;
    }
    
    .sms-medium .sms-share-button {
        font-size: 14px;
        min-height: 40px;
    }
    
    .sms-medium .sms-share-button i {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .sms-medium .sms-share-button .sms-label {
        padding: 10px 14px;
    }
    
    .sms-small .sms-share-button {
        font-size: 12px;
        min-height: 32px;
    }
    
    .sms-small .sms-share-button i {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .sms-small .sms-share-button .sms-label {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .sms-share-buttons {
        gap: 4px;
    }
    
    .sms-share-button .sms-label {
        display: none;
    }
    
    .sms-circle .sms-share-button {
        padding: 10px;
    }
}

/* Animações */
@keyframes sms-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.sms-share-button:active {
    animation: sms-pulse 0.2s ease;
}

/* Acessibilidade */
.sms-share-button:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Suporte para temas escuros */
@media (prefers-color-scheme: dark) {
    .sms-share-buttons {
        filter: brightness(0.9);
    }
}

/* Compatibilidade com page builders */
.elementor-widget-container .sms-share-buttons,
.et_pb_module .sms-share-buttons,
.vc_column-inner .sms-share-buttons,
.brxe-container .sms-share-buttons {
    margin: 0;
}

/* Estilos para impressão */
@media print {
    .sms-share-buttons {
        display: none;
    }
}

/* Loading state */
.sms-share-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.sms-share-button.loading::after {
    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: sms-spin 1s linear infinite;
}

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

/* Variações de layout */
.sms-share-buttons.sms-vertical {
    flex-direction: column;
    align-items: flex-start;
}

.sms-share-buttons.sms-centered {
    justify-content: center;
}

.sms-share-buttons.sms-right {
    justify-content: flex-end;
}

/* Efeitos especiais */
.sms-share-button.sms-glow:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.sms-share-button.sms-bounce:hover {
    animation: sms-bounce 0.6s ease;
}

@keyframes sms-bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* Modo apenas ícone */
.sms-icon_only .sms-share-button {
    min-width: auto;
    aspect-ratio: 1;
    justify-content: center;
    padding: 0;
}

.sms-icon_only .sms-share-button i {
    border-radius: 4px;
    width: 100%;
    height: 100%;
}

.sms-icon_only .sms-share-button .sms-label {
    display: none;
}

/* Ajustes de tamanho para modo icon_only */
.sms-icon_only.sms-small .sms-share-button {
    width: 36px;
    height: 36px;
}

.sms-icon_only.sms-small .sms-share-button i {
    width: 36px;
    height: 36px;
    min-width: 36px;
}

.sms-icon_only.sms-medium .sms-share-button {
    width: 44px;
    height: 44px;
}

.sms-icon_only.sms-medium .sms-share-button i {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.sms-icon_only.sms-large .sms-share-button {
    width: 52px;
    height: 52px;
}

.sms-icon_only.sms-large .sms-share-button i {
    width: 52px;
    height: 52px;
    min-width: 52px;
}

/* Formato circular sempre oculta labels */
.sms-circle .sms-share-button .sms-label {
    display: none;
}