@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');



:root {

    --bg-color: #ffffff;

    --sidebar-bg: #f9fafb;

    --text-title: #191f28; 

    --text-body: #333d4b;

    --text-muted: #8b95a1;

    --border: #e5e8eb;

    --blue: #3182f6; 

    

    /* HTTP Method Colors */

    --method-get: #3182f6;

    --method-get-bg: rgba(49, 130, 246, 0.1);

    --method-post: #04b014;

    --method-post-bg: rgba(4, 176, 20, 0.1);

    --method-put: #f59f00;

    --method-put-bg: rgba(245, 159, 0, 0.1);

    --method-delete: #f04452;

    --method-delete-bg: rgba(240, 68, 82, 0.1);

}



* { box-sizing: border-box; margin: 0; padding: 0; }



body {

    font-family: 'Pretendard', -apple-system, sans-serif;

    background-color: var(--bg-color);

    color: var(--text-body);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

}



.gnb { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; z-index: 1000; }

.gnb_inner { width: 100%; max-width: 1400px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }

.gnb_logo { font-weight: 800; font-size: 1.2rem; color: var(--text-title); text-decoration: none; }

.gnb_right { display: flex; align-items: center; gap: 32px; }

.gnb_nav { display: flex; gap: 28px; }

.gnb_nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }

.gnb_nav a:hover, .gnb_nav a.active { color: var(--text-title); }



.api_layout {

    display: flex;

    max-width: 1400px;

    margin: 60px auto 0;

    min-height: calc(100vh - 60px);

}



.api_sidebar {

    width: 280px;

    background-color: var(--sidebar-bg);

    border-right: 1px solid var(--border);

    position: fixed;

    top: 60px;

    bottom: 0;

    overflow-y: auto;

}



/* 1. 사이드바 스크롤바 모던 커스텀 (Mac OS 스타일) */

.api_sidebar::-webkit-scrollbar { width: 6px; }

.api_sidebar::-webkit-scrollbar-track { background: transparent; }

.api_sidebar::-webkit-scrollbar-thumb { background: #d1d6db; border-radius: 4px; }

.api_sidebar::-webkit-scrollbar-thumb:hover { background: #b0b8c1; }



/* 2. 검색창 상단 스티키 고정 */

.sidebar_search { 

    position: sticky; 

    top: 0; 

    background-color: var(--sidebar-bg); 

    padding: 24px 24px 20px; 

    z-index: 10;

    /* 스크롤 시 자연스러운 경계를 위해 은은한 그라데이션 및 보더 처리 */

    box-shadow: 0 4px 6px -6px rgba(0,0,0,0.1); 

}

.search_input { width: 100%; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 0.9rem; outline: none; transition: border 0.2s; }

.search_input:focus { border-color: var(--blue); }



.sidebar_nav { padding: 0 0 24px 0; }

.nav_group { margin-bottom: 8px; }



/* 3. 아코디언 메뉴 타이틀 및 쉐브론 애니메이션 */

.nav_group_title { 

    display: flex; 

    justify-content: space-between; 

    align-items: center; 

    font-size: 0.8rem; 

    font-weight: 700;

    color: var(--text-muted); 

    text-transform: uppercase; 

    letter-spacing: 0.05em; 

    padding: 12px 24px; 

    cursor: pointer;

    user-select: none;

    transition: color 0.2s, background-color 0.2s;

}

.nav_group_title:hover { color: var(--text-title); background-color: rgba(0,0,0,0.02); }

.nav_group_title .chevron { transition: transform 0.3s ease; }

/* 접혔을 때 쉐브론 방향 변경 */

.nav_group.is_collapsed .chevron { transform: rotate(-90deg); }



/* 4. Grid 방식의 부드러운 아코디언 펼침 애니메이션 */

.nav_group_list_wrapper {

    display: grid;

    grid-template-rows: 1fr;

    transition: grid-template-rows 0.3s ease-out;

}

.nav_group.is_collapsed .nav_group_list_wrapper {

    grid-template-rows: 0fr;

}

.nav_group_list {

    overflow: hidden;

}



/* 5. 링크 스타일링 (Active 인디케이터 추가) */

.nav_link { display: flex; align-items: center; padding: 8px 24px 8px 32px; text-decoration: none; color: var(--text-body); font-size: 0.95rem; transition: background 0.2s, color 0.2s; position: relative; }

.nav_link:hover { background-color: rgba(0, 0, 0, 0.03); color: var(--text-title); }

.nav_link.active { background-color: rgba(49, 130, 246, 0.08); color: var(--blue); font-weight: 600; }

/* 토스/스트라이프 방식의 Active 좌측 블루 라인 포인트 */

.nav_link.active::before { content: ''; position: absolute; left: 0; top: 10%; height: 80%; width: 3px; background: var(--blue); border-radius: 0 4px 4px 0; }



.method_badge { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-right: 10px; width: 42px; text-align: center; }

.method_get { color: var(--method-get); background: var(--method-get-bg); }

.method_post { color: var(--method-post); background: var(--method-post-bg); }

.method_put { color: var(--method-put); background: var(--method-put-bg); }

.method_delete { color: var(--method-delete); background: var(--method-delete-bg); }

.method_badge.large { font-size: 0.9rem; padding: 4px 10px; width: auto; }



.api_content { flex: 1; margin-left: 280px; padding: 40px 60px; max-width: 1000px; }

.api_header h1 { font-size: 2.5rem; font-weight: 800; color: var(--text-title); margin-bottom: 16px; }

.api_header p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }



.base_url_box { display: inline-flex; align-items: center; background: #f2f4f6; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); }

.url_label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-right: 12px; }

.url_value { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.95rem; color: var(--text-title); }



.divider { border: 0; height: 1px; background: var(--border); margin: 60px 0; }



.endpoint_section { margin-bottom: 80px; }

.endpoint_header { margin-bottom: 16px; }

.endpoint_header h2 { font-size: 1.8rem; font-weight: 700; color: var(--text-title); margin-bottom: 12px; }

.endpoint_url { display: flex; align-items: center; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 1.1rem; font-weight: 600; color: var(--text-title); gap: 12px; }

.endpoint_desc { font-size: 1.05rem; color: var(--text-body); margin-bottom: 32px; }



.spec_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.spec_details h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-title); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--text-title); }



.param_table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.param_table th, .param_table td { padding: 12px 0; text-align: left; border-bottom: 1px solid var(--border); }

.param_table th { font-weight: 600; color: var(--text-muted); }

.param_table td code { font-family: 'JetBrains Mono', Consolas, monospace; background: #f2f4f6; padding: 2px 6px; border-radius: 4px; font-size: 0.9rem; color: var(--text-title); }



.type_string { color: #0d825b; font-family: monospace; }

.type_number { color: #d94e2e; font-family: monospace; }

.req_true { color: var(--method-delete); font-weight: 600; font-size: 0.85rem; }

.req_false { color: var(--text-muted); font-size: 0.85rem; }



.spec_code { display: flex; flex-direction: column; gap: 20px; }

.code_block_wrap { background: #1e1e1e; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.code_header { background: #2d2d2d; padding: 8px 16px; border-bottom: 1px solid #444; }

.code_title { font-size: 0.8rem; font-weight: 600; color: #a0a0a0; text-transform: uppercase; }

.code_block_wrap pre { margin: 0; padding: 16px; overflow-x: auto; }

.code_block_wrap code { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.9rem; line-height: 1.5; }



@media (max-width: 1024px) { .spec_grid { grid-template-columns: 1fr; } }

@media (max-width: 768px) { .api_sidebar { display: none; } .api_content { margin-left: 0; padding: 24px; } }