/* 이미지 생성용 로딩 오버레이 스타일 */
.image-export-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-export-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 로딩 스피너 */
.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #6c8df2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 로딩 메시지 */
.loading-message {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Pretendard', sans-serif;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 서브 메시지 */
.loading-submessage {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Pretendard', sans-serif;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 진행 상태 표시 */
.loading-progress {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 1.5s ease-in-out infinite;
}

.progress-dot:nth-child(1) { animation-delay: 0s; }
.progress-dot:nth-child(2) { animation-delay: 0.2s; }
.progress-dot:nth-child(3) { animation-delay: 0.4s; }
.progress-dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .loading-message {
        font-size: 1.3rem;
    }
    
    .loading-submessage {
        font-size: 0.9rem;
        max-width: 300px;
        padding: 0 20px;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }
}

/* 고급 블러 효과 (지원 브라우저) */
@supports (backdrop-filter: blur(10px)) {
    .image-export-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* 백업 스타일 (backdrop-filter 미지원) */
@supports not (backdrop-filter: blur(10px)) {
    .image-export-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}