/* 스플래시 화면 CSS */

/* 스플래시 화면시 스크롤바 숨기기 */
body.splash-active {
    overflow: hidden;
}

/* 스플래시 화면 컨테이너 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* 스플래시 콘텐츠 */
.splash-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
}

/* 스플래시 데코레이션 */
.splash-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.splash-decoration.top {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.splash-decoration.bottom {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 1.0s forwards;
}

.splash-decoration .decoration-star {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.splash-decoration .decoration-star svg {
    width: 16px;
    height: 16px;
}

.splash-decoration .decoration-star svg path {
    fill: #777777;
    transition: fill 0.3s ease;
}

.splash-decoration .horizontal-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #444, transparent);
    margin: 0 20px;
    opacity: 0.6;
}

/* 로고 섹션 */
.splash-logo {
    margin-bottom: 50px;
}

.logo-text {
    font-family: 'SEBANG_Gothic_Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1;
}

.logo-combined {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.logo-subtitle {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* 로더 섹션 */
.splash-loader {
    width: 200px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.loader-bar {
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #FFC14D, #FFD700);
    border-radius: 1px;
    width: 0%;
    animation: loadProgress 2s ease-in-out 1.3s forwards;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: shimmer 1s ease-in-out infinite;
}

.loader-text {
    font-family: 'Pretendard GOV', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* 애니메이션 키프레임 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 60%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

/* 로딩 점 애니메이션 */
.loader-text::after {
    content: '';
    display: inline-block;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .splash-content {
        max-width: 340px;
    }
    
    .splash-decoration.top {
        margin-bottom: 40px;
    }
    
    .splash-decoration.bottom {
        margin-top: 40px;
    }
    
    .splash-decoration .horizontal-divider {
        margin: 0 15px;
    }
    
    .logo-text {
        font-size: 3rem;
    }
    
    .splash-loader {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .splash-content {
        max-width: 300px;
    }
    
    .splash-decoration.top {
        margin-bottom: 30px;
    }
    
    .splash-decoration.bottom {
        margin-top: 30px;
    }
    
    .splash-decoration .horizontal-divider {
        margin: 0 12px;
    }
    
    .splash-decoration .decoration-star svg {
        width: 14px;
        height: 14px;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .splash-logo {
        margin-bottom: 30px;
    }
    
    .splash-loader {
        width: 140px;
    }
}

/* 고해상도 화면 지원 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .loader-progress {
        background: linear-gradient(90deg, #FFC14D, #FFD700);
    }
}

/* Dark mode 대응 (이미 다크 테마이므로 유지) */
@media (prefers-color-scheme: light) {
    .splash-screen {
        background: #1a1a1a; /* 다크 테마 유지 */
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    .splash-screen,
    .logo-plain,
    .logo-proven,
    .logo-subtitle,
    .splash-loader,
    .loader-progress {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .loader-progress {
        width: 100%;
    }
}

/* 프린트 시 숨김 */
@media print {
    .splash-screen {
        display: none;
    }
}