/**
 * Kang Contact Buttons - BEM CSS
 * Block: contact-buttons
 */

/* ============================================
   Block: contact-buttons
   ============================================ */

.contact-buttons {
    position: fixed;
    bottom: 0;
    z-index: 99999;
    right: 0; /* Default, will be overridden by inline styles */
}

/* ============================================
   Element: contact-buttons__wrapper
   ============================================ */

.contact-buttons__wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================
   Element: contact-buttons__item
   ============================================ */

.contact-buttons__item {
    position: relative;
    margin-top: -5px;
    transition: all 1.6s ease;
}

/* ============================================
   Element: contact-buttons__button
   ============================================ */

.contact-buttons__button {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: visibility 0.5s ease;
    left: 0;
    bottom: 0;
    display: block;
}

/* ============================================
   Element: contact-buttons__circle (animated background)
   ============================================ */

.contact-buttons__circle {
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: contact-buttons-pulse 2.3s infinite ease-in-out;
    transition: all 0.5s ease;
    transform-origin: 50% 50%;
}

/* ============================================
   Element: contact-buttons__icon
   ============================================ */

.contact-buttons__icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: contact-buttons-zoom 1.3s infinite ease-in-out;
}

.contact-buttons__icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 37px;
}

.contact-buttons__icon img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Modifier: contact-buttons__item--facebook
   ============================================ */

.contact-buttons__item--facebook .contact-buttons__icon img {
    max-width: 35px;
    max-height: 35px;
}

/* ============================================
   Modifier: contact-buttons__item--tiktok
   ============================================ */

.contact-buttons__item--tiktok .contact-buttons__icon img {
    max-width: 90%;
    max-height: 90%;
}

/* ============================================
   Animations
   ============================================ */

@keyframes contact-buttons-pulse {
    0% {
        transform: rotate(0deg) scale(1) skew(1deg);
    }
    10% {
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
        transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
        transform: rotate(0deg) scale(1) skew(1deg);
    }
}

@keyframes contact-buttons-zoom {
    0% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px transparent;
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 transparent;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .contact-buttons__button {
        width: 70px;
        height: 70px;
    }
    
    .contact-buttons__circle {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
    
    .contact-buttons__icon {
        width: 32px;
        height: 32px;
        top: 19px;
        left: 19px;
    }
    
    .contact-buttons__icon img {
        max-height: 20px;
        max-width: 22px;
    }
    
    .contact-buttons__item--facebook .contact-buttons__icon img {
        max-width: 28px;
        max-height: 28px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.contact-buttons__icon a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.contact-buttons__icon a:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   Custom Scrollbar (if needed)
   ============================================ */

.contact-buttons::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.contact-buttons::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.contact-buttons::-webkit-scrollbar-track {
    background-color: transparent;
}

