/* 텔레그램 플로팅 버튼 */
.telegram-float-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.telegram-float-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.6);
    background: linear-gradient(135deg, #0099dd 0%, #0088cc 100%);
}

.telegram-float-button:active {
    transform: translateY(-3px) scale(1.05);
}

.telegram-float-button svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* 툴팁 */
.telegram-float-button::before {
    content: 'Contact us on Telegram';
    position: absolute;
    right: 75px;
    background: #2c2c2c;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* 툴팁 화살표 */
.telegram-float-button .tooltip-arrow {
    position: absolute;
    right: 65px;
    border-left: 8px solid #2c2c2c;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.telegram-float-button:hover::before,
.telegram-float-button:hover .tooltip-arrow {
    opacity: 1;
}

/* 펄스 애니메이션 */
.telegram-float-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0088cc;
    top: 0;
    left: 0;
    animation: telegram-pulse 2s infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes telegram-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .telegram-float-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .telegram-float-button svg {
        width: 28px;
        height: 28px;
    }
    
    .telegram-float-button::before {
        right: 70px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .telegram-float-button::after {
        right: 60px;
        border-left-width: 6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
}

/* 스크롤 시 작아지는 효과 (선택사항) */
@media (min-width: 769px) {
    body.scrolled .telegram-float-button {
        width: 50px;
        height: 50px;
    }
    
    body.scrolled .telegram-float-button svg {
        width: 26px;
        height: 26px;
    }
}




