:root {
  /* Theme Colors */
  --green-dark: #168d63;
  --green-medium: #5ac496;
  --green-pale: #cdfbe4;
  --blue-accent: #00bbff;
  --blue-pale: #d0f5ff;
  --purple-link: #8084FF;

  --blue: #2e80f2;
  --pink: #ff82b2;
  --yellow: #e5b567;
  --orange: #e87d3e;
  --red: #e83e3e;
  --purple: #9e86c8;

  /* Layout */
  --sidebar-width: 240px;
  --graph-width: 360px;

  /* Light Theme */
  --bg-color: #ffffff;
  --bg-secondary: #fafafa;
  --text-color: #1a1a1a;
  --text-muted: #666666;
  --text-faint: #999999;
  --border-color: #e0e0e0;
  --border-dashed: #ccc;
  --primary-color: var(--green-dark);
  --secondary-color: var(--green-medium);

  /* Heading Colors */
  --h1-color: #1a1a1a;
  --h2-color: #0f6b4a;
  --h3-color: #168d63;
  --h4-color: #5ac496;
  --h5-color: #5AC496;
  --h6-color: var(--text-muted);

  /* Text Styles */
  --strong-color: var(--text-color);
  --em-color: var(--purple-link);
  --quote-color: var(--green);

  /* Code */
  --code-bg: #f6f7f8;
  --code-color: var(--text-color);

  /* Fonts */
  --font-text: 'SUITE Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, SFMono-Regular, Consolas, 'Roboto Mono', monospace;

  /* Heading Sizes (rem - obtoweb style) */
  --h1-size: 2rem;
  --h2-size: 1.75rem;
  --h3-size: 1.4rem;
  --h4-size: 1.2rem;
  --h5-size: 1.1rem;
  --h6-size: 1rem;

  /* Line Height */
  --line-height: 1.5;
}

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

body {
  font-family: var(--font-text);
  color: var(--text-color);
  background: var(--bg-color);
  line-height: var(--line-height);
}

/* 상단 헤더 */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: white;
  border-bottom: 1px dashed var(--border-dashed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.header-logo:hover {
  color: var(--primary-color);
}

/* 햄버거 버튼 */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-color);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 사이드바 오버레이 */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.header-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 600;
}

.tab-icon {
  font-size: 14px;
}

/* 레이아웃 */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: 56px;
}

/* 사이드바 */
.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px dashed var(--border-dashed);
  padding: 24px 20px;
  position: fixed;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  z-index: 50;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.logo a {
  text-decoration: none;
  color: var(--primary-color);
  transition: opacity 0.2s;
}

.logo a:hover {
  opacity: 0.8;
}

/* 파일 트리 */
.file-tree {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.nav-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-folder {
  border-radius: 4px;
}

.folder-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  user-select: none;
}

.folder-title:hover {
  background: var(--bg-secondary);
}

.folder-icon {
  font-size: 10px;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.nav-folder:not(.is-collapsed) .folder-icon {
  transform: rotate(90deg);
}

.folder-name {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-count {
  font-size: 11px;
  color: var(--text-faint);
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 10px;
}

.folder-children {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  gap: 1px;
}

.nav-folder.is-collapsed .folder-children {
  display: none;
}

.nav-file {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}

.nav-file:hover {
  background: var(--bg-secondary);
  color: var(--text-color);
}

.nav-file.root-file {
  padding-left: 10px;
}

.nav-more {
  font-size: 12px;
  color: var(--text-faint);
  padding: 4px 10px;
  font-style: italic;
}

/* Topic 폴더 (메인 카테고리) */
.nav-topic > .folder-title .folder-name {
  font-weight: 600;
  color: var(--primary-color);
}

.nav-topic > .folder-title .folder-icon {
  color: var(--primary-color);
}

/* SubTopic 폴더 (하위 카테고리) */
.nav-subtopic {
  margin-left: 4px;
  border-left: 2px solid var(--border-color);
  padding-left: 8px;
}

.nav-subtopic > .folder-title {
  padding: 4px 8px;
}

.nav-subtopic > .folder-title .folder-name {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-muted);
}

.nav-subtopic > .folder-title .folder-icon {
  font-size: 8px;
}

.nav-subtopic > .folder-title .folder-count {
  font-size: 10px;
  padding: 0 4px;
}

.nav-subtopic .folder-children {
  padding-left: 12px;
}

.nav-subtopic .nav-file {
  font-size: 12px;
  padding: 3px 8px;
}

/* Topic 인덱스 링크 */
.nav-index {
  font-weight: 500;
  color: var(--primary-color) !important;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 4px;
  padding-bottom: 6px !important;
}

/* 메인 컨텐츠 */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 48px 40px;
  max-width: 100%;
  position: relative;
}

.page-content {
  flex: 0 1 720px;
  max-width: 720px;
  padding: 0;
  margin-left: 40px;
}

.page-title {
  font-size: var(--h1-size);
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 700;
}

.page-content .content {
  padding-top: 24px;
  border-top: 1px dashed var(--border-dashed);
}

/* Properties 표 (frontmatter) */
.properties-table {
  width: auto;
  border: none;
  border-collapse: collapse;
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.properties-table tr {
  border: none;
}

.properties-table td {
  border: none;
  padding: 4px 0;
  font-size: 0.9rem;
  vertical-align: top;
}

.properties-table .property-key {
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 16px;
}

.properties-table .property-value {
  color: var(--text-color);
}

.properties-table .property-icon {
  vertical-align: middle;
  margin-right: 6px;
  color: var(--text-faint);
  width: 14px;
  height: 14px;
}

.properties-table .property-link {
  color: var(--primary-color);
  text-decoration: none;
  padding: 2px 6px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.85em;
  transition: all 0.15s;
}

.properties-table .property-link:hover {
  background: var(--primary-color);
  color: white;
}

.properties-table .property-tag {
  color: var(--green);
  text-decoration: none;
  padding: 2px 6px;
  background: rgba(62, 180, 191, 0.1);
  border-radius: 4px;
  font-size: 0.85em;
  transition: all 0.15s;
}

.properties-table .property-tag:hover {
  background: var(--green);
  color: white;
}

.properties-table .property-url {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.85em;
  transition: all 0.15s;
  word-break: break-all;
}

.properties-table .property-url:hover {
  text-decoration: underline;
}

.properties-table .property-url::before {
  content: '🔗 ';
  font-size: 0.9em;
}

/* Property 값 펼침/접기 */
.property-value-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.property-value-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.property-value-content.collapsed {
  max-height: 24px;
}

.property-value-content.expanded {
  max-height: none;
}

.property-expand-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--text-faint);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-expand-btn:hover {
  color: var(--text-color);
}

.property-expand-btn svg {
  width: 14px;
  height: 14px;
}

.property-expand-btn.hidden {
  display: none;
}

/* 태그 페이지 */
.tag-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tag-page-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 20px;
}

.tag-page-back:hover {
  color: var(--primary-color);
}

.tag-page-title {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 8px;
}

.tag-page-count {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.tag-page-list {
  list-style: none;
  padding: 0;
}

.tag-page-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-page-list li:hover {
  background: var(--bg-secondary);
}

.tag-page-list a {
  color: var(--text-color);
  text-decoration: none;
}

.tag-page-list a:hover {
  color: var(--primary-color);
}

.tag-page-folder {
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-page-all {
  margin-top: 24px;
  text-align: center;
}

.tag-page-all a {
  color: var(--primary-color);
  text-decoration: none;
}

/* 태그 클라우드 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: 20px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}

.tag-chip:hover {
  background: var(--green);
  color: white;
}

.tag-chip-count {
  font-size: 11px;
  background: rgba(0,0,0,0.1);
  padding: 1px 6px;
  border-radius: 10px;
}

/* 콘텐츠 스타일링 */
.content {
  font-size: 17px;
  line-height: 1.7;
}

.content h1 {
  font-size: var(--h1-size);
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--h1-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.content h2 {
  font-size: var(--h2-size);
  margin-top: 28px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  color: var(--h2-color);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.011em;
}

.content h3 {
  font-size: var(--h3-size);
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--h3-color);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

.content h4 {
  font-size: var(--h4-size);
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--h4-color);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.content h5 {
  font-size: var(--h5-size);
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--h5-color);
  font-weight: 600;
  line-height: var(--line-height);
  letter-spacing: -0.002em;
}

.content h6 {
  font-size: var(--h6-size);
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--h6-color);
  font-weight: 600;
  line-height: var(--line-height);
}

.content p {
  margin-bottom: 16px;
}

.content strong {
  color: var(--strong-color);
  font-weight: 600;
}

.content em {
  color: var(--em-color);
  font-style: italic;
}

.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 0;
}

.content li::marker {
  color: var(--text-muted);
}

.content code {
  background: var(--green-pale);
  padding: 2px 6px;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--green-dark);
}

.content pre {
  background: #fafafa;
  padding: 20px;
  border-radius: 0;
  border-left: 1px dashed var(--border-dashed);
  border-right: 1px dashed var(--border-dashed);
  border-top: 1px dashed var(--border-dashed);
  border-bottom: 1px dashed var(--border-dashed);
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
}

.content pre code {
  background: none;
  padding: 0;
  font-size: 0.875em;
  line-height: 1.6;
}

/* highlight.js 스타일 오버라이드 */
.content pre code.hljs {
  background: transparent;
  padding: 0;
}

.content blockquote {
  border-left: 3px solid var(--green-dark);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-muted);
  font-style: italic;
}

.content mark {
  background-color: rgba(255, 208, 0, 0.4);
  padding: 0 2px;
  border-radius: 2px;
}

.content img {
  max-width: 400px;
  max-height: 300px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin: 16px auto;
  display: block;
}

/* 크기가 명시된 이미지는 그 크기 사용 */
.content img[width] {
  max-width: none;
  max-height: none;
}

.content table {
  width: auto;
  border-collapse: collapse;
  margin: 16px 0;
  overflow-x: auto;
  display: block;
}

.content table th,
.content table td {
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  text-align: left;
  white-space: nowrap;
}

.content table th {
  background: var(--bg-secondary);
  font-weight: 600;
}

/* 링크 스타일 */
.content a,
.wiki-link {
  color: var(--purple-link);
  text-decoration: underline;
  transition: color 0.2s;
}

.content a:hover,
.wiki-link:hover {
  color: var(--secondary-color);
}

/* 목차 (Outline) */
.outline-sidebar {
  display: none;
}

.outline-inline {
  display: block;
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: 4px;
}

.outline-inline:empty {
  display: none;
}

.outline h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 600;
}

.outline ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.outline li {
  margin: 4px 0;
}

.outline li ul {
  padding-left: 16px;
  margin-top: 4px;
}

.outline a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  display: block;
  padding: 2px 0;
  transition: color 0.2s;
}

.outline a:hover {
  color: var(--primary-color);
}

/* 그래프 패널 */
.graph-panel {
  width: var(--graph-width);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 40px;
  height: fit-content;
  max-height: calc(100vh - 80px);
  overflow: hidden;
}

.graph-panel h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-color);
}

.graph-container {
  width: 100%;
  height: 500px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

/* TOC (목차) */
.toc {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.toc h4 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin: 4px 0;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  display: block;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.toc a:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.toc-h1 {
  margin-top: 4px;
}

.toc-h1 > a {
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.toc-h2 {
  margin-left: 16px;
  border-left: 2px solid var(--border-color);
  padding-left: 12px;
}

.toc-h2 > a {
  font-size: 13px;
  color: var(--text-muted);
}

/* SVG 그래프 스타일 */
.graph-container svg {
  width: 100%;
  height: 100%;
}

.graph-node {
  cursor: pointer;
}

.graph-node circle {
  transition: all 0.2s;
}

.graph-node:hover circle {
  stroke-width: 3;
  filter: brightness(1.1);
}

.graph-node text {
  pointer-events: none;
  user-select: none;
}

.graph-link {
  pointer-events: none;
}

/* 반응형 디자인 */
@media (max-width: 1600px) {
  /* 그래프 패널 숨기기 */
  .graph-panel {
    display: none;
  }

  .main-content {
    justify-content: flex-start;
  }

  /* 목차를 사이드바로 */
  .outline-inline {
    display: none;
  }

  .outline-sidebar {
    display: block;
    width: 240px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 40px;
    height: fit-content;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .outline-sidebar:empty {
    display: none;
  }
}

@media (max-width: 1400px) {
  .main-content {
    justify-content: center;
  }

  .page-content {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  }

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

  .main-content {
    margin-left: 0;
    padding: 20px;
    flex-direction: column;
  }

  .outline-sidebar {
    display: none;
  }

  .outline-inline {
    display: block;
  }

  .page-content {
    padding: 24px;
    margin-left: 0;
  }

  .page-title {
    font-size: 24px;
  }

  .top-header {
    padding: 0 16px;
  }
}

/* 다크 모드 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1c2127;
    --bg-secondary: #282c34;
    --text-color: #dadada;
    --text-muted: #bababa;
    --text-faint: #666;
    --border-color: #35393e;
    --code-bg: #282c34;
  }

  body {
    background: var(--bg-color);
    color: var(--text-color);
  }

  .sidebar,
  .page-content,
  .graph-panel,
  .outline-sidebar {
    background: var(--bg-secondary);
  }

  .content code,
  .content pre {
    background: var(--code-bg);
  }

  .content table th {
    background: var(--bg-secondary);
  }

  .outline-inline {
    background: var(--bg-secondary);
  }
}

/* Mermaid 다이어그램 */
.mermaid {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin: 16px 0;
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Blog 레이아웃
   ======================================== */

.blog-layout {
  display: flex;
  min-height: 100vh;
  background: #fff;
  padding-top: 56px;
}

/* 사이드바 */
.blog-sidebar {
  width: var(--sidebar-width);
  padding: 32px 24px;
  position: fixed;
  top: 56px;
  left: 0;
  height: calc(100vh - 56px);
  overflow-y: auto;
  background: #fff;
  border-right: 1px dashed var(--border-dashed);
}

.blog-sidebar-section {
  margin-bottom: 32px;
}

.blog-sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-filter-list li {
  margin: 0;
}

.blog-filter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted var(--border-color);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.2s ease;
}

.blog-filter-item:hover {
  color: var(--primary-color);
}

.blog-filter-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.blog-filter-item .filter-count {
  font-size: 11px;
  color: var(--text-faint);
}

.blog-filter-item.active .filter-count {
  color: var(--primary-color);
}

/* 태그 클라우드 */
.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag-item {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed var(--border-dashed);
  border-radius: 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-tag-item:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.blog-tag-item.active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* 메인 컨텐츠 */
.blog-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 40px;
}

.blog-wrapper {
  max-width: 680px;
  width: 100%;
}

.blog-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border-dashed);
}

.blog-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.blog-description {
  font-size: 14px;
  color: var(--text-muted);
}

/* 포스트 리스트 */
.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-post {
  display: block;
  padding: 24px 0;
  border-bottom: 1px dashed var(--border-dashed);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-post:first-child {
  padding-top: 0;
}

.blog-post:hover {
  padding-left: 12px;
}

.blog-post:hover .blog-post-title {
  color: var(--primary-color);
}

.blog-post-content {
  display: block;
}

.blog-post-topic {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px solid var(--primary-color);
  letter-spacing: 0.5px;
}

.blog-post-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.2s;
}

.blog-post-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-faint);
}

.blog-post-date {
  color: var(--text-faint);
}

.blog-post-tags {
  display: flex;
  gap: 6px;
}

.blog-post-tag {
  color: var(--text-faint);
  font-size: 12px;
}

.blog-post-tag::before {
  content: '#';
}

.no-posts {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 20px;
  font-size: 14px;
}

/* 블로그 상세 페이지 */
.blog-article {
  max-width: 680px;
}

.blog-back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  padding: 6px 12px;
  border: 1px dashed var(--border-dashed);
  transition: all 0.2s;
}

.blog-back:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.blog-article-header {
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-dashed);
}

.blog-article-topic {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid var(--primary-color);
  letter-spacing: 0.5px;
}

.blog-article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-article-date {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-article-tag {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed var(--border-dashed);
  padding: 3px 8px;
}

/* 반응형 */
@media (max-width: 900px) {
  .blog-layout .hamburger-btn {
    display: flex;
  }

  .blog-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 50;
  }

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

  .blog-main {
    margin-left: 0;
    max-width: 100%;
    padding: 32px 24px;
  }

  .blog-post-title {
    font-size: 18px;
  }

  .blog-article-title {
    font-size: 1.75rem;
  }
}
