:root {
    --bg-primary: #121214;
    --bg-secondary: #1a1a1e;
    --bg-tertiary: #26262b;
    --accent-purple: #b57bed;
    --accent-green: #52b788;
    --accent-orange: #f4a261;
    --accent-teal: #2ec4b6;
    --accent-blue: #4ea8de;
    --text-main: #e2e2e5;
    --text-muted: #a0a0aa;
    --border-color: #2e2e35;
    --code-bg: #141416;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.8;
    padding: 40px 20px;
}

.container { max-width: 800px; margin: 0 auto; }

header {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

h1 { font-size: 2.2rem; color: #ffffff; margin-bottom: 12px; font-weight: 800; }
h1 span { color: var(--accent-purple); }
.subtitle { color: #a0a0aa; font-size: 1.1rem; }

/* 기능 태그 뱃지 */
.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}
.tag {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid;
    font-weight: 600;
}
.tag-outfit  { border-color: var(--accent-purple); color: #d8b4fe; background: #1e1528; }
.tag-acc     { border-color: var(--accent-teal);   color: #a0f0e8; background: #0e1e1c; }
.tag-hair    { border-color: var(--accent-orange);  color: #fcd5a8; background: #1e1510; }

section { margin-bottom: 45px; }

h2 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 4px solid var(--accent-purple);
}

h3 { font-size: 1.15rem; color: #ffffff; margin: 25px 0 12px 0; }

p { margin-bottom: 14px; color: #b0b0b5; }

ul, ol { margin-left: 20px; margin-bottom: 20px; }
li { margin-bottom: 8px; color: #b0b0b5; }

strong { color: #ffffff; }

.callout {
    background-color: #1e121c;
    border-left: 4px solid #f72585;
    padding: 18px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
.callout-title { font-weight: bold; margin-bottom: 6px; color: #ff70a6; }

pre {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 12px 0;
}
code { font-family: Consolas, monospace; font-size: 0.9rem; color: #e5c07b; }

.inline-code {
    background-color: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ef476f;
    font-size: 0.9rem;
}

/* 탭별 색상 */
.tab-outfit  { border-left-color: var(--accent-purple) !important; }
.tab-acc     { border-left-color: var(--accent-teal)   !important; }
.tab-hair    { border-left-color: var(--accent-orange)  !important; }

.node-badge {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 6px;
}
.badge-purple { border-color: var(--accent-purple); color: #d8b4fe; }
.badge-green  { border-color: var(--accent-green);  color: #b7e4c7; }
.badge-teal   { border-color: var(--accent-teal);   color: #a0f0e8; }
.badge-orange { border-color: var(--accent-orange);  color: #fcd5a8; }
.badge-blue   { border-color: var(--accent-blue);   color: #90e0ef; }

.concept-box {
    background-color: #16161a;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
    border: 1px solid #252529;
}
.concept-box p { margin-bottom: 0; }
.concept-box .node-desc {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #b0b0b5;
    line-height: 1.5;
}
.concept-box .warn-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #e0d5f0;
    border-top: 1px dashed #443558;
    padding-top: 8px;
    line-height: 1.4;
}

.screenshot-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin: 24px 0;
    text-align: center;
}
.screenshot-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #2c2c32;
}
.screenshot-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

.inner-tip {
    margin-top: 8px;
    padding: 10px;
    background: #222226;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #ffcc00;
    border-left: 3px solid #ffcc00;
}

/* 탭 섹션 구분 박스 */
.tab-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.tab-section-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}
.title-outfit { color: #d8b4fe; }
.title-acc    { color: #a0f0e8; }
.title-hair   { color: #fcd5a8; }

/* 노드 출력 테이블 */
.output-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}
.output-table th {
    text-align: left;
    padding: 6px 10px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}
.output-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #1e1e24;
    color: #b0b0b5;
    vertical-align: top;
}
.output-table tr:last-child td { border-bottom: none; }
.out-name { color: #ffffff; font-weight: 600; font-family: Consolas, monospace; font-size: 0.85rem; }
.out-type { color: var(--accent-blue); font-family: Consolas, monospace; font-size: 0.82rem; }
