
/* Floating Container Fixed to Left Side */
.share-container {
    position: fixed;
    bottom: 40px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

/* Primary Toggle Button */
.share-toggle-btn {
    width: 50px;
    height: 50px;
    background-color: #218b00; /* Gold brand color from screenshot */
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.3s ease;
    outline: none;
    position: relative;
}

.share-toggle-btn:hover {
    background-color: #000000;
}

/* Icon toggling inside main button */
.share-toggle-btn .close-icon {
    display: none;
    font-size: 24px;
}

/* Social Links Stack Wrapper */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Individual Social Icon Styles */
.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* Brand Background Colors matching screenshots */
.facebook  { background-color: #3b5998; }
.twitter   { background-color: #00aced; }
.linkedin  { background-color: #007bb6; }
.youtube   { background-color: #ff0000; }
.whatsapp  { background-color: #25d366; }
.messenger { background-color: #0084ff; }
.phone     { background-color: #00bfa5; }
.email     { background-color: #616161; }

/* ACTIVE STATE (When Menu is open) */
.share-container.active .social-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-container.active .share-toggle-btn .open-icon {
    display: none;
}

.share-container.active .share-toggle-btn .close-icon {
    display: block;
}


/* Responsive Adjustments for Smaller Screens */
@media (max-width: 480px) {
    .share-container {
        bottom: 20px;
        left: 15px;
    }
    .share-toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Primary Toggle Button with Spark Effect */
.share-toggle-btn {
    width: 50px;
    height: 50px;
    background-color: #3d9900; /* Gold brand color */
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    outline: none;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Spark Effect (Pseudo-element ব্যবহার করে) */
.share-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #afdf01; /* গোল্ডেন বর্ডার */
    box-shadow: 0 0 10px #465f00, inset 0 0 10px #417a00; /* স্পার্ক গ্লো */
    animation: sparkInOut 2s infinite ease-in-out;
    pointer-events: none; /* বাটনের ক্লিকে যেন বাধা না দেয় */
}

/* মাউস হভার করলে কালার চেইঞ্জ */
.share-toggle-btn:hover {
    background-color: #c40000;
}

/* Spark In/Out Animation Keyframes */
@keyframes sparkInOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
        /* মাঝপথে স্পার্ক বর্ডারটি কিছুটা গ্লো করবে */
        box-shadow: 0 0 15px #b59410, inset 0 0 5px #b59410; 
    }
    100% {
        transform: scale(1.4); /* বর্ডারটি বড় হয়ে বাইরে ছড়িয়ে যাবে */
        opacity: 0; /* সম্পূর্ণ মিলিয়ে যাবে */
    }
}

/* আইকন টগলিং স্টাইল আগের মতোই থাকবে */
.share-toggle-btn .close-icon {
    display: none;
    font-size: 24px;
}
.share-container.active .share-toggle-btn .open-icon {
    display: none;
}
.share-container.active .share-toggle-btn .close-icon {
    display: block;
}