/* 기본 초기화 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0e12;
    color: #a0a5b5;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    line-height: 1.6;
}

/* 레이아웃 구조 */
.wiki-container {
    display: flex;
    min-height: 100vh;
}

/* 모바일 전용 헤더 */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: #050507;
    border-bottom: 1px solid #1a1c23;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 90;
}

.mobile-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.menu-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #a0a5b5;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 모바일 배경 오버레이 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 좌측 사이드바 (Dark Sidebar) */
.sidebar {
    width: 260px;
    background-color: #050507;
    border-right: 1px solid #1a1c23;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 25px 20px;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: #ffffff;
    color: #000;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.main-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.sub-title {
    color: #505565;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* 목차 메뉴 (TOC Nav) */
.toc-title {
    color: #404555;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.toc-nav ul {
    list-style: none;
}

.toc-nav li {
    margin-bottom: 4px;
}

.toc-nav a {
    color: #808595;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-nav a:hover {
    color: #fff;
    background-color: #151821;
}

/* 우측 본문 영역 (Main Content) */
.content-area {
    margin-left: 260px;
    flex: 1;
    padding: 40px 60px;
    max-width: 1200px;
}
.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #1a1c23;
    padding-bottom: 20px;
}

.breadcrumb {
    color: #4a5060;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.page-header h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header .description {
    color: #707585;
    font-size: 0.95rem;
}

/* 섹션 공통 스타일 */
.wiki-section {
    margin-bottom: 50px;
    scroll-margin-top: 70px;
}

.section-num {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.wiki-section h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.wiki-section p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

code {
    background-color: #1a1d26;
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: monospace;
}

/* 그리드 시스템 (카드 배치) */
.grid-container {
    display: grid;
    gap: 15px;
    margin: 15px 0;
}

.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

/* 카드 스타일 (Dark Card) */
.card {
    background-color: #12141c;
    border: 1px solid #1e2230;
    border-radius: 8px;
    padding: 16px;
}

.card h3 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.85rem;
    color: #8a90a0;
    margin-bottom: 0;
}

.card-stat {
    color: #60a5fa !important;
    font-weight: 600;
}

/* 콜아웃 박스 (안내 상자) */
.callout {
    padding: 14px 18px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.callout-blue {
    background-color: #0f1a2e;
    border-color: #3b82f6;
    color: #93c5fd;
}

.callout-warning {
    background-color: #261c0c;
    border-color: #f59e0b;
    color: #fde047;
}

.callout-red {
    background-color: #2a1215;
    border-color: #ef4444;
    color: #fca5a5;
}

/* 길라잡이 / 던전보상 순서 목록 (Step Box) */
.step-box ol {
    list-style: none;
    background-color: #12141c;
    border: 1px solid #1e2230;
    border-radius: 8px;
    padding: 15px 20px;
}

.step-box li {
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #1a1d28;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-box li:last-child {
    border-bottom: none;
}

.step-box li span {
    background-color: #1e2332;
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 모바일 전용 미디어 쿼리 (핵심!) */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        top: 0;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content-area {
        margin-left: 0;
        padding: 76px 20px 40px 20px;
    }

    .grid-2col, .grid-3col {
        grid-template-columns: 1fr;
    }
}
/* 섹션 하단에 구분선 추가 */
.wiki-section {
    border-bottom: 1px solid #555555; /* 선 색상 */
    padding-bottom: 40px;            /* 선과 내용 사이 간격 */
    margin-bottom: 40px;             /* 선과 다음 섹션 사이 간격 */
}

/* 맨 마지막 섹션은 구분선 제외 */
.wiki-section:last-child {
    border-bottom: none;
}
