/*
Theme Name: CueBlog Mobile
Theme URI: https://cueration.com
Author: cueration
Description: 큐레이션 블로그 네트워크 공용 테마 (SUIT 폰트, #1f3c88 블루, 모바일 최적화 리스트/상세 스타일)
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cueblog-mobile
*/

/* ==========================================================================
   기본 리셋 및 폰트
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'SUIT Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1a1a1a;
  background-color: #ffffff;
}

a {
  color: #1f3c88;
  text-decoration: none;
}

a:hover {
  color: #152c66;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  padding-left: 20px;
}

/* ==========================================================================
   레이아웃 공통
   ========================================================================== */

.site-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 */
.site-header {
  border-bottom: 1px solid #f1f1f1;
  padding: 18px 0;
}

.site-header .site-branding a {
  font-family: 'SUIT Variable', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1f3c88;
  letter-spacing: -0.3px;
}

.site-header .site-description {
  font-size: 13px;
  color: #999999;
  margin-top: 4px;
}

/* 푸터 */
.site-footer {
  border-top: 1px solid #f1f1f1;
  margin-top: 40px;
  padding: 24px 0;
  font-size: 12px;
  color: #999999;
  text-align: center;
}

/* ==========================================================================
   리스트 페이지 (홈, 카테고리, 검색결과 등)
   ========================================================================== */

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

.post-list-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #f1f1f1;
}

.post-list-item:first-child {
  padding-top: 8px;
}

.post-list-item .post-list-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

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

.post-list-item .post-list-body {
  flex: 1;
  min-width: 0;
}

/* 리스트 제목 */
.post-list-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #1a1a1a;
  letter-spacing: -0.2px;

  /* 제목도 2줄까지만 노출 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-title a {
  color: inherit;
}

.post-list-title a:hover {
  color: #1f3c88;
  text-decoration: none;
}

/* 리스트 본문 미리보기 - 3줄 클램프 */
.post-list-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 10px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-list-meta {
  font-size: 12px;
  color: #aaaaaa;
}

.post-list-meta .cat {
  color: #1f3c88;
  font-weight: 600;
  margin-right: 6px;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  font-size: 14px;
  color: #666666;
  padding: 6px 12px;
}

.pagination .current {
  color: #1f3c88;
  font-weight: 700;
}

/* ==========================================================================
   상세 페이지 (단일 글)
   ========================================================================== */

.single-post {
  padding: 20px 0 40px;
}

.single-post-header {
  margin-bottom: 24px;
}

.single-post-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #1f3c88;
  background: #eef1fa;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* 상세 페이지 제목 - 확정 색상 #1f3c88 */
.single-post-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: #1f3c88;
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.single-post-meta {
  font-size: 13px;
  color: #999999;
}

.single-post-meta span + span::before {
  content: "·";
  margin: 0 6px;
}

/* 대표 이미지 */
.single-post-thumb {
  margin: 20px 0 28px;
  border-radius: 10px;
  overflow: hidden;
}

.single-post-thumb img {
  width: 100%;
  display: block;
}

/* 본문 - 여백과 폭 확정값 반영 */
.single-post-content {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: #1a1a1a;
}

.single-post-content p {
  margin: 0 0 20px;
}

.single-post-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1f3c88;
  margin: 36px 0 16px;
  line-height: 1.4;
}

.single-post-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 28px 0 14px;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content blockquote {
  margin: 24px 0;
  padding: 4px 18px;
  border-left: 3px solid #1f3c88;
  color: #555555;
  font-size: 15px;
}

.single-post-content img {
  border-radius: 8px;
  margin: 24px 0;
}

.single-post-content a {
  border-bottom: 1px solid #cccccc;
}

.single-post-content a:hover {
  border-bottom-color: #1f3c88;
}

/* 태그 */
.single-post-tags {
  margin: 32px 0;
  padding-top: 20px;
  border-top: 1px solid #f1f1f1;
}

.single-post-tags a {
  display: inline-block;
  font-size: 12px;
  color: #666666;
  background: #f5f5f5;
  padding: 5px 12px;
  border-radius: 14px;
  margin: 0 6px 6px 0;
}

.single-post-tags a:hover {
  background: #eef1fa;
  color: #1f3c88;
  text-decoration: none;
}

/* 이전/다음 글 네비게이션 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0;
  padding-top: 20px;
  border-top: 1px solid #f1f1f1;
}

.post-nav > div {
  flex: 1;
  min-width: 0;
}

.post-nav .nav-label {
  font-size: 11px;
  color: #999999;
  margin-bottom: 4px;
}

.post-nav .nav-title {
  font-size: 14px;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.post-nav .nav-next {
  text-align: right;
}

/* ==========================================================================
   반응형 (모바일 최우선 설계, 넓은 화면에서 살짝 조정)
   ========================================================================== */

@media (max-width: 480px) {
  .site-wrap {
    padding: 0 16px;
  }

  .post-list-item .post-list-thumb {
    width: 80px;
    height: 80px;
  }

  .post-list-title {
    font-size: 16px;
  }

  .single-post-title {
    font-size: 21px;
  }
}

@media (min-width: 768px) {
  .site-wrap {
    max-width: 760px;
  }
}
