/* ========================================
   nbuntu 테마 — Terminal-Inspired Light

   "sudo rm -rf doubt && ./ship-it"

   터미널 감성은 유지하되, 라이트 테마로 읽기 좋게.
   Velocity(Obsidian) 스타일 참고.

   커스터마이징:
   - 변수 값을 바꾸면 전체 스타일이 바뀜
   - icons/ 폴더에 아이콘 넣으면 콜아웃 아이콘 교체됨
     (파일명: info.png, tip.png, warning.png, question.png)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=IBM+Plex+Sans+KR:wght@400;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/prism-themes@1.9.0/themes/prism-coy-without-shadows.min.css');

:root {
  /* ── 본문 ── */
  --post-font: 'IBM Plex Sans KR', 'NeoDunggeunmo', sans-serif;
  --post-font-size: 15px;
  --post-line-height: 1.95;
  --post-paragraph-gap: 14px;
  --post-heading-color: #1a2634;
  --post-strong-color: #059669;
  --post-em-color: #718096;
  --post-mark-bg: rgba(5, 150, 105, 0.1);
  --post-link-color: #0891b2;

  /* ── 코드 — 라이트 에디터 ── */
  --post-code-bg: #f0f4f8;
  --post-code-border: #d0d7de;
  --post-pre-bg: #f6f8fa;
  --post-pre-color: #24292e;

  /* ── 인용 ── */
  --post-quote-bg: #f0f6ff;
  --post-quote-border: #5a9bbf;
  --post-quote-color: #3d5a6c;

  /* ── 콜아웃 ── */
  --callout-info-bg: #eef6fc;
  --callout-info-border: #5a9bbf;
  --callout-info-icon: '💡';
  --callout-tip-bg: #eefcf0;
  --callout-tip-border: #059669;
  --callout-tip-icon: '🚀';
  --callout-warning-bg: #fef6ee;
  --callout-warning-border: #d97706;
  --callout-warning-icon: '🐛';
  --callout-question-bg: #f5eefb;
  --callout-question-border: #8b5cf6;
  --callout-question-icon: '🤔';

  /* ── 테이블 ── */
  --post-table-header-bg: #f0f4f8;
  --post-table-stripe-bg: #f8fbff;

  /* ── 태그 ── */
  --post-tag-bg: #f0f4f8;

  /* ── 테두리 — 모던 라운드 ── */
  --post-border-radius: 8px;
}


/* ═══════════════════════════════════
   커스텀 스타일
   ═══════════════════════════════════ */

/* ── 제목 — 터미널 프롬프트 ── */
.post-content h2 {
  position: relative;
  padding-left: 22px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: 0.5px;
}

.post-content h2:first-of-type {
  border-top: none;
  margin-top: 25px;
  padding-top: 0;
}

.post-content h2::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
  font-family: 'JetBrains Mono', monospace;
}

.post-content h3 {
  position: relative;
  padding-left: 22px;
}

.post-content h3::before {
  content: '>>';
  position: absolute;
  left: 0;
  color: #059669;
  font-size: 12px;
  opacity: 0.5;
  font-family: 'JetBrains Mono', monospace;
}

/* ── 인라인 코드 — 라이트 칩 ── */
.post-content code {
  color: #0550ae;
  font-weight: bold;
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  font-size: 12.5px;
  border-radius: 4px;
}

/* ── 코드 블록 — 라이트 터미널 윈도우 ── */
.post-content pre {
  position: relative;
  border: 1px solid #d0d7de;
  padding-top: 44px;
  padding-bottom: 16px;
  tab-size: 4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  background-image: none;
}

/* 터미널 헤더 */
.post-content pre::before {
  content: 'nbh@nbuntu:~$';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 7px 14px;
  background: #edf2f7;
  border-bottom: 1px solid #d0d7de;
  color: #059669;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.post-content pre code {
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  font-size: 13px;
}


/* ═══════════════════════════════════
   Prism.js 문법 하이라이팅 — Coy (No Shadow) 베이스
   CDN 테마 위에 부족한 부분만 오버라이드
   ═══════════════════════════════════ */

.post-content .token.annotation {
  color: #986801;
}

.post-content .token.namespace {
  color: #6f42c1;
  opacity: 0.8;
}

.post-content .token.generics,
.post-content .token.type-arguments {
  color: #005cc5;
}

/* 의사코드 전용 — CLRS 스타일 */
.post-content .language-pseudo .token.keyword {
  font-weight: bold;
  color: #d73a49;
}

.post-content .language-pseudo .token.function {
  font-variant: small-caps;
  color: #6f42c1;
  letter-spacing: 0.5px;
}

.post-content .language-pseudo .token.comment {
  color: #6a737d;
}


/* ═══════════════════════════════════
   나머지 요소
   ═══════════════════════════════════ */

/* ── 머메이드 다이어그램 ── */
.mermaid {
  margin: 15px 0;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
}

/* ── 테이블 ── */
.post-content table {
  border: 1px solid #e2e8f0;
}

.post-content th {
  color: #1a2634;
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.post-content td {
  font-size: 13px;
}

/* ── 콜아웃 — 옵시디언 Velocity 스타일 깔끔 박스 ── */
.callout {
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.callout-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
  font-family: 'NeoDunggeunmo', 'JetBrains Mono', monospace;
  text-transform: none;
  letter-spacing: 0;
}

/* ── 링크 ── */
.post-content a {
  transition: all 0.2s ease;
  border-bottom-color: rgba(8, 145, 178, 0.3);
}

.post-content a:hover {
  color: #059669;
  border-bottom-color: #059669;
}

/* ── 하이라이트 ── */
.post-content mark {
  border-bottom: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 3px;
}

/* ── 태그 — 필 뱃지 ── */
.post-tags span {
  border: 1px solid #d0d7de;
  background: #f0f4f8;
  color: #5a9bbf;
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.post-tags span:hover {
  background: #e8f4fd;
  border-color: #5a9bbf;
}

/* ── 구분선 — 코멘트 스타일 ── */
.post-content hr {
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.post-content hr::after {
  content: '/* ── */';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 12px;
  color: #b0bec5;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* ── 글 메타 ── */
.post-meta {
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  letter-spacing: 0.3px;
}

.post-meta .meta-category {
  background: #eef6fc;
  color: #0891b2;
  border-color: #b8d4e3;
  font-size: 11px;
  border-radius: 4px;
}

/* ── 글 네비게이션 ── */
.post-nav a {
  transition: all 0.2s ease;
  font-family: 'JetBrains Mono', 'NeoDunggeunmo', monospace;
  font-size: 12px;
}

.post-nav a:hover {
  color: #059669;
}

/* ── 이미지 ── */
.post-content img {
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── 코드 블록 — 언어 라벨 (텍스트만) ── */
.post-content pre[data-lang]::after {
  content: attr(data-lang);
  position: absolute;
  top: 7px;
  right: 10px;
  font-size: 11px;
  color: #059669;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0.45;
}



/* ========================================
   커스텀 아이콘 사용법

   icons/ 폴더에 아이콘 파일을 넣고
   아래 주석을 해제하면 이모지 대신 이미지가 적용됨

   지원 파일: png, jpg, gif, svg
   권장 크기: 20x20px
   ======================================== */

/*
.callout-info .callout-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background: url('icons/info.png') center/contain no-repeat;
}

.callout-tip .callout-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background: url('icons/tip.png') center/contain no-repeat;
}

.callout-warning .callout-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background: url('icons/warning.png') center/contain no-repeat;
}

.callout-question .callout-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  background: url('icons/question.png') center/contain no-repeat;
}
*/
