/* Telegram & WhatsApp Buttons Plugin Styles */

.twb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: fixed;
    z-index: 9999;
    min-width: 160px;
}

.twb-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.twb-button svg {
    margin-right: 8px;
}

/* Button Positions */
.twb-position-bottom-right .twb-button {
    bottom: 30px;
    right: 30px;
}

.twb-position-bottom-left .twb-button {
    bottom: 30px;
    left: 30px;
}

.twb-position-top-right .twb-button {
    top: 30px;
    right: 30px;
}

.twb-position-top-left .twb-button {
    top: 30px;
    left: 30px;
}

/* Telegram Button */
#twb-telegram-button {
    background-color: #0088cc;
}

#twb-telegram-button:hover {
    background-color: #0099dd;
}

/* WhatsApp Button */
#twb-whatsapp-button {
    background-color: #25D366;
}

#twb-whatsapp-button:hover {
    background-color: #28E46D;
}

/* Animation */
@keyframes twbFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes twbFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.twb-fade-in {
    animation: twbFadeIn 0.5s forwards;
}

.twb-fade-out {
    animation: twbFadeOut 0.5s forwards;
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .twb-button {
        min-width: auto;
        padding: 10px 14px;
    }
    
    .twb-button span {
        display: none;
    }
    
    .twb-button svg {
        margin-right: 0;
        width: 28px;
        height: 28px;
    }
    
    .twb-position-bottom-right .twb-button {
        bottom: 70px; /* Increased from 20px to avoid mobile menu bars */
        right: 20px;
    }
    
    .twb-position-bottom-left .twb-button {
        bottom: 70px; /* Increased from 20px to avoid mobile menu bars */
        left: 20px;
    }
    
    .twb-position-top-right .twb-button {
        top: 70px; /* Increased to avoid potential mobile headers */
        right: 20px;
    }
    
    .twb-position-top-left .twb-button {
        top: 70px; /* Increased to avoid potential mobile headers */
        left: 20px;
    }
}
