/* HR 분석 리포트 슬라이드 뷰어 전용 스타일 */

:root {
    --primary-color: rgb(87, 117, 144);
    --secondary-color: rgb(163, 177, 138);
    --accent-color: rgb(218, 223, 202);
    --bg-color: rgb(250, 251, 248);
    --text-color: #444444;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

/* 슬라이드 뷰어 메인 컨테이너 */
.slide-viewer {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.slide-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.slide-frame {
    width: 1280px;
    height: 720px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px var(--shadow-color);
    overflow: hidden;
    position: relative;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.slide-frame:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.slide-content {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--white);
    display: block;
}

/* 네비게이션 바 */
.navigation-bar {
    background: linear-gradient(135deg, var(--primary-color), rgba(87, 117, 144, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-button:active {
    transform: translateY(-1px);
}

.nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-button i {
    font-size: 14px;
}

/* 슬라이드 표시기 */
.slide-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

.slide-dots {
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.slide-title {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fullscreen-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 로딩 상태 */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
}

.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .slide-frame {
        transform: scale(0.75);
    }
    
    .navigation-bar {
        padding: 18px 32px;
    }
    
    .slide-title {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .slide-frame {
        transform: scale(0.65);
    }
    
    .nav-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .slide-frame {
        transform: scale(0.55);
    }
    
    .navigation-bar {
        padding: 16px 24px;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-section {
        gap: 16px;
    }
    
    .slide-title {
        font-size: 16px;
        order: -1;
        width: 100%;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .slide-frame {
        transform: scale(0.45);
    }
    
    .navigation-bar {
        padding: 12px 16px;
    }
    
    .nav-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .slide-dots {
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 640px) {
    .slide-frame {
        transform: scale(0.35);
    }
    
    .slide-container {
        padding: 10px;
    }
    
    .navigation-bar {
        padding: 10px 12px;
    }
    
    .nav-section {
        gap: 12px;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .slide-indicator {
        gap: 12px;
        font-size: 14px;
    }
}

/* 풀스크린 모드 */
.slide-viewer:-webkit-full-screen .slide-frame {
    transform: scale(1);
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.slide-viewer:-moz-full-screen .slide-frame {
    transform: scale(1);
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.slide-viewer:fullscreen .slide-frame {
    transform: scale(1);
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* 접근성 개선 */
.nav-button:focus,
.dot:focus,
.fullscreen-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* 프린트 스타일 */
@media print {
    .navigation-bar {
        display: none;
    }
    
    .slide-frame {
        transform: scale(1);
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .slide-viewer {
        background-color: #2c3e50;
    }
}

/* 애니메이션 감소 선호 사용자를 위한 설정 */
@media (prefers-reduced-motion: reduce) {
    .slide-frame,
    .nav-button,
    .dot,
    .fullscreen-toggle {
        transition: none;
    }
    
    .loading::before {
        animation: none;
    }
}