/* KAICE Slide Builder - 프론트엔드 스타일 */

.kaice-slide-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kaice-slide-container.standalone {
    height: 100vh;
    border: none;
    border-radius: 0;
}

.kaice-slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    overflow-y: auto;
}

.kaice-slide.active {
    display: block;
}

/* 제목 슬라이드 */
.kaice-slide-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.title-content h1.main-title {
    font-size: 3em;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: bold;
}

.title-content h2.sub-title {
    font-size: 1.8em;
    margin: 0 0 30px 0;
    color: #666;
    font-weight: normal;
}

.title-content .organization {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    color: #007cba;
    font-weight: 500;
}

.title-content .presentation-date,
.title-content .author {
    font-size: 1em;
    margin: 5px 0;
    color: #888;
}

.slide-logo {
    max-width: 150px;
    max-height: 80px;
    margin-bottom: 20px;
}

/* 콘텐츠 슬라이드 */
.kaice-slide-content .content-header {
    margin-bottom: 30px;
}

.kaice-slide-content .slide-title {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    color: #333;
    border-bottom: 3px solid #007cba;
    padding-bottom: 10px;
}

.kaice-slide-content .chapter-info {
    font-size: 1em;
    color: #666;
    margin: 0;
    font-style: italic;
}

.kaice-slide-content .content-body {
    font-size: 1.2em;
    line-height: 1.6;
    color: #444;
}

.kaice-slide-content .content-body p {
    margin-bottom: 15px;
}

.kaice-slide-content .content-body ul,
.kaice-slide-content .content-body ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.kaice-slide-content .content-body li {
    margin-bottom: 8px;
}

/* 팁 슬라이드 */
.kaice-slide-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid #007cba;
    border-radius: 8px;
    padding: 30px;
    height: calc(100% - 60px);
    margin: 30px;
}

.kaice-slide-tip .tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.kaice-slide-tip .tip-title {
    font-size: 1.8em;
    margin: 0;
    color: #007cba;
    flex: 1;
}

.kaice-slide-tip .tip-icon {
    font-size: 2em;
    margin-left: 20px;
}

.kaice-slide-tip .tip-main-point {
    font-size: 1.4em;
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 600;
}

.kaice-slide-tip .tip-details {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.kaice-slide-tip .tip-details li {
    margin-bottom: 10px;
    color: #555;
}

/* 페이지 번호 */
.page-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.9em;
    color: #888;
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 15px;
}

/* 네비게이션 */
.kaice-slide-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 1000;
}

.kaice-nav-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.kaice-nav-btn:hover {
    background: #005a87;
}

.kaice-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.kaice-nav-btn.kaice-fullscreen {
    background: #666;
}

.kaice-nav-btn.kaice-fullscreen:hover {
    background: #444;
}

.kaice-slide-counter {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 전체화면 모드 */
.kaice-slide-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

/* 오류 메시지 */
.kaice-slide-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3232;
    font-size: 1.2em;
    text-align: center;
    background: #ffeaea;
    border: 1px solid #dc3232;
    border-radius: 5px;
    margin: 20px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .kaice-slide {
        padding: 20px;
    }
    
    .title-content h1.main-title {
        font-size: 2em;
    }
    
    .title-content h2.sub-title {
        font-size: 1.4em;
    }
    
    .kaice-slide-content .slide-title {
        font-size: 1.8em;
    }
    
    .kaice-slide-navigation {
        bottom: 10px;
        padding: 8px 16px;
        gap: 10px;
    }
    
    .kaice-nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media print {
    .kaice-slide-navigation {
        display: none;
    }
    
    .kaice-slide-container {
        height: auto;
        border: none;
        box-shadow: none;
    }
    
    .kaice-slide {
        display: block !important;
        page-break-after: always;
        height: auto;
        min-height: 90vh;
    }
    
    .kaice-slide:last-child {
        page-break-after: avoid;
    }
}