/* ==================================================
   Woodixa Social Share
   Compact • Accessible • Tooltip-Enabled
   ================================================== */

/* ---------- Base Wrapper ---------- */
.woodixa-social-share-wrapper {
    margin: 40px auto 20px;
    max-width: 800px;
    width: 100%;
    font-family: Helvetica, Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}

/* ---------- Intro / Heading ---------- */
.woodixa-share-intro {
    margin-bottom: 24px;
    text-align: center;
}

.woodixa-share-intro-text,
.woodixa-share-product {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    line-height: 1.4;
}

.woodixa-share-intro span {
    margin: 0 3px;
}

.woodixa-share-intro::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #333;
    margin: 14px auto 0;
}

/* ---------- Share Button Grid ---------- */
.woodixa-social-share {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Tooltip Wrapper ---------- */
.wss-btn-wrap {
    position: relative;
    display: inline-flex;
}

/* Tooltip text */
.wss-btn-wrap::after {
    content: attr(data-tooltip-top);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, 6px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 40;
}

/* Tooltip visibility */
.wss-btn-wrap:hover::after,
.wss-btn-wrap:focus-within::after {
    opacity: 1;
    transform: translate(-50%, -4px);
}

/* ---------- Share Buttons ---------- */
.wss-btn {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    border: none;
    background: #eaeaea;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* SVG Icons */
.wss-svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    transition: transform 0.2s ease;
}

/* Hover interaction */
.wss-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    filter: brightness(1.08);
}

.wss-btn:hover .wss-svg {
    transform: scale(1.1);
}

/* Focus accessibility */
.wss-btn:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* ---------- Brand Colors ---------- */
.wss-fb {
    background: #1877f2;
}

.wss-twitter {
    background: #000;
}

.wss-linkedin {
    background: #0077b5;
}

.wss-wa {
    background: #25d366;
}

.wss-telegram {
    background: #0088cc;
}

.wss-pinterest {
    background: #bd081c;
}

.wss-reddit {
    background: #ff4500;
}

.wss-email {
    background: #777;
}

.wss-instagram {
    background: radial-gradient(circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%);
}

/* ---------- Copy Feedback ---------- */
.wss-copy-feedback {
    position: absolute;
    top: -9999px;
    right: 50%;
    transform: translateX(50%) translateY(-6px);
    opacity: 0;
    pointer-events: none;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 50;
}

.wss-copy-feedback.visible {
    top: -42px;
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 480px) {

    .woodixa-share-intro-text,
    .woodixa-share-product {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .woodixa-social-share {
        gap: 6px;
    }

    .wss-btn {
        width: 32px;
        height: 32px;
    }

    .wss-svg {
        width: 15px;
        height: 15px;
    }
}