/* ─── Social Share Hub ─── */
.social-share-hub {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 1000;
}

/* ─── Share trigger button ─── */
.share-trigger {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    /* Breathing idle glow */
    animation: shareBreathe 3s ease-in-out infinite;
}

@keyframes shareBreathe {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0px rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(93, 255, 158, 0.15);
    }
}

.share-trigger svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255, 255, 255, 0.9);
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Touch active state for mobile feedback */
.share-trigger.touch-active {
    transform: scale(0.92);
    background: rgba(93, 255, 158, 0.2);
}

/* Global mobile performance optimization: simplify blurs */
@media (max-width: 768px) {

    .share-trigger,
    .share-menu,
    .btn-glass,
    .fact-btn,
    .fact-modal-content {
        backdrop-filter: none !important;
        background: rgba(15, 15, 15, 0.95) !important;
    }
}

/* ─── Hover: gros mouvement ─── */
.share-trigger:hover {
    transform: translateY(-12px) scale(1.25) rotate(20deg);
    background: rgba(93, 255, 158, 0.12);
    border-color: rgba(93, 255, 158, 0.6);
    box-shadow:
        0 0 30px rgba(93, 255, 158, 0.35),
        0 0 70px rgba(93, 255, 158, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.5);
    animation: none;
}

/* Mobile specific styling for share hub visibility */
.social-share-hub.mobile-active .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.social-share-hub.mobile-active .share-trigger {
    transform: translateY(-12px) scale(1.2) rotate(15deg);
    border-color: var(--neon-green);
    box-shadow: 0 0 25px rgba(93, 255, 158, 0.3);
}

.share-trigger:hover svg {
    stroke: #5DFF9E;
    transform: scale(1.15) rotate(-20deg);
    filter: drop-shadow(0 0 8px rgba(93, 255, 158, 0.9));
}

/* ─── Share menu ─── */
.share-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.9);
    transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-share-hub:hover .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.share-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-item:hover {
    transform: scale(1.25) translateY(-5px);
    box-shadow: 0 0 25px currentColor;
}

.share-x:hover {
    color: #fff;
    background: #000;
    border-color: #fff;
}

.share-fb:hover {
    color: #1877F2;
    background: #fff;
    border-color: #1877F2;
}

.share-ig:hover {
    color: #E4405F;
    background: #fff;
    border-color: #E4405F;
}