/* 퀵메뉴 전체가 함께 둥실둥실하는 애니메이션 - 더 임팩트있게 */
@keyframes groupFloat {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    20% { transform: translateY(-25px) translateX(5px) rotate(1.5deg); }
    40% { transform: translateY(-35px) translateX(-3px) rotate(-1deg); }
    60% { transform: translateY(-20px) translateX(7px) rotate(2deg); }
    80% { transform: translateY(-15px) translateX(-4px) rotate(-0.5deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

/* 개별 아이템 미세 움직임 - 더 다이나믹하게 */
@keyframes itemWiggle1 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.03); }
    50% { transform: rotate(0deg) scale(1.05); }
    75% { transform: rotate(-1.5deg) scale(1.02); }
}

@keyframes itemWiggle2 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-2.5deg) scale(1.02); }
    50% { transform: rotate(0deg) scale(1.04); }
    75% { transform: rotate(1.8deg) scale(1.03); }
}

/* 간단한 퀵메뉴 - 큰 이미지에 맞춘 위치 */
.quick-menu-simple {
    position: fixed;
    bottom: 0px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    animation: groupFloat 5.5s ease-in-out infinite;
    transform-origin: center center;
}

/* 퀵메뉴 아이템 기본 스타일 - width만 지정, 높이는 자동 비율 조정 */
.quick-item {
    width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.quick-item:hover {
    transform: scale(1.05);
    z-index: 2001;
}

.quick-item img {
    width: 180px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 카카오톡 상담 - 미세한 추가 움직임 */
.kakao-consult {
    animation: itemWiggle1 3.2s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* 전화 상담 - 슬라이드 효과 (높이 문제 해결) */
.phone-consult {
    animation: itemWiggle2 3.8s ease-in-out infinite;
    animation-delay: 1s;
    overflow: hidden;
    position: relative;
}

/* 기본 이미지는 relative로 높이를 만들어줌 */
.phone-default {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.phone-default img {
    width: 180px;
}

/* 전화번호 이미지는 absolute로 오버레이 */
.phone-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.phone-number img {
    width: 180px;
}

/* 호버 시 슬라이드 효과 */
.phone-consult:hover .phone-default {
    transform: translateX(-100%);
}

.phone-consult:hover .phone-number {
    transform: translateX(0);
}

/* 전화상담 호버시 애니메이션 일시정지 */
.phone-consult:hover {
    animation-play-state: paused;
}

/* 추가 애니메이션 효과 - 페이드 인 */
.quick-menu-simple {
    animation: fadeInUp 0.8s ease-out, groupFloat 5.5s ease-in-out infinite 0.8s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .quick-menu-simple {
        bottom: 100px;
        right: 10px;
        gap: 4px;
        animation: fadeInUp 0.8s ease-out, groupFloat 6s ease-in-out infinite 0.8s;
    }

    .quick-item {
        width: 140px;
    }

    .quick-item img {
        width: 140px;
    }

    .phone-default img {
        width: 140px;
    }

    .phone-number img {
        width: 140px;
    }

    .kakao-consult {
        animation: itemWiggle1 4.2s ease-in-out infinite;
    }

    .phone-consult {
        animation: itemWiggle2 4.8s ease-in-out infinite;
    }

    @keyframes groupFloat {
        0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
        20% { transform: translateY(-18px) translateX(3px) rotate(1deg); }
        40% { transform: translateY(-25px) translateX(-2px) rotate(-0.8deg); }
        60% { transform: translateY(-12px) translateX(4px) rotate(1.2deg); }
        80% { transform: translateY(-8px) translateX(-2px) rotate(-0.5deg); }
        100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    }
}

/* 작은 화면에서 더 축소 */
@media (max-width: 480px) {
    .quick-menu-simple {
        bottom: 80px;
        gap: 3px;
    }

    .quick-item {
        width: 120px;
    }

    .quick-item img {
        width: 120px;
    }

    .phone-default img {
        width: 120px;
    }

    .phone-number img {
        width: 120px;
    }

    @keyframes groupFloat {
        0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
        20% { transform: translateY(-15px) translateX(2px) rotate(0.8deg); }
        40% { transform: translateY(-22px) translateX(-1px) rotate(-0.6deg); }
        60% { transform: translateY(-10px) translateX(3px) rotate(1deg); }
        80% { transform: translateY(-6px) translateX(-1px) rotate(-0.4deg); }
        100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    }
}
