/**
 * Chat Popup Widget Styles
 * 채팅 위젯 전용 스타일시트
 */

/* 채팅 버튼 */
.chat-popup-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to right, #2276be, #4a9ad6);
    color: white;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-popup-button:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.chat-popup-button svg {
    width: 2rem;
    height: 2rem;
    transition: transform 0.3s;
}

.chat-popup-button:hover svg {
    transform: scale(1.1);
}

/* 버튼 알림 표시 */
.chat-popup-notification {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1rem;
    height: 1rem;
    background-color: #ef4444;
    border-radius: 9999px;
}

.chat-popup-notification.ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 배경 오버레이 */
.chat-popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 40;
    backdrop-filter: blur(4px);
    display: none;
}

/* iframe 컨테이너 */
.chat-popup-iframe {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    width: 550px;
    height: 650px;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: none;
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .chat-popup-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }

    .chat-popup-iframe {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}
