/* Position cho floating buttons sẽ được set inline từ PHP */

.bc-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
    position: relative;
    margin-bottom: 20px;
}

.bc-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transform: translate(-50%, -50%);
    animation: bc-ripple 1.5s ease-out infinite;
    opacity: 0.6;
}

.bc-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    transform: translate(-50%, -50%);
    animation: bc-ripple 1.5s ease-out infinite 0.5s;
    opacity: 0.4;
}

.bc-button:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.bc-button:hover::before,
.bc-button:hover::after {
    animation-play-state: paused;
}

.bc-button img,
.bc-button span {
    position: relative;
    z-index: 2;
}

.bc-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Animation keyframes */
@keyframes bc-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Disable animation cho icons khi không bật */
.bc-no-animation img,
.bc-no-animation span {
    animation: none !important;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .bc-button {
        width: 50px;
        height: 50px;
    }
    
    .bc-button img {
        width: 20px;
        height: 20px;
    }
}
