/* Magic Social Share Menu v3 — Frontend Styles */

/* ── Fixed mode (wp_footer injected) ── */
.mss-wrap.mss-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

/* ── Shortcode / inline mode ── */
.mss-wrap.mss-inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Give enough space so items don't clip */
    padding: 120px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

/* ── Toggle Button ── */
.mss-toggle {
    position: relative;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 10;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.3s;
    flex-shrink: 0;
}
.mss-toggle:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.mss-toggle::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(128,128,128,0.2);
    animation: mss-pulse 2.5s ease-out infinite;
    pointer-events: none;
}
@keyframes mss-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.65); opacity: 0; }
}

/* ── Icon states ── */
.mss-icon-close { display: none; }
.mss-wrap.mss-active .mss-toggle     { transform: rotate(360deg); }
.mss-wrap.mss-active .mss-icon-open  { display: none; }
.mss-wrap.mss-active .mss-icon-close { display: inline; }

/* ── Items list — absolutely centred on the toggle ── */
.mss-items {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.mss-items li {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1),
                opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mss-wrap.mss-active .mss-items li {
    opacity: 1;
    pointer-events: all;
}

.mss-items li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    color: var(--mss-clr, #333);
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 2.5px solid var(--mss-clr, #ddd);
    transition: transform 0.2s, box-shadow 0.2s;
}
.mss-items li a:hover {
    transform: scale(1.18);
    box-shadow: 0 6px 26px rgba(0,0,0,0.28);
}

/* ── Hover label ── */
.mss-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    letter-spacing: 0.4px;
    font-family: sans-serif;
}
.mss-items li:hover .mss-label { opacity: 1; }
