/* ============================
   Social Widgets para Elementor
   swe-style.css
   ============================ */

/* --- Botão base --- */
.swe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
}
.swe-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    text-decoration: none;
}
.swe-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================
   WIDGET COMPARTILHAR
   ============================ */
.swe-compartilhar-wrap { display: inline-block; }

.swe-compartilhar-btn {
    background: #1877F2;
    color: #fff;
}

/* Overlay */
.swe-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99998;
}

/* Popup de seleção */
.swe-redes-popup,
.swe-share-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swe-popup-box,
.swe-modal-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    z-index: 100000;
    animation: sweSlideIn .22s ease;
}

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

.swe-popup-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px;
}
.swe-popup-close:hover { color: #000; }

.swe-popup-titulo {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
    text-align: center;
}

/* Grid de redes */
.swe-redes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.swe-rede-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
    font-size: 11px;
    font-weight: 600;
    color: #333;
}
.swe-rede-item:hover {
    border-color: var(--rede-color, #1877F2);
    background: #fff;
    transform: translateY(-2px);
    color: var(--rede-color, #1877F2);
}
.swe-rede-item .swe-rede-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--rede-color, #1877F2);
    border-radius: 50%;
    color: #fff;
}
.swe-rede-item .swe-rede-icon svg {
    width: 20px; height: 20px;
}

/* Modal de compartilhamento */
.swe-modal-box {
    text-align: center;
}
.swe-modal-rede-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 0;
}
.swe-modal-rede-icon svg {
    width: 28px; height: 28px;
}

.swe-modal-frase {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0 0 14px;
}

.swe-modal-link-box {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 14px;
}
.swe-modal-link-text {
    flex: 1;
    font-size: 13px;
    color: #333;
    word-break: break-all;
    text-align: left;
}
.swe-btn-copiar {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.swe-btn-copiar:hover { opacity: .8; }

.swe-btn-ir-rede {
    display: block;
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: opacity .2s;
}
.swe-btn-ir-rede:hover { opacity: .88; }

/* ============================
   WIDGET SEGUIR
   ============================ */
.swe-seguir-wrap { display: inline-block; }

.swe-seguir-btn {
    background: var(--rede-color, #E4405F);
    color: #fff;
}
.swe-seguir-btn .swe-rede-icon {
    display: flex;
    align-items: center;
}
.swe-seguir-btn .swe-rede-icon svg {
    width: 18px; height: 18px;
}

/* ============================
   WIDGET OK
   ============================ */
.swe-ok-wrap { display: inline-block; }

.swe-ok-btn {
    background: #28a745;
    color: #fff;
}
.swe-ok-icon {
    width: 18px; height: 18px;
}

/* ============================
   Responsivo
   ============================ */
@media (max-width: 480px) {
    .swe-popup-box,
    .swe-modal-box {
        padding: 22px 16px 18px;
        max-width: 96%;
    }
    .swe-redes-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}
