/**
 * Sam BDS - Floating Buttons CSS
 * 
 * 3 nút cố định góc phải dưới: Phone, Zalo, Messenger
 */

.sambds-floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sambds-fb {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: white !important;
}

.sambds-fb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: white !important;
}

.sambds-fb-phone {
    background: linear-gradient(135deg, #F26522 0%, #E55510 100%);
    animation: sambds-pulse 2s infinite;
}

.sambds-fb-zalo {
    background: linear-gradient(135deg, #2DAEE5 0%, #0288D1 100%);
}

.sambds-fb-mess {
    background: linear-gradient(135deg, #1877F2 0%, #0E5CB8 100%);
}

/* Tooltip label */
.sambds-fb-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.sambds-fb-label::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

.sambds-fb:hover .sambds-fb-label {
    opacity: 1;
    visibility: visible;
}

/* Pulse animation cho nút Phone */
@keyframes sambds-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4),
                    0 0 0 0 rgba(242, 101, 34, 0.6);
    }
    70% {
        box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4),
                    0 0 0 18px rgba(242, 101, 34, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(242, 101, 34, 0.4),
                    0 0 0 0 rgba(242, 101, 34, 0);
    }
}


/* Mobile - giữ nút gọn hơn */
@media (max-width: 768px) {
    .sambds-floating-buttons {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .sambds-fb {
        width: 52px;
        height: 52px;
    }

    .sambds-fb-label {
        display: none;
    }
}
