@charset "utf-8";

/* 페이지 전환 시 body 숨김 (깜박임 방지) */
body.page-loading {
    visibility: hidden !important;
}

/* 전체 화면 오버레이 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    background: #ffffff;
}

.loading.is-active {
    display: flex;
}

/* 중앙 점 3개 애니메이션 - 순차적으로 커지는 효과 */
.loading .spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.loading .spinner .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main-color, #4F46E5);
    animation: dotPulse 0.9s infinite ease-in-out;
}

.loading .spinner .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading .spinner .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.loading .spinner .dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* o O o → o o O → O o o 순차 커지기 애니메이션 */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    33% {
        transform: scale(1.4);
        opacity: 1;
    }
    66% {
        transform: scale(0.6);
        opacity: 0.5;
    }
}

/* 텍스트 스타일 */
.loading p {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.loading p.long-wait {
    color: #333;
    font-weight: 600;
}
