/* =========================================================
   S'gelaHub WhatsApp Share Button
   Living share action: subtle pulse + lift + focus treatment.
   ========================================================= */

.sgh-whatsapp-share {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 420px);
    max-width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    line-height: 0;
    text-decoration: none !important;
    border-radius: 16px;
    overflow: visible;
    isolation: isolate;
    transform: translateZ(0);
    transition:
        transform 180ms ease,
        filter 180ms ease,
        box-shadow 180ms ease;
}

.sgh-whatsapp-share:hover,
.sgh-whatsapp-share:focus-visible {
    transform: translateY(-3px) scale(1.015);
    filter: brightness(1.04);
}

.sgh-whatsapp-share:active {
    transform: translateY(0) scale(0.985);
}

.sgh-whatsapp-share:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.48);
    outline-offset: 4px;
}

.sgh-whatsapp-share__pulse {
    position: absolute;
    inset: 5%;
    z-index: -1;
    border-radius: 18px;
    background: rgba(37, 211, 102, 0.16);
    filter: blur(10px);
    animation: sgh-whatsapp-breathe 2.8s ease-in-out infinite;
    pointer-events: none;
}

.sgh-whatsapp-share__image {
    position: relative;
    display: block;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
    animation: sgh-whatsapp-float 3.8s ease-in-out infinite;
}

.sgh-whatsapp-share__image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 42%,
        rgba(255, 255, 255, 0.34) 50%,
        transparent 58%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: sgh-whatsapp-shimmer 4.8s ease-in-out infinite;
}

.sgh-whatsapp-share img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    border: 0;
    margin: 0;
    border-radius: inherit;
}

@keyframes sgh-whatsapp-breathe {
    0%, 100% {
        opacity: 0.28;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.035);
    }
}

@keyframes sgh-whatsapp-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@keyframes sgh-whatsapp-shimmer {
    0%, 66%, 100% {
        background-position: 120% 0;
    }
    78%, 88% {
        background-position: -20% 0;
    }
}

@media (max-width: 480px) {
    .sgh-whatsapp-share {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgh-whatsapp-share__pulse,
    .sgh-whatsapp-share__image,
    .sgh-whatsapp-share__image::after {
        animation: none;
    }

    .sgh-whatsapp-share {
        transition: none;
    }
}
