@charset "UTF-8";

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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f7f9fa;
  color: #333333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── 상단 헤더 영역 (헤더 배너 300px 고화질 크롭) ── */
.blog-header {
  width: 100%;
  height: 300px;
  background: #1b2820 url('../images/header_banner_1.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.blog-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(10, 20, 15, 0.3) 0%, rgba(10, 20, 15, 0.05) 50%, rgba(10, 20, 15, 0.2) 100%);
  pointer-events: none;
}

.header-inner {
  max-width: 1500px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog-title {
  font-family: "Nanum Myeongjo", "Pretendard", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.blog-title a {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.blog-title .subtitle {
  font-family: "Pretendard", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── 전체 레이아웃 (사이드바 + 리사이저 + 본문) ── */
.layout-wrapper {
  max-width: 1500px;
  width: 100%;
  margin: 24px auto;
  padding: 0 24px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* ── 좌측 사이드바 ── */
.sidebar {
  width: 270px;
  min-width: 200px;
  max-width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 사이드바 위젯 카드 공통 */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.widget-header {
  font-size: 13px;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f2f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 1. 프로필 위젯 스타일 */
.profile-card {
  text-align: center;
  padding: 22px 18px;
}

.profile-avatar-box {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e8eb;
  overflow: hidden;
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 16px;
  font-weight: 700;
  color: #191f28;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 12px;
  color: #1b736e;
  font-weight: 600;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 12.5px;
  color: #6b7684;
  line-height: 1.6;
  margin-bottom: 16px;
  word-break: keep-all;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.btn-write {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #1b736e;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-write:hover {
  background: #135854;
}

/* 2. 카테고리 위젯 스타일 (상위/하위 계층 지원) */
.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-group {
  margin-bottom: 2px;
}

.category-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  color: #333d4b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.category-item a:hover {
  background-color: #f2f6f3;
  color: #1b736e;
}

.category-item.active a {
  background-color: #e9f4f3;
  color: #1b736e;
  font-weight: 700;
}

.category-item .count {
  font-size: 11px;
  color: #8b95a1;
  font-weight: 500;
}

/* 하위 서브카테고리 리스트 (들여쓰기 및 가이드 라인) */
.subcategory-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
  margin: 2px 0 6px 14px;
  border-left: 2px solid #eef1f4;
}

.sub-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  color: #6b7684;
  font-size: 12.5px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.15s ease;
}

.sub-item a:hover {
  background-color: #f2f6f3;
  color: #1b736e;
  font-weight: 500;
  padding-left: 13px;
}

.sub-item.active a {
  color: #1b736e;
  font-weight: 600;
  background-color: #e9f4f3;
}

.sub-item .count {
  font-size: 10.5px;
  color: #a0abb6;
}

/* 3. 방문자 통계 위젯 스타일 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  padding: 4px 0;
}

.stat-box {
  background: #f8fafb;
  padding: 10px 4px;
  border-radius: 6px;
  border: 1px solid #f0f2f4;
}

.stat-label {
  font-size: 11px;
  color: #8b95a1;
  margin-bottom: 4px;
  display: block;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #191f28;
}

.stat-value.highlight {
  color: #1b736e;
}

/* 4. 최신 글 목록 위젯 스타일 */
.recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-item a {
  display: block;
  text-decoration: none;
}

.recent-title {
  font-size: 13px;
  color: #333d4b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
  transition: color 0.15s ease;
}

.recent-item a:hover .recent-title {
  color: #1b736e;
  text-decoration: underline;
}

.recent-date {
  font-size: 11px;
  color: #8b95a1;
}

/* ── 사이드바 폭 조절 바 (Resizer Splitter) ── */
.resizer {
  width: 14px;
  margin: 0 6px;
  align-self: stretch;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  transition: background-color 0.15s ease;
  border-radius: 4px;
}

.resizer::after {
  content: "";
  width: 2px;
  height: 48px;
  background-color: #d1d6db;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.resizer:hover, .resizer.dragging {
  background-color: rgba(27, 115, 110, 0.08);
}

.resizer:hover::after, .resizer.dragging::after {
  background-color: #1b736e;
  height: 80px;
  width: 3px;
}

body.is-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}

/* ── 우측 메인 본문 콘텐츠 영역 ── */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.step-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #1b736e;
  background: #e9f4f3;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.content-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #191f28;
  margin-bottom: 12px;
}

.content-card p {
  font-size: 15px;
  color: #4e5968;
  line-height: 1.7;
}

/* 반응형 */
@media (max-width: 768px) {
  .layout-wrapper {
    flex-direction: column;
    padding: 0 16px;
  }
  .sidebar {
    width: 100% !important;
    max-width: 100%;
  }
  .resizer {
    display: none;
  }
  .grid-3-col,
  .grid-2-col {
    grid-template-columns: 1fr;
  }
  .issue-banner-card {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .issue-thumb-box {
    width: 100%;
    height: 200px;
  }
}

/* ── 하단 푸터 영역 ── */
.blog-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e8eb;
  margin-top: 48px;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 24px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand h3 {
  font-family: "Nanum Myeongjo", "Pretendard", serif;
  font-size: 17px;
  font-weight: 700;
  color: #191f28;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 13px;
  color: #8b95a1;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: #6b7684;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #1b736e;
  text-decoration: underline;
}

.footer-divider {
  height: 1px;
  background-color: #f0f2f4;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8b95a1;
}

.footer-bottom strong {
  color: #4e5968;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ── 가로형 카테고리 네비게이션 바 ── */
.horizontal-nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e8eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1500px;
  height: 48px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  height: 100%;
  margin-left: calc(var(--sidebar-width, 270px) + 26px);
  transition: margin-left 0.1s ease;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: #4e5968;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover {
  color: #1b736e;
}

.nav-item.active .nav-link {
  color: #1b736e;
  font-weight: 700;
  border-bottom-color: #1b736e;
}

.nav-caret {
  font-size: 10px;
  color: #8b95a1;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-item:hover .nav-caret {
  transform: rotate(180deg);
  color: #1b736e;
}

/* 드롭다운 서브메뉴 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: #4e5968;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  background-color: #e9f4f3;
  color: #1b736e;
  font-weight: 600;
}

.nav-extra {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search-box {
  display: flex;
  align-items: center;
  background-color: #f2f4f6;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 4px 12px 4px 14px;
  transition: all 0.15s ease;
}

.nav-search-box:focus-within {
  background-color: #ffffff;
  border-color: #1b736e;
  box-shadow: 0 0 0 3px rgba(27, 115, 110, 0.1);
}

.nav-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #191f28;
  width: 140px;
  font-family: inherit;
}

.nav-search-box input::placeholder {
  color: #8b95a1;
}

.nav-search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #8b95a1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 6px;
  transition: color 0.15s ease;
}

.nav-search-box button:hover {
  color: #333d4b;
}

.nav-search-box button svg {
  display: block;
}

@media (max-width: 768px) {
  .nav-menu {
    margin-left: 0;
  }
  .nav-search-box {
    display: none;
  }
}

/* ── 검색어 하이라이트 스타일 ── */
.search-highlight {
  background-color: #ffe066;
  color: #191f28;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* ── 와이어프레임 기반 3단 섹션 레이아웃 스타일 ── */
.section-block {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d6db;
}

.section-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.3px;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8b95a1;
}

.sort-options a {
  color: #8b95a1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sort-options a.active {
  color: #191f28;
  font-weight: 700;
}

.sort-options a:hover {
  color: #1b736e;
}

.sort-divider {
  color: #e5e8eb;
}

/* 1. 상단 와이드 카드: 서점가 최신 이슈 */
.issue-banner-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  border-left: 4px solid #1b736e;
}

.issue-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border-color: #1b736e;
}

.issue-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.issue-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #1b736e;
  background: #e9f4f3;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.issue-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #191f28;
  line-height: 1.4;
}

.issue-title a {
  color: #191f28;
  text-decoration: none;
  transition: color 0.15s ease;
}

.issue-title a:hover {
  color: #1b736e;
}

.issue-desc {
  font-size: 14px;
  color: #4e5968;
  line-height: 1.7;
}

.issue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #8b95a1;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f2f4f6;
}

/* 서점가 최신 이슈 우측 정사각 섬네일 */
.issue-thumb-box {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e8eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  background-color: #f2f4f6;
}

.issue-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.issue-banner-card:hover .issue-thumb-img {
  transform: scale(1.05);
}

/* 2. 서평 섹션: 3열 x 2행 그리드 */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #1b736e;
}

/* 서평 상단(제목 위) 정사각 섬네일 */
.review-thumb-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: #f2f4f6;
  border: 1px solid #eef0f2;
}

.review-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.review-card:hover .review-thumb-img {
  transform: scale(1.05);
}

.review-book-tag {
  font-size: 11px;
  font-weight: 600;
  color: #1b736e;
  margin-bottom: 6px;
}

.review-book-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #191f28;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  font-size: 12px;
  color: #8b95a1;
  margin-bottom: 8px;
}

.review-stars {
  display: none !important;
}

.review-body {
  font-size: 13px;
  color: #4e5968;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8b95a1;
  padding-top: 10px;
  border-top: 1px solid #f8fafb;
}

/* 3. 일상 이야기 섹션: 2열 x 2행 그리드 */
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.story-card {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 150px;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #1b736e;
}

.story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 100%;
  gap: 8px;
}

.story-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #191f28;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-desc {
  font-size: 13px;
  color: #4e5968;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* 일상 이야기 우측 정사각 섬네일 */
.story-thumb-box {
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eef0f2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  background-color: #f2f4f6;
}

.story-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.story-card:hover .story-thumb-img {
  transform: scale(1.06);
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f8fafb;
  border: 1px solid #e5e8eb;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4e5968;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-like:hover, .btn-like.liked {
  background: #fef0f2;
  border-color: #f7a8b8;
  color: #e03131;
}

/* ── 각 섹션별 하단 페이지 네비게이션 (도면 반영) ── */
.section-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 0;
  font-size: 13.5px;
  user-select: none;
}

.page-num {
  color: #333d4b;
  text-decoration: none;
  font-weight: 500;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.page-num:hover {
  color: #191f28;
  text-decoration: underline;
}

.page-num.active {
  color: #e03131;
  font-weight: 700;
}

.page-first,
.page-prev,
.page-next,
.page-last {
  color: #6b7684;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}

.page-first:hover,
.page-prev:hover,
.page-next:hover,
.page-last:hover {
  color: #191f28;
  background-color: rgba(0, 0, 0, 0.05);
}

.page-icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 포스트 뷰 (상세 글 읽기 화면) 스타일 ── */
.post-view-container {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  padding: 44px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* 포스트 헤더 */
.post-detail-header {
  border-bottom: 1px solid #f0f2f4;
  padding-bottom: 24px;
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1b736e;
  background: #e9f4f3;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.post-detail-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 27px;
  font-weight: 700;
  color: #191f28;
  line-height: 1.45;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.post-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #8b95a1;
}

.post-author-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e8eb;
  object-fit: cover;
}

.post-author-name {
  font-weight: 600;
  color: #333d4b;
}

.post-meta-items {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta-divider {
  color: #e5e8eb;
}

.post-font-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafb;
  border: 1px solid #e5e8eb;
  border-radius: 6px;
  padding: 2px 6px;
}

.btn-font-size {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #4e5968;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-font-size:hover {
  background: #ffffff;
  color: #1b736e;
}

/* 도서 정보 박스 (에디터 글감 서식) */
.book-meta-box {
  background: #f8fafb;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.book-meta-cover {
  width: 95px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid #dee2e6;
}

.book-meta-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-meta-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.book-meta-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #191f28;
}

.book-meta-author {
  font-size: 13.5px;
  color: #4e5968;
}

.book-meta-stars {
  display: none !important;
}

.book-meta-quote {
  font-size: 12.5px;
  color: #6b7684;
  line-height: 1.5;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #edf0f2;
  margin-top: 4px;
}

/* 본문 콘텐츠 */
.post-content-body {
  font-family: "Pretendard", -apple-system, sans-serif;
  font-size: 16px;
  color: #333d4b;
  line-height: 1.85;
  letter-spacing: -0.2px;
  display: block;
}

.post-content-body p {
  margin: 0 0 10px 0;
  word-break: keep-all;
}

/* 카드/구분선/인용구 직전·직후의 불필요한 빈 문단(<p><br></p>) 여백 제거하여 상하 대칭 유지 */
.post-content-body p:has(> br:only-child):has(+ .misty-divider-card),
.post-content-body p:has(> br:only-child):has(+ p:has(> br:only-child):has(+ .misty-divider-card)),
.post-content-body p:empty:has(+ .misty-divider-card),
.post-content-body p:has(> br:only-child):has(+ .postit-card),
.post-content-body p:has(> br:only-child):has(+ .simple-book-card),
.post-content-body p:has(> br:only-child):has(+ .inserted-book-card),
.post-content-body p:has(> br:only-child):has(+ .misty-quote-card),
.post-content-body p:has(> br:only-child):has(+ blockquote) {
  display: none !important;
}

.post-content-body .misty-divider-card + p:has(> br:only-child),
.post-content-body .misty-divider-card + p:has(> br:only-child) + p:has(> br:only-child),
.post-content-body .misty-divider-card + p:empty,
.post-content-body .postit-card + p:has(> br:only-child),
.post-content-body .simple-book-card + p:has(> br:only-child),
.post-content-body .inserted-book-card + p:has(> br:only-child),
.post-content-body .misty-quote-card + p:has(> br:only-child),
.post-content-body blockquote + p:has(> br:only-child) {
  display: none !important;
}

.post-quote {
  margin: 14px 0;
  padding: 20px 24px;
  background: #f1f7f6;
  border-left: 4px solid #1b736e;
  border-radius: 0 8px 8px 0;
  font-family: "Nanum Myeongjo", serif;
  font-size: 16.5px;
  font-style: italic;
  line-height: 1.75;
  color: #113c39;
}

.post-subheading {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #191f28;
  margin-top: 24px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f2f4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-subheading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #1b736e;
  border-radius: 2px;
}

.post-image-figure {
  margin: 20px 0;
  text-align: center;
}

.post-image-figure img {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.post-image-caption {
  margin-top: 8px;
  font-size: 12.5px;
  color: #8b95a1;
  font-style: italic;
}

/* Quill 에디터에서 삽입된 본문 이미지 */
.post-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 단독 1장 이미지 (문단 내 이미지가 1장일 때) */
.post-content-body p:not(:has(img:nth-of-type(2))) img {
  display: block;
  margin: 20px auto;
}

/* 2장 이상 나란히 있는 문단 컨테이너 공통 */
.post-content-body p:has(img:nth-of-type(2)) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

/* [2장 나란히] 정확히 2장일 때 (50% : 50%) */
.post-content-body p:has(img:nth-of-type(2)):not(:has(img:nth-of-type(3))) img {
  display: inline-block !important;
  flex: 1 1 calc(50% - 10px);
  max-width: calc(50% - 5px) !important;
  width: calc(50% - 5px) !important;
  height: auto;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 8px;
}

/* [3장 나란히] 3장 이상일 때 (33.3% : 33.3% : 33.3%) */
.post-content-body p:has(img:nth-of-type(3)) img {
  display: inline-block !important;
  flex: 1 1 calc(33.333% - 10px);
  max-width: calc(33.333% - 7px) !important;
  width: calc(33.333% - 7px) !important;
  height: auto;
  margin: 0 !important;
  object-fit: cover;
  border-radius: 8px;
}

/* ── 본문 내 인용구 (Quill 기본 blockquote 및 시그니처 단일 블록 - 가로 70% 적용) ── */
.post-content-body blockquote {
  width: 70% !important;
  max-width: 70% !important;
  margin: 20px auto !important;
  padding: 18px 24px !important;
  background: #f1f7f6 !important;
  border: none !important;
  border-left: 4px solid #1b736e !important;
  border-radius: 0 8px 8px 0 !important;
  font-family: "Nanum Myeongjo", serif;
  font-size: 16px;
  font-style: italic;
  color: #113c39;
  line-height: 1.75;
  box-sizing: border-box !important;
}

/* 혹시 연속된 기본 blockquote가 있을 경우 한 블록처럼 자연스럽게 이어지도록 처리 */
.post-content-body blockquote + blockquote {
  margin-top: -20px !important;
  padding-top: 4px !important;
  border-top-right-radius: 0 !important;
  border-top-left-radius: 0 !important;
}

/* ── 안개숲 시그니처 인용구 카드 (인용구 상단 + 저자정보 하단 우측 정렬 단일 블록) ── */
.post-content-body .misty-quote-card {
  position: relative !important;
  width: 70% !important;
  max-width: 70% !important;
  margin: 20px auto !important;
  padding: 22px 28px 18px 26px !important;
  background: #f1f7f6 !important;
  border: none !important;
  border-left: 4px solid #1b736e !important;
  border-radius: 0 10px 10px 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  box-shadow: 0 2px 10px rgba(27, 115, 110, 0.05);
}

.post-content-body .misty-quote-body {
  width: 100%;
}

.post-content-body .misty-quote-text {
  font-family: "Nanum Myeongjo", serif;
  font-size: 16px;
  font-style: italic;
  color: #113c39;
  line-height: 1.8;
  word-break: keep-all;
}

.post-content-body .misty-quote-author {
  margin-top: 12px;
  text-align: right;
  font-family: "Pretendard", -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1b736e;
  font-style: normal;
}

/* 본문 읽기 뷰에서는 삭제 버튼 완전히 숨김 */
.post-content-body .misty-quote-delete-btn {
  display: none !important;
}

/* 본문 읽기 뷰에서 사용자가 작성하지 않은 예시 저자명은 미노출 */
.post-content-body .misty-quote-author.is-placeholder {
  display: none !important;
}

@media (max-width: 768px) {
  .post-content-body blockquote,
  .post-content-body .misty-quote-card {
    width: 92% !important;
    max-width: 92% !important;
    padding: 18px 20px 14px 20px !important;
    margin: 20px auto !important;
  }
}

/* 소제목 H3 */
.post-content-body h3 {
  font-family: "Pretendard", -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #191f28;
  margin-top: 20px;
  margin-bottom: 6px;
}

/* ── 서재풍 구분선 (Misty Divider) ── */
.post-content-body .misty-divider-card {
  position: relative;
  margin: 20px auto;
  width: 90%;
  max-width: 640px;
  text-align: center;
  user-select: none;
  clear: both;
}

.post-content-body .misty-divider-card.style-gradient .misty-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(27, 115, 110, 0.5) 50%, transparent 100%);
  border: none;
}

.post-content-body .misty-divider-card.style-simple .misty-divider-line {
  height: 1px;
  background: #e2e8f0;
  border: none;
}

.post-content-body .misty-divider-card.style-classic .misty-divider-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.post-content-body .misty-divider-card.style-classic .misty-divider-inner::before,
.post-content-body .misty-divider-card.style-classic .misty-divider-inner::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27, 115, 110, 0.4));
}
.post-content-body .misty-divider-card.style-classic .misty-divider-inner::after {
  background: linear-gradient(90deg, rgba(27, 115, 110, 0.4), transparent);
}
.post-content-body .misty-divider-card.style-classic .misty-divider-decor {
  font-size: 13px;
  letter-spacing: 4px;
  color: #1b736e;
  opacity: 0.85;
}

.post-content-body .misty-divider-card.style-leaf .misty-divider-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.post-content-body .misty-divider-card.style-leaf .misty-divider-inner::before,
.post-content-body .misty-divider-card.style-leaf .misty-divider-inner::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 122, 110, 0.35));
}
.post-content-body .misty-divider-card.style-leaf .misty-divider-inner::after {
  background: linear-gradient(90deg, rgba(45, 122, 110, 0.35), transparent);
}
.post-content-body .misty-divider-card.style-leaf .misty-divider-leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f7f5;
  color: #1b736e;
}

/* 본문 읽기 뷰에서는 삭제 버튼 숨김 */
.post-content-body .misty-divider-delete-btn {
  display: none !important;
}

/* ── 파스텔 포스트잇 메모 카드 (왼쪽 상단 접힌 종이 효과) ── */
.post-content-body .postit-card {
  position: relative;
  width: 360px;
  max-width: 100%;
  min-height: 180px;
  height: auto;
  margin: 20px auto;
  padding: 32px 28px 26px 36px;
  border-radius: 0 4px 6px 6px;
  font-family: "Nanum Myeongjo", "Pretendard", serif;
  font-size: 15.5px;
  line-height: 1.85;
  box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: text;
  box-sizing: border-box;
  display: block;
}

/* 왼쪽 상단 귀퉁이 접힌 삼각형 플랩 (정밀 매칭) */
.post-content-body .postit-card .postit-fold {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--postit-fold-light) 0%, var(--postit-fold) 100%);
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.22));
  border-bottom-right-radius: 2px;
  z-index: 2;
}

.post-content-body .postit-body {
  color: var(--postit-text);
  word-break: keep-all;
}

.post-content-body .postit-delete-btn {
  display: none !important;
}

/* 5가지 서재 파스텔 톤 팔레트 (사용자 예시 피치 톤 정밀 반영) */
.post-content-body .postit-card.color-peach {
  --postit-bg: #fde5d6;
  --postit-fold: #e89b76;
  --postit-fold-light: #f3b192;
  --postit-text: #3d2314;
  background: linear-gradient(135deg, transparent 19.8px, #fde5d6 20.2px);
}

.post-content-body .postit-card.color-yellow {
  --postit-bg: #fef8c8;
  --postit-fold: #f4d048;
  --postit-fold-light: #fbe078;
  --postit-text: #3d3008;
  background: linear-gradient(135deg, transparent 19.8px, #fef8c8 20.2px);
}

.post-content-body .postit-card.color-mint {
  --postit-bg: #def4e4;
  --postit-fold: #8dd8a3;
  --postit-fold-light: #a9e4bb;
  --postit-text: #133921;
  background: linear-gradient(135deg, transparent 19.8px, #def4e4 20.2px);
}

.post-content-body .postit-card.color-lavender {
  --postit-bg: #f2e8fa;
  --postit-fold: #c9a7ea;
  --postit-fold-light: #d8bcf4;
  --postit-text: #351c50;
  background: linear-gradient(135deg, transparent 19.8px, #f2e8fa 20.2px);
}

.post-content-body .postit-card.color-sky {
  --postit-bg: #e1f1fc;
  --postit-fold: #86c4f3;
  --postit-fold-light: #a7d6f8;
  --postit-text: #10344d;
  background: linear-gradient(135deg, transparent 19.8px, #e1f1fc 20.2px);
}

/* 아날로그 미세 회전 (Tilt) */
.post-content-body .postit-card.tilt-1 { transform: rotate(-0.8deg); }
.post-content-body .postit-card.tilt-2 { transform: rotate(0.7deg); }
.post-content-body .postit-card.tilt-3 { transform: rotate(-0.5deg); }
.post-content-body .postit-card.tilt-4 { transform: rotate(0.6deg); }

.post-content-body .postit-card:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 2px 8px 20px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* 문단 정렬 (Quill align 클래스) */
.post-content-body .ql-align-center {
  text-align: center;
}

.post-content-body .ql-align-right {
  text-align: right;
}

.post-content-body .ql-align-justify {
  text-align: justify;
}

/* 인라인 코드 및 코드 블록 */
.post-content-body code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  background: #f1f3f5;
  color: #b35436;
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content-body pre,
.post-content-body pre.ql-syntax {
  background: #1e242c;
  color: #e6edf3;
  padding: 16px 20px;
  border-radius: 8px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 18px 0;
}

/* 본문에 삽입된 도서 정보 카드 (에디터 삽입본) */
.post-content-body .inserted-book-card {
  background: #f8fafb;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  margin: 20px auto;
}

.post-content-body .inserted-book-cover {
  width: 90px;
  height: 125px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #dee2e6;
}

.post-content-body .inserted-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.post-content-body .inserted-book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-content-body .inserted-book-title {
  font-family: "Nanum Myeongjo", serif;
  font-size: 17px;
  font-weight: 700;
  color: #191f28;
}

.post-content-body .inserted-book-author {
  font-size: 13.5px;
  color: #333d4b;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.post-content-body .inserted-book-publisher {
  font-size: 13px;
  color: #6b7684;
  line-height: 1.4;
  margin: 0;
}

.post-content-body .inserted-book-stars {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
  line-height: 1 !important;
  margin: 4px 0 !important;
}

.post-content-body .book-stars-visual {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2px !important;
}

.post-content-body .star-icon {
  display: inline-block;
  color: #dcdfe4;
  font-size: 15px;
  line-height: 1;
}

.post-content-body .star-icon.full {
  color: #f59f00;
}

.post-content-body .star-icon.half {
  position: relative;
  display: inline-block;
  color: #dcdfe4;
}

.post-content-body .star-icon.half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f59f00;
}

.post-content-body .star-icon.empty {
  color: #dcdfe4;
}

.post-content-body .inserted-book-quote {
  font-size: 12.5px;
  color: #6b7684;
  line-height: 1.5;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #edf0f2;
  margin-top: 4px;
}

/* ── 본문 내 심플 사각 도서 정보 카드 서식 (발행 후 상세 뷰) ── */
.post-content-body .simple-book-card {
  position: relative;
  display: block;
  width: 580px;
  max-width: 100%;
  border: 1.5px solid #dcdfe4;
  border-radius: 10px;
  background-color: #ffffff;
  padding: 22px 28px;
  margin: 20px auto;
  box-sizing: border-box;
  text-align: left;
}

.post-content-body .simple-book-card .book-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-content-body .simple-book-card .book-card-row {
  display: flex;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.6;
  color: #333d4b;
}

.post-content-body .simple-book-card .book-card-label {
  display: inline-flex;
  justify-content: space-between;
  width: 52px;
  flex-shrink: 0;
  font-weight: 500;
  color: #333d4b;
  letter-spacing: 0;
  user-select: none;
}

.post-content-body .simple-book-card .book-card-colon {
  margin-left: 6px;
  margin-right: 12px;
  flex-shrink: 0;
  font-weight: 500;
  color: #333d4b;
  user-select: none;
}

.post-content-body .simple-book-card .book-card-val {
  flex: 1;
  color: #191f28;
  font-weight: 400;
  word-break: break-word;
}

.post-content-body .simple-book-card .book-card-delete-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .post-content-body .simple-book-card {
    width: 100%;
    padding: 18px 20px;
    margin: 20px auto;
  }
}

/* 태그 목록 */
.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #f0f2f4;
}

.post-tag-item {
  display: inline-block;
  padding: 5px 12px;
  background: #f2f4f6;
  border-radius: 16px;
  font-size: 12.5px;
  color: #4e5968;
  text-decoration: none;
  transition: all 0.15s ease;
}

.post-tag-item:hover {
  background: #e9f4f3;
  color: #1b736e;
  font-weight: 600;
}

/* 공감 및 액션 바 */
.post-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #f0f2f4;
  border-bottom: 1px solid #f0f2f4;
}

.btn-big-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #ffffff;
  border: 1.5px solid #e5e8eb;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #4e5968;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-big-like:hover, .btn-big-like.liked {
  background: #fef0f2;
  border-color: #f7a8b8;
  color: #e03131;
  transform: translateY(-1px);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #f8fafb;
  border: 1px solid #e5e8eb;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4e5968;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-share:hover {
  background: #ffffff;
  color: #1b736e;
  border-color: #1b736e;
}

/* 이전글 / 다음글 & 목록으로 네비게이션 */
.post-nav-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafb;
  border: 1px solid #f0f2f4;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
}

.post-nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-nav-label {
  color: #8b95a1;
  font-weight: 600;
  width: 60px;
  flex-shrink: 0;
}

.post-nav-link {
  color: #333d4b;
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
  cursor: pointer;
}

.post-nav-link:hover {
  color: #1b736e;
  text-decoration: underline;
}

.post-nav-empty {
  color: #abb3ba;
  font-size: 13px;
  flex: 1;
  cursor: default;
  user-select: none;
}

.post-bottom-buttons {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.btn-back-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #1b736e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-back-list:hover {
  background: #135854;
}

/* 댓글 섹션 */
.comments-section {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comments-header {
  font-size: 16px;
  font-weight: 700;
  color: #191f28;
  display: flex;
  align-items: center;
  gap: 6px;
}

.comments-count {
  color: #1b736e;
}

.comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  background: #fdfdfd;
  border: 1px solid #f0f2f4;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-item.owner {
  background: #f7fbf8;
  border-color: #d6ecea;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author {
  font-weight: 700;
  color: #191f28;
}

.owner-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: #1b736e;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

.comment-date {
  color: #8b95a1;
}

.comment-text {
  font-size: 13.5px;
  color: #333d4b;
  line-height: 1.6;
}

/* 댓글 작성 폼 */
.comment-form {
  background: #f8fafb;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 봇/매크로 방어용 허니팟 숨김 스타일 */
.comment-hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.comment-inputs {
  display: flex;
  gap: 10px;
}

.comment-input-text {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
}

.comment-input-text:focus {
  border-color: #1b736e;
}

.comment-textarea {
  width: 100%;
  height: 80px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.comment-textarea:focus {
  border-color: #1b736e;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.secret-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6b7684;
  cursor: pointer;
}

.btn-submit-comment {
  padding: 8px 20px;
  background: #1b736e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit-comment:hover {
  background: #135854;
}

/* ── 카테고리 모아보기 (카테고리 아카이브) 뷰 스타일 ── */
.category-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-view-banner {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  border-left: 4px solid #1b736e;
}

.category-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1b736e;
  background: #e9f4f3;
  padding: 3px 10px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.category-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.category-banner-title {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 23px;
  font-weight: 700;
  color: #191f28;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.category-count-badge {
  font-family: "Pretendard", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1b736e;
}

.category-banner-desc {
  font-size: 14px;
  color: #6b7684;
  line-height: 1.6;
}

.category-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #d1d6db;
  margin-top: 4px;
}

.category-toolbar-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #191f28;
}

/* 등록된 글이 없을 때 (Empty State) */
.empty-category-box {
  background: #ffffff;
  border: 1px dashed #dcdfe4;
  border-radius: 10px;
  padding: 56px 24px;
  text-align: center;
  color: #8b95a1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-category-icon {
  font-size: 36px;
  color: #abb3ba;
}

.empty-category-title {
  font-size: 16px;
  font-weight: 700;
  color: #4e5968;
}

.empty-category-desc {
  font-size: 13px;
  color: #8b95a1;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .post-view-container {
    padding: 24px 18px 36px;
  }
  .post-detail-title {
    font-size: 22px;
  }
  .book-meta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .book-meta-cover {
    width: 80px;
    height: 110px;
  }
  .comment-inputs {
    flex-direction: column;
  }
}

/* ════════ 관리자 모달 및 관리 기능 스타일 ════════ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #191f28;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #8b95a1;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-close-modal:hover {
  color: #191f28;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-modal-desc {
  font-size: 13.5px;
  color: #4e5968;
  line-height: 1.55;
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #333d4b;
}

.form-input {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: #1b736e;
  box-shadow: 0 0 0 3px rgba(27, 115, 110, 0.12);
}

.form-hint {
  font-size: 12px;
  color: #8b95a1;
  margin-top: 2px;
}

.form-hint code {
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #1b736e;
}

.admin-login-error {
  background: #fef0f2;
  border: 1px solid #f7a8b8;
  color: #e03131;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 6px;
}

.modal-footer {
  padding: 16px 24px;
  background: #fafbfc;
  border-top: 1px solid #eef1f4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-cancel {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4e5968;
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
  background: #f2f4f6;
}

.btn-modal-submit {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  background: #1b736e;
  border: 1px solid #1b736e;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-submit:hover {
  background: #23633d;
}

/* ── 사이드바 관리자 위젯 ── */
.sidebar-admin-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-admin-login-toggle {
  width: 100%;
  padding: 9px 12px;
  background: #f8fafb;
  border: 1px solid #e5e8eb;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4e5968;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-admin-login-toggle:hover {
  background: #eef7f0;
  border-color: #a3d9b1;
  color: #1b736e;
}

.admin-session-active {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-session-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.admin-session-badge {
  color: #166534;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-admin-logout {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  color: #64748b;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-admin-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ── 글 상세 관리자 액션 바 (수정 / 삭제) ── */
.post-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.btn-post-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-post-edit {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.btn-post-edit:hover {
  background: #dcfce7;
  border-color: #4ade80;
}

.btn-post-delete {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.btn-post-delete:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* ── 댓글 삭제 버튼 ── */
.comment-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-delete-comment {
  background: transparent;
  border: none;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-delete-comment:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ── 예약 발행 뱃지 및 배너 (관리자 전용) ── */
.badge-scheduled-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: -0.2px;
  vertical-align: middle;
}

.scheduled-post-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.scheduled-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scheduled-banner-badge {
  background: #d97706;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: -0.3px;
}

.scheduled-banner-text {
  font-size: 13.5px;
  color: #78350f;
}

.scheduled-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-banner-publish-now {
  background: #1b736e;
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-banner-publish-now:hover {
  background: #155e5a;
}

.btn-banner-edit-schedule {
  background: #ffffff;
  color: #78350f;
  border: 1px solid #fde68a;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-banner-edit-schedule:hover {
  background: #fef3c7;
  border-color: #d97706;
}


