/* 
 * Smart Hotline Button Frontend Styles 
 */

.shb-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shb-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--shb-size);
    height: var(--shb-size);
    background-color: var(--shb-bg-color);
    color: var(--shb-icon-color);
    border-radius: var(--shb-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    overflow: visible;
    padding: var(--shb-padding);
}

.shb-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
    z-index: 2;
}

.shb-pos-bottom-right .shb-content,
.shb-pos-top-right .shb-content {
    flex-direction: row;
}

.shb-pos-bottom-left .shb-content,
.shb-pos-top-left .shb-content {
    flex-direction: row-reverse;
}

.shb-label {
    font-size: var(--shb-text-size);
    font-weight: 600;
    white-space: nowrap;
    font-family: inherit;
}

.shb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.shb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shb-icon svg {
    width: 50%;
    height: 50%;
}

/* Pulse/Glow Animation */
.shb-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--shb-radius);
    background-color: var(--shb-bg-color);
    opacity: 0.6;
    z-index: 1;
    animation: shb-pulse-anim 2s infinite;
}

@keyframes shb-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Secondary Glow Effect */
.shb-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--shb-radius);
    box-shadow: 0 0 0 0 var(--shb-bg-color);
    animation: shb-glow-anim 2s infinite;
    z-index: 0;
}

@keyframes shb-glow-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--shb-bg-color), 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--shb-bg-color), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--shb-bg-color), 0);
    }
}

/* Ensure icons are responsive inside the button */
.shb-icon svg {
    width: var(--shb-icon-size);
    height: var(--shb-icon-size);
    max-width: 100%;
    max-height: 100%;
}
