@charset "UTF-8";

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

html,
body {
  height: 100%;
}

body {
  font-family: "Fira Code", "JetBrains Mono", Consolas, monospace;
  background: radial-gradient(
    circle at top,
    #1a2738 0,
    #050711 60%,
    #020308 100%
  );
  color: #e6f1ff;
}

a {
  color: #4fd1ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.terminal-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 32px 16px;
  gap: 24px;
}

.terminal-sidebar {
  position: relative;
  width: 320px;
  max-width: 40vw;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6)),
    url("images/kali-menu.png") center/cover no-repeat; /* <- 스크린샷 경로로 교체 */
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.35);
}

.terminal-sidebar-inner {
  height: 100%;
  backdrop-filter: blur(4px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.blog-logo {
  font-size: 14px;
  color: #7b8ba0;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 24px;
  font-weight: 700;
  color: #e6f1ff;
}

.blog-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: #7b8ba0;
}

.blog-subtitle span {
  color: #4fd1ff;
}

.profile-block {
  display: flex;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #4fd1ff;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  font-size: 13px;
  color: #cbd5f5;
}

.sidebar-status {
  margin-top: auto;
  font-size: 11px;
  color: #7b8ba0;
  border-top: 1px solid rgba(79, 209, 255, 0.2);
  padding-top: 14px;
}

.sidebar-status-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sidebar-visitors {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.sidebar-visitors span.label {
  color: #9fa6c1;
}

.terminal-main {
  flex: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 터미널 창 프레임 */
.terminal-window {
  background: #050814;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(79, 209, 255, 0.45);
  overflow: hidden;
}

/* 터미널 상단 바 (dots + path) */
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(to right, #101522, #151b2c);
  border-bottom: 1px solid rgba(79, 209, 255, 0.3);
  font-size: 11px;
  color: #7b8ba0;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2d3748;
}

.terminal-dot.red {
  background: #f56565;
}

.terminal-dot.yellow {
  background: #ecc94b;
}

.terminal-dot.green {
  background: #48bb78;
}

.terminal-path {
  margin-left: 6px;
  color: #9fa6c1;
}

/* 터미널 내용 */
.terminal-body {
  padding: 18px 18px 20px;
}

/* ====== 상단 “프롬프트 + 검색/카테고리” ====== */

.prompt-line {
  font-size: 14px;
  margin-bottom: 12px;
  color: #9ae6ff;
}

.prompt-user {
  color: #4fd1ff;
}

.prompt-path {
  color: #9fa6c1;
}

.prompt-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #9ae6ff;
  margin-left: 4px;
  animation: blinkCaret 1s steps(1) infinite;
}

@keyframes blinkCaret {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* 검색 */
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.search-box {
  flex: 1 1 220px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 7px 30px 7px 9px;
  border-radius: 6px;
  border: 1px solid rgba(79, 209, 255, 0.5);
  background: rgba(5, 8, 20, 0.9);
  color: #e6f1ff;
  font-size: 12px;
}

.search-input::placeholder {
  color: #64748b;
}

.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #64748b;
}

/* ====== 글 목록 (index) ====== */

.posts-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  border-radius: 8px;
  border: 1px solid rgba(79, 209, 255, 0.4);
  background: radial-gradient(
    circle at top left,
    rgba(79, 209, 255, 0.12),
    rgba(5, 8, 20, 0.96)
  );
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.post-main {
  min-width: 0;
}

.post-title {
  font-size: 17px;
  color: #e6f1ff;
  margin-bottom: 4px;
}

.post-excerpt {
  font-size: 12px;
  color: #a0aec0;
  line-height: 1.5;
  margin-bottom: 6px;
}

.post-meta {
  font-size: 11px;
  color: #718096;
}

.post-meta .category {
  color: #9ae6ff;
}

/* 썸네일 (있으면 오른쪽에) */
.post-thumb {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(79, 209, 255, 0.4);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== 단일 글(permalink) ====== */

.article-header {
  margin-bottom: 16px;
}

.article-category a {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(154, 230, 255, 0.6);
  color: #9ae6ff;
}

.article-title {
  margin-top: 10px;
  font-size: 22px;
  color: #e6f1ff;
}

.article-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #7b8ba0;
}

/* 티스토리 본문 */
.area_view {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
}

.area_view h1,
.area_view h2,
.area_view h3,
.area_view h4 {
  margin: 20px 0 10px;
  color: #fbd38d;
}

.area_view code {
  font-family: inherit;
  background: #020617;
  color: #e5e7eb;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.95em;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* 코드 블럭 */
.area_view pre {
  background: #0b1120; /* 기존보다 조금 더 밝은 남색 */
  border-radius: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  overflow-x: auto;
}

.area_view pre,
.area_view pre code {
  color: #e5e7eb; /* 코드 글자 강제로 밝게 */
}

.area_view a {
  color: #63b3ff;
}

.area_view img {
  max-width: 100%;
  border-radius: 8px;
}

/* 태그 */
.article-tags {
  margin-top: 18px;
  font-size: 11px;
  color: #a0aec0;
}

.article-tags a {
  margin-right: 6px;
}

/* ====== 단일글 Prev/Next (센터 정렬) ====== */
.article-nav {
  margin-top: 18px;
  font-size: 12px;
}
.article-nav-inner {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.article-nav .nav-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(79, 209, 255, 0.35);
  background: rgba(2, 6, 23, 0.35);
  color: #9ae6ff;
  text-decoration: none;
}
.article-nav .nav-item a:hover {
  background: rgba(79, 209, 255, 0.12);
  border-color: rgba(79, 209, 255, 0.6);
}
@media (max-width: 900px) {
  .article-nav-inner {
    flex-direction: column;
  }
  .article-nav .nav-item a {
    min-width: 0;
    width: 100%;
  }
}

/* ====== 페이징 ====== */
.paging.terminal-paging {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #9fa6c1;
}

.paging.terminal-paging .page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.paging.terminal-paging a {
  color: #9ae6ff;
  text-decoration: none;
}

.paging.terminal-paging .page-arrow,
.paging.terminal-paging .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(79, 209, 255, 0.35);
  background: rgba(2, 6, 23, 0.35);
}

.paging.terminal-paging .page-num[aria-current="page"],
.paging.terminal-paging .page-num.selected,
.paging.terminal-paging .page-num.on,
.paging.terminal-paging .page-num.current,
.paging.terminal-paging .page-num._current,
.paging.terminal-paging .page-num[class*="current"] {
  background: rgba(79, 209, 255, 0.18);
  border-color: rgba(79, 209, 255, 0.75);
  color: #e6f1ff;
  font-weight: 700;
}

.paging.terminal-paging .page-arrow:hover,
.paging.terminal-paging .page-num:hover {
  background: rgba(79, 209, 255, 0.12);
  border-color: rgba(79, 209, 255, 0.6);
}
/* ====== 댓글(티스토리 기본 마크업 간단 스타일) ====== */

.area_reply {
  margin-top: 20px;
  font-size: 12px;
}

.area_reply .tit_reply {
  margin-bottom: 8px;
  color: #e6f1ff;
  font-size: 13px;
}

.area_reply .list_reply li {
  border-top: 1px solid rgba(45, 55, 72, 0.8);
  padding: 10px 0;
}

.area_reply .txt_reply {
  margin-top: 4px;
}

/* ====== Sidebar modules (Recent comments / Guestbook) ====== */
.sidebar-module-title {
  color: #7b8ba0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-item-link {
  display: block;
  color: #e6f1ff;
  font-size: 12px;
  line-height: 1.35;
}

.sidebar-item-meta {
  margin-top: 2px;
  font-size: 10px;
  color: #7b8ba0;
  display: flex;
  gap: 8px;
}

.sidebar-empty {
  font-size: 11px;
  color: #7b8ba0;
}

/* ====== After-comments (recent posts) ====== */
.after-comments {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 55, 72, 0.8);
}

.after-comments-title {
  color: #7b8ba0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.recent-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-posts-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.recent-post-link {
  color: #e6f1ff;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.recent-post-link:hover {
  color: #9ae6ff;
}

.recent-post-meta {
  font-size: 10px;
  color: #7b8ba0;
  white-space: nowrap;
}

/* ====== 반응형 ====== */

@media (max-width: 900px) {
  .terminal-page {
    flex-direction: column;
    padding: 16px 10px 24px;
  }

  .terminal-sidebar {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .terminal-main {
    order: 0;
  }

  .post-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-thumb {
    display: none;
  }
}

.terminal-sidebar .category-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  font-size: 0; /* 불필요한 텍스트 숨김 */
}

/* 실제 div 안 텍스트(티스토리가 끼워넣는 URL)는 0px로 숨김 */
.terminal-sidebar .category-row-title {
  font-size: 0;
  margin-bottom: 4px;
  position: relative;
}

/* 우리가 보여줄 “cat ./categories”는 가상 요소로만 렌더링 */
.terminal-sidebar .category-row-title::before {
  content: "cat ./categories";
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #7b8ba0;
}

/* 사이드바 카테고리 리스트 레이아웃 */
.terminal-sidebar .tt_category {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  list-style: none;
  padding-left: 0;
}

.terminal-sidebar .tt_category li {
  list-style: none;
}

/* 기본 카테고리 버튼: 각지고 딱딱한 느낌 */
.terminal-sidebar .tt_category a {
  display: block;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 4px; /* 각진 모서리 */
  border: 1px solid rgba(148, 163, 184, 0.85);
  font-size: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

/* 분류 전체보기 강조: a.link_tit 만 타겟 */
.terminal-sidebar .tt_category a.link_tit {
  border-color: #4fd1ff;
  background: rgba(79, 209, 255, 0.22);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(79, 209, 255, 0.55) inset,
    0 0 18px rgba(79, 209, 255, 0.12);
  position: relative;
  padding-left: 12px;
}
.terminal-sidebar .tt_category a.link_tit::before {
  content: "ALL";
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-right: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(79, 209, 255, 0.55);
  background: rgba(2, 6, 23, 0.55);
}

/* hover 효과 */
.terminal-sidebar .tt_category a:hover {
  background: rgba(79, 209, 255, 0.16);
}

.terminal-sidebar .tt_category a.link_tit:hover {
  background: linear-gradient(
    135deg,
    rgba(79, 209, 255, 0.55),
    rgba(15, 23, 42, 0.98)
  );
}

.terminal-sidebar .link_guestbook {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
}

.area_view ul,
.area_view ol {
  margin: 0.4em 0 0.4em 1.4em; /* 왼쪽 들여쓰기 */
  padding-left: 0.2em;
}

.area_view li {
  margin: 0.15em 0;
}

/* ===== Fix: after-comments recent posts list (no bullets, readable) ===== */
.after-comments {
  margin-top: 18px;
}
.after-comments-title {
  color: #7b8ba0;
  font-size: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.recent-posts-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.recent-posts-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(123, 139, 160, 0.18);
}
.recent-posts-list li:first-child {
  border-top: 0;
}
.recent-post-link {
  color: #bfe7ff;
  text-decoration: none;
}
.recent-post-link:hover {
  text-decoration: underline;
}
.recent-post-meta {
  color: #7b8ba0;
  font-size: 12px;
  white-space: nowrap;
}
.recent-post-empty {
  color: #7b8ba0;
  font-size: 12px;
}

/* ===== Fix: default text color (dark theme) ===== */
body,
.terminal-window,
.posts-list,
#article-view,
.area_view,
.area_view * {
  color: #e6f1ff;
}

/* links inside article */
#article-view a,
.area_view a,
.post-card a {
  color: #bfe7ff;
}
#article-view a:hover,
.area_view a:hover,
.post-card a:hover {
  text-decoration: underline;
}

/* ===== Fix: comments readability (Tistory default comment markup) ===== */
/* Broad but safe: only inside 댓글 영역 */
.area_reply,
.area_reply * {
  color: #e6f1ff !important;
}

/* common Tistory comment classes (vary by skin / editor) */
.tt-box-comment,
.tt-box-comment *,
.tt_comment,
.tt_comment *,
.tt-comment,
.tt-comment *,
.tt-xe-content,
.tt-xe-content *,
.tt-xe-label-text,
.tt-xe-label-text * {
  color: #e6f1ff !important;
}

/* comment textarea placeholder */
.area_reply textarea::placeholder,
.tt-box-comment textarea::placeholder {
  color: rgba(230, 241, 255, 0.55) !important;
}

/* ===== Fix: after-comments recent posts list (no bullets, readable) ===== */
.after-comments {
  margin-top: 18px;
}
.after-comments-title {
  color: #7b8ba0;
  font-size: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.recent-posts-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.recent-posts-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(123, 139, 160, 0.18);
}
.recent-posts-list li:first-child {
  border-top: 0;
}
.recent-post-link {
  color: #bfe7ff;
  text-decoration: none;
}
.recent-post-link:hover {
  text-decoration: underline;
}
.recent-post-meta {
  color: #7b8ba0;
  font-size: 12px;
  white-space: nowrap;
}
.recent-post-empty {
  color: #7b8ba0;
  font-size: 12px;
}

/* ===== Fix: default text color (dark theme) ===== */
body,
.terminal-window,
.posts-list,
#article-view,
.area_view,
.area_view * {
  color: #e6f1ff;
}

/* links inside article */
#article-view a,
.area_view a,
.post-card a {
  color: #bfe7ff;
}
#article-view a:hover,
.area_view a:hover,
.post-card a:hover {
  text-decoration: underline;
}



/* 카드 전체 */
.tt_box_namecard {
  color: #0f172a !important; /* 진한 글자 */
}

/* 이름 */
.tt_box_namecard .name,
.tt_box_namecard .txt_name {
  color: #020617 !important;
  font-weight: 600;
}

/* 설명/직함 (IT Engineering 등) */
.tt_box_namecard .desc,
.tt_box_namecard .txt_desc,
.tt_box_namecard .profile_desc {
  color: #334155 !important;
}

/* 카드 안 링크 */
.tt_box_namecard a {
  color: #FFFFFF !important;
  font-size: 240px;
}

/* 배경이 흰 게 싫으면 (선택) */
.tt_box_namecard {
  background: #000000 !important; /* 유지 */
  border: 1px solid #e5e7eb !important;
}

.tt_box_namecard button {
  color: #FFFFFF !important;   /* 하늘색 (원하면 바꿔도 됨) */
  
}
