@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;
}

/* ── 상단 헤더 영역 (헤더 배너 260px) ── */
.blog-header {
  width: 100%;
  height: 260px;
  background: #233128 url('../images/header_banner.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(16, 28, 22, 0.45), rgba(16, 28, 22, 0.15) 60%, rgba(16, 28, 22, 0.4));
  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: #2b7a4b;
  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: #2b7a4b;
  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: #23653d;
}

/* 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: #2b7a4b;
}

.category-item.active a {
  background-color: #eaf6ee;
  color: #2b7a4b;
  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: #2b7a4b;
  font-weight: 500;
  padding-left: 13px;
}

.sub-item.active a {
  color: #2b7a4b;
  font-weight: 600;
  background-color: #eaf6ee;
}

.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: #2b7a4b;
}

/* 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: #2b7a4b;
  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(43, 122, 75, 0.08);
}

.resizer:hover::after, .resizer.dragging::after {
  background-color: #2b7a4b;
  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: #2b7a4b;
  background: #eaf6ee;
  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: #2b7a4b;
  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: #2b7a4b;
}

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

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

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

/* 드롭다운 서브메뉴 */
.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: #eaf6ee;
  color: #2b7a4b;
  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: #2b7a4b;
  box-shadow: 0 0 0 3px rgba(43, 122, 75, 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;
  font-size: 13px;
  color: #6b7684;
  display: flex;
  align-items: center;
  padding-left: 4px;
}

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

/* ── 와이어프레임 기반 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: 2px solid #191f28;
}

.section-title {
  font-family: "Nanum Myeongjo", "Pretendard", 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: #2b7a4b;
}

.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 #2b7a4b;
}

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

.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: #2b7a4b;
  background: #eaf6ee;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.issue-title {
  font-family: "Nanum Myeongjo", "Pretendard", 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: #2b7a4b;
}

.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: #2b7a4b;
}

/* 서평 상단(제목 위) 정사각 섬네일 */
.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: #2b7a4b;
  margin-bottom: 6px;
}

.review-book-title {
  font-family: "Nanum Myeongjo", "Pretendard", 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 {
  color: #f59f00;
  font-size: 12px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.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: #2b7a4b;
}

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

.story-title {
  font-family: "Nanum Myeongjo", "Pretendard", 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: #2b7a4b;
  background: #eaf6ee;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.post-detail-title {
  font-family: "Nanum Myeongjo", "Pretendard", 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: #2b7a4b;
}

/* 도서 정보 박스 (에디터 글감 서식) */
.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: "Nanum Myeongjo", serif;
  font-size: 17px;
  font-weight: 700;
  color: #191f28;
}

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

.book-meta-stars {
  color: #f59f00;
  font-size: 14px;
  letter-spacing: 2px;
}

.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: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.post-subheading {
  font-family: "Nanum Myeongjo", 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: #2b7a4b;
  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;
  display: block;
  margin: 24px auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 본문 내 인용구 (Quill 기본 blockquote) */
.post-content-body blockquote {
  margin: 18px 0;
  padding: 18px 22px;
  background: #f4f8f5;
  border-left: 4px solid #2b7a4b;
  border-radius: 0 8px 8px 0;
  font-family: "Nanum Myeongjo", serif;
  font-size: 16px;
  font-style: italic;
  color: #234731;
  line-height: 1.75;
}

/* 본문에 삽입된 도서 정보 카드 (에디터 삽입본) */
.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 0 26px;
}

.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: 13px;
  color: #4e5968;
}

.post-content-body .inserted-book-stars {
  color: #f59f00;
  font-size: 13.5px;
  letter-spacing: 2px;
}

.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-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: #eaf6ee;
  color: #2b7a4b;
  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: #2b7a4b;
  border-color: #2b7a4b;
}

/* 이전글 / 다음글 & 목록으로 네비게이션 */
.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: 50px;
  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: #2b7a4b;
  text-decoration: underline;
}

.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: #2b7a4b;
  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: #23653d;
}

/* 댓글 섹션 */
.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: #2b7a4b;
}

.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: #d8edd9;
}

.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: #2b7a4b;
  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-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: #2b7a4b;
}

.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: #2b7a4b;
}

.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: #2b7a4b;
  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: #23653d;
}

/* ── 카테고리 모아보기 (카테고리 아카이브) 뷰 스타일 ── */
.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 #2b7a4b;
}

.category-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2b7a4b;
  background: #eaf6ee;
  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: "Nanum Myeongjo", "Pretendard", 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: #2b7a4b;
}

.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: 2px solid #191f28;
  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: #2b7a4b;
  box-shadow: 0 0 0 3px rgba(43, 122, 75, 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: #2b7a4b;
}

.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: #2b7a4b;
  border: 1px solid #2b7a4b;
  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: #2b7a4b;
}

.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;
}

