/* 카카오톡 채팅 버튼 스타일 */
/* 모바일 우선 반응형 디자인 */

/* ===== KAKAO CHAT BUTTON ===== */
.ai_kakao-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    
    /* 버튼 기본 스타일 */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FEE500 0%, #FFD700 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(254, 229, 0, 0.3);
    
    /* 텍스트 스타일 */
    color: #3C1E1E;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    
    /* 호버 효과 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.ai_kakao-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(254, 229, 0, 0.4);
    background: linear-gradient(135deg, #FFD700 0%, #FEE500 100%);
}

.ai_kakao-chat-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(254, 229, 0, 0.3);
}

/* ===== KAKAO CHAT BUTTON ICON ===== */
.ai_kakao-chat-button__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #3C1E1E;
}

/* ===== KAKAO CHAT BUTTON TEXT ===== */
.ai_kakao-chat-button__text {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== TABLET STYLES (768px 이상) ===== */
@media (min-width: 768px) {
    .ai_kakao-chat-button {
        bottom: 30px;
        right: 30px;
        padding: 14px 20px;
        font-size: 15px;
        gap: 10px;
    }
    
    .ai_kakao-chat-button__icon {
        width: 22px;
        height: 22px;
    }
}

/* ===== DESKTOP STYLES (1024px 이상) ===== */
@media (min-width: 1024px) {
    .ai_kakao-chat-button {
        bottom: 40px;
        right: 40px;
        padding: 16px 24px;
        font-size: 16px;
        gap: 12px;
    }
    
    .ai_kakao-chat-button__icon {
        width: 24px;
        height: 24px;
    }
}

/* ===== LARGE DESKTOP STYLES (1280px 이상) ===== */
@media (min-width: 1280px) {
    .ai_kakao-chat-button {
        bottom: 50px;
        right: 50px;
        padding: 18px 28px;
        font-size: 17px;
    }
}

/* ===== ANIMATION ENHANCEMENTS ===== */
@keyframes kakaoButtonPulse {
    0% {
        box-shadow: 0 4px 20px rgba(254, 229, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(254, 229, 0, 0.5), 0 0 0 10px rgba(254, 229, 0, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(254, 229, 0, 0.3);
    }
}

.ai_kakao-chat-button {
    animation: kakaoButtonPulse 2s infinite;
}

.ai_kakao-chat-button:hover {
    animation: none;
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.ai_kakao-chat-button:focus {
    outline: 2px solid #3C1E1E;
    outline-offset: 2px;
}

.ai_kakao-chat-button:focus:not(:focus-visible) {
    outline: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .ai_kakao-chat-button {
        animation: none;
        transition: none;
    }
    
    .ai_kakao-chat-button:hover {
        transform: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .ai_kakao-chat-button {
        display: none;
    }
}



/* ===== LOADING STATE ===== */
.ai_kakao-chat-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ai_kakao-chat-button.loading .ai_kakao-chat-button__icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE HIDING (선택적) ===== */
@media (max-width: 480px) {
    .ai_kakao-chat-button__text {
        display: none;
    }
    
    .ai_kakao-chat-button {
        padding: 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
    
    .ai_kakao-chat-button__icon {
        width: 24px;
        height: 24px;
    }
}

