/* Purple Whale Custom Styles */

@import url('//cdn.rawgit.com/innks/NanumSquareRound/master/nanumsquareround.min.css');

/* 기본 스타일 */
body {
    background-color: #f8fafc;
    font-family: 'NanumSquareRound', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    color: #1e293b;
}

.logo {
    height: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* HTMX 로딩 인디케이터 관련 스타일 */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: flex;
}

.htmx-request.htmx-indicator {
    display: flex;
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* 커스텀 컬러 */
.bg-purple-whale {
    background-color: #784BEF;
}

.text-purple-whale {
    color: #4F2DB8;
}

.border-purple-whale {
    border-color: #6C63FF;
}

/* 커스텀 그림자 */
.shadow-purple {
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.2);
}

/* 감정 분석 결과 카드 */
.emotion-result-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.emotion-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 로딩 인디케이터 커스텀 스타일 */
.loading-pulse {
    position: relative;
}

.loading-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(108, 99, 255, 0.05);
    border-radius: inherit;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.4;
    }
}

/* 반응형 조정 */
@media (max-width: 640px) {}

/* 버튼 커스텀 효과 */
.btn-effect {
    position: relative;
    overflow: hidden;
}

.btn-effect:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-effect:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* 감정 분석 대기 화면 애니메이션 */
@keyframes move-whale {
    0% {
        left: 0%;
    }

    50% {
        left: 85%;
    }

    100% {
        left: 0%;
    }
}

@keyframes progress-whale {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

@keyframes float-whale {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes move-waves {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.animate-progress-whale {
    animation: progress-whale 2s linear infinite;
}

.whale-float {
    animation: float-whale 2s ease-in-out infinite;
}

.wave-animation {
    animation: move-waves 2s ease-in-out infinite;
}