/* ==================== */
/* 전역 클릭 효과 스타일 */
/* UX 기준: 작고 미묘한 클릭 피드백 */
/* ==================== */

/* 클릭 가능한 요소에 기본 스타일 */
button,
a,
[role="button"],
.clickable {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 리플 효과 컨테이너 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(74, 111, 217, 0.3);
    transform: scale(0);
    pointer-events: none;
    z-index: 9999;
    animation: rippleExpand 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* 리플 확장 애니메이션 */
@keyframes rippleExpand {
    0% {
        transform: scale(0);
        opacity: 0.4;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 클릭 시 미세한 스케일 효과 */
.click-feedback {
    animation: clickFeedback 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes clickFeedback {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

/* 터치 디바이스 최적화 */
@media (hover: none) and (pointer: coarse) {
    .ripple-effect {
        animation-duration: 0.4s;
    }
}

/* 접근성: 애니메이션 비활성화 옵션 */
@media (prefers-reduced-motion: reduce) {
    .ripple-effect,
    .click-feedback {
        animation: none;
    }
}

