/* Language Loading Animation */
.language-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    display: none; /* 기본적으로 숨김 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.language-loading.active {
    display: flex; /* active일 때만 표시 */
    opacity: 1;
    visibility: visible;
}

.wave-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #fff 0%, #dbf6ff 25%, #96daff 100%);
    animation: logoSlide 1.5s ease;
}

.logoWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
    position: relative;
    animation: upAndDown 1.5s ease infinite;
}

.loading-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: spin2 1.5s ease;
}

.logoText {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: upAndDown 1.5s ease infinite;
}

/* 애니메이션 키프레임 */
@keyframes logoSlide {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 0%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes upAndDown {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin2 {
    0%,
    100% {
        transform: rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: rotate(360deg);
    }
}
