/* Docs/Thesis Page Styles - Restored from Inline */

/* Digital Thesis Theme (다크 모드 논문 스타일) */
.thesis-container {
    font-family: 'Pretendard', 'Merriweather', serif;
    /* 한글 폰트 우선 */
    line-height: 1.8;
    color: var(--text-main);
}

.thesis-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
    /* Sticky nav offset */
    position: relative;
}

.thesis-header {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(49, 130, 246, 0.3);
    display: flex;
    align-items: center;
}

.thesis-subheader {
    color: var(--ct-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.citation-card {
    background: rgba(49, 130, 246, 0.08);
    border-left: 3px solid var(--ct-primary);
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'Pretendard', sans-serif;
}

.equation-box {
    background: var(--surface-hover);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
}

/* XAI Gallery Styles */
.xai-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.xai-figure {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xai-figure:hover {
    border-color: var(--ct-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.xai-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xai-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.xai-caption {
    padding: 1.2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--surface-hover);
}

.xai-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.xai-badge {
    font-size: 0.7em;
    background: var(--ct-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.8;
}

.xai-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: keep-all;
    /* 한글 줄바꿈 최적화 */
}

/* Sticky Sidebar */
.sticky-toc {
    position: sticky;
    top: 2rem;
}

.toc-link {
    color: var(--text-dim);
    padding: 0.6rem 1rem;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    display: block;
    font-size: 0.95rem;
    text-decoration: none;
}

.toc-link:hover,
.toc-link.active {
    color: var(--ct-primary);
    border-left-color: var(--ct-primary);
    background: linear-gradient(90deg, rgba(49, 130, 246, 0.05), transparent);
    font-weight: 600;
}