/* === DevTips.kr Blog Design === */

/* 전체 타이포그래피 */
body {
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.8;
  color: #1a1a2e;
  background: #f8f9fc;
}

/* 헤더 & 네비게이션 */
.wp-block-navigation {
  gap: 0;
  position: relative;
}
.wp-block-navigation__container {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 0.3rem;
  padding: 0.2rem 0;
}
.wp-block-navigation__container::-webkit-scrollbar {
  display: none;
}
.wp-block-navigation-item {
  flex-shrink: 0;
}
.wp-block-navigation-item a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  color: #4a5568;
  white-space: nowrap;
}
.wp-block-navigation-item a:hover,
.wp-block-navigation-item.current-menu-item a {
  background: #4361ee;
  color: #fff !important;
}

/* 사이트 타이틀 */
.wp-block-site-title a {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #4361ee, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* 글 카드 (목록 페이지) */
.wp-block-post {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  border: 1px solid #edf0f7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(67,97,238,0.1);
  border-color: #c7d2fe;
}

/* 글 제목 */
.wp-block-post-title a {
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 700;
  transition: color 0.2s;
}
.wp-block-post-title a:hover {
  color: #4361ee;
}
h1.wp-block-post-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* 날짜 */
.wp-block-post-date {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* 본문 h2 */
.entry-content h2,
.wp-block-post-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #4361ee;
}

/* 본문 h3 */
.entry-content h3,
.wp-block-post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  padding-left: 0.8rem;
  border-left: 3px solid #818cf8;
}

/* 본문 단락 */
.entry-content p,
.wp-block-post-content p {
  margin-bottom: 1.2rem;
  color: #374151;
  font-size: 1.02rem;
}

/* 코드 블록 (Catppuccin Mocha 느낌) */
.highlight,
pre {
  background: #1e1e2e !important;
  color: #cdd6f4 !important;
  border-radius: 12px;
  padding: 1.3rem 1.6rem;
  overflow-x: auto;
  font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.87rem;
  line-height: 1.65;
  margin: 1.5rem 0;
  border: 1px solid #313244;
}
code {
  font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
}
:not(pre) > code {
  background: #eef2ff;
  color: #4338ca;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.87em;
  font-weight: 500;
}

/* Syntax Highlight Colors */
.highlight .k, .highlight .kn, .highlight .kd { color: #cba6f7; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #a6e3a1; }
.highlight .n, .highlight .na { color: #89b4fa; }
.highlight .nf, .highlight .nb { color: #89dceb; }
.highlight .c, .highlight .c1, .highlight .cm { color: #6c7086; font-style: italic; }
.highlight .mi, .highlight .mf { color: #fab387; }
.highlight .o, .highlight .p { color: #94e2d5; }

/* 인용 블록 */
blockquote {
  border-left: 4px solid #4361ee;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
  border-radius: 0 10px 10px 0;
  font-style: normal;
  color: #374151;
}
blockquote p {
  margin-bottom: 0.3rem;
}

/* 표 */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
th {
  background: linear-gradient(135deg, #4361ee, #5b73f0);
  color: #fff;
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}
td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #edf0f7;
  font-size: 0.92rem;
  color: #475569;
}
tr:last-child td {
  border-bottom: none;
}
tr:nth-child(even) {
  background: #f8fafc;
}
tr:hover {
  background: #eef2ff;
}

/* 리스트 */
.entry-content ul,
.wp-block-post-content ul {
  list-style: none;
  padding-left: 0;
}
.entry-content ul li,
.wp-block-post-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}
.entry-content ul li::before,
.wp-block-post-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #4361ee;
  font-weight: bold;
  font-size: 1.1em;
}
.entry-content ol,
.wp-block-post-content ol {
  padding-left: 1.5rem;
}
.entry-content ol li,
.wp-block-post-content ol li {
  margin-bottom: 0.6rem;
}

/* 태그 */
.wp-block-post-terms a {
  display: inline-block;
  background: #eef2ff;
  color: #4361ee;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  margin: 0.15rem;
  transition: all 0.2s;
  border: 1px solid #c7d2fe;
}
.wp-block-post-terms a:hover {
  background: #4361ee;
  color: #fff;
  border-color: #4361ee;
}

/* 페이지네이션 */
.wp-block-query-pagination {
  margin-top: 3rem;
  gap: 0.5rem;
  justify-content: center;
}
.wp-block-query-pagination-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  color: #4361ee;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.wp-block-query-pagination-numbers .page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers:hover {
  background: #4361ee;
  color: #fff;
  border-color: #4361ee;
  box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}
.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4361ee;
  text-decoration: none;
  transition: all 0.2s;
}
.wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination-next a:hover {
  background: #4361ee;
  color: #fff;
}

/* 푸터 */
.wp-block-template-part footer,
footer.wp-block-template-part {
  background: #1a1a2e;
  color: #94a3b8;
  margin-top: 4rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .wp-block-post {
    padding: 1.3rem;
    border-radius: 10px;
  }
  h1.wp-block-post-title {
    font-size: 1.5rem;
  }
  .entry-content h2,
  .wp-block-post-content h2 {
    font-size: 1.3rem;
  }
  .highlight, pre {
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    border-radius: 8px;
  }
  table {
    font-size: 0.85rem;
  }
  th, td {
    padding: 0.5rem 0.7rem;
  }
}
