/* ===========================
   CSS 변수 (라이트 / 다크)
   =========================== */
:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --accent: #1d1d1f;
  --border: #d2d2d7;
  --surface: #f5f5f7;
  --surface2: #ebebef;
  --max-width: 1100px;
  --font-display: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', -apple-system, sans-serif;
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --text: #f5f5f7;
  --text-muted: #8e8e93;
  --accent: #f5f5f7;
  --border: #2c2c2e;
  --surface: #1c1c1e;
  --surface2: #2c2c2e;
  --shadow: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
}

/* ===========================
   기본 리셋
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }

/* ===========================
   헤더
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(210,210,215,0.5);
}

[data-theme="dark"] .site-header {
  background: rgba(10,10,10,0.85);
  border-bottom-color: rgba(44,44,46,0.8);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.6; }

nav { display: flex; gap: 32px; align-items: center; }
nav a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* 여행지도 버튼 강조 */
.nav-map-btn {
  position: relative;
  color: var(--text) !important;
  font-weight: 500 !important;
}
.nav-map-btn::before { content: '🗺️'; margin-right: 4px; font-size: 0.9rem; }

/* ===========================
   다크모드 토글
   =========================== */
.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  position: relative;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.dark-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.3s, background 0.3s;
}

[data-theme="dark"] .dark-toggle {
  background: var(--surface2);
}

[data-theme="dark"] .dark-toggle::after {
  transform: translateX(16px);
  background: #ffd60a;
}

/* ===========================
   모바일 네비
   =========================== */
.mobile-nav {
  display: none;
  align-items: center;
  gap: 12px;
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text);
  padding: 0;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
[data-theme="dark"] .mobile-menu {
  background: rgba(10,10,10,0.97);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background: var(--surface); }

/* ===========================
   검색
   =========================== */
.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  color: var(--text-muted);
  transition: color 0.2s;
}
.search-btn:hover { color: var(--text); }

.search-bar {
  display: none;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 40px;
}
[data-theme="dark"] .search-bar { background: rgba(10,10,10,0.97); }
.search-bar.active { display: block; }
.search-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
}
.search-inner input::placeholder { color: var(--text-muted); }
.search-inner button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
}
.search-results {
  max-width: var(--max-width);
  margin: 12px auto 0;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.search-result-item:hover { color: var(--text-muted); }
.search-result-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.search-result-title { font-size: 0.9rem; color: var(--text); }
.search-result-tags { display: flex; gap: 4px; }
.search-result-tag {
  font-size: 0.62rem;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}
.search-highlight {
  background: rgba(255,214,10,0.4);
  border-radius: 2px;
  padding: 0 1px;
}
.no-result { font-size: 0.85rem; color: var(--text-muted); padding: 12px 0; }

/* ===========================
   히어로
   =========================== */
.hero {
  position: relative;
  width: 100%;
  height: 94vh;
  min-height: 600px;
  background-image: url('/assets/images/sapporo.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.55) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 70px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,0.75); }
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.04em;
  animation: fadeUp 0.8s ease 0.1s both;
}

/* 히어로 카테고리 바 */
.hero-cats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.15);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-cat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 32px;
  color: #fff;
  transition: background 0.2s ease;
}
.hero-cat:hover { background: rgba(255,255,255,0.12); }
.hero-cat-icon { font-size: 1.6rem; line-height: 1; }
.hero-cat-name { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.hero-cat-sub { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 2px; }
.hero-cat-divider { width: 1px; background: rgba(255,255,255,0.2); margin: 16px 0; }

/* ===========================
   섹션 구분선
   =========================== */
.section-divider {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===========================
   피처드
   =========================== */
.featured {
  max-width: var(--max-width);
  margin: 0 auto 80px;
  padding: 0 40px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.featured-link {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-link:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}
.featured-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
}
.featured-img--empty { background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); }
.featured-body {
  padding: 48px 36px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.dot { margin: 0 6px; }
.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.featured-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.featured-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.featured-link:hover .featured-cta { gap: 12px; }

/* ===========================
   카드 그리드
   =========================== */
.grid-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 100px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-color: var(--surface2);
  display: block;
}
.card-img--empty { background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%); }
.card-body { padding: 20px 22px 24px; }
.card-meta { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 8px; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.card-excerpt { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.card-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--surface2);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.card-tag:hover { background: var(--accent); color: var(--bg); }

/* ===========================
   태그 페이지
   =========================== */
.tag-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}
.tag-page-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.tag-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tag-page-header h1 .tag-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  padding: 3px 12px;
  border-radius: 100px;
  vertical-align: middle;
  margin-right: 12px;
}
.tag-page-header p { font-size: 0.9rem; color: var(--text-muted); }

/* 태그 클라우드 */
.tags-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}
.tags-header { margin-bottom: 48px; }
.tags-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 64px;
}
.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tag-cloud-item:hover, .tag-cloud-item.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.tag-cloud-item .count {
  font-size: 0.68rem;
  background: var(--surface2);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.tag-cloud-item:hover .count, .tag-cloud-item.active .count {
  background: rgba(255,255,255,0.2);
  color: var(--bg);
}

/* 태그 필터링 결과 */
.tag-results { display: none; }
.tag-results.active { display: block; }

/* ===========================
   시리즈
   =========================== */
.series-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 auto 40px;
  max-width: 720px;
  border-left: 3px solid var(--text);
}
[data-theme="dark"] .series-box { border-left-color: #f5f5f7; }
.series-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.series-box-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.series-box-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}
.series-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.series-toggle:hover { background: var(--surface2); color: var(--text); }
.series-list { display: none; flex-direction: column; gap: 4px; }
.series-list.open { display: flex; }
.series-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background 0.15s;
}
.series-item:hover { background: var(--surface2); color: var(--text); }
.series-item.current {
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.series-item .num {
  font-size: 0.68rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.6;
}
.series-item.current .num { opacity: 1; }

/* 시리즈 목록 페이지 */
.series-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}
.series-page-header { margin-bottom: 48px; }
.series-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.series-cards { display: flex; flex-direction: column; gap: 16px; }
.series-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.series-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateX(6px);
}
.series-card-icon { font-size: 2rem; flex-shrink: 0; }
.series-card-info { flex: 1; }
.series-card-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.series-card-count { font-size: 0.75rem; color: var(--text-muted); }
.series-card-arrow { font-size: 1rem; color: var(--text-muted); transition: transform 0.2s; }
.series-card:hover .series-card-arrow { transform: translateX(4px); }

/* ===========================
   포스트 헤더 & 컨텐츠
   =========================== */
.post-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 100px;
  transition: all 0.2s;
}
.post-tag:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 60px;
}
.post-content p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 32px 0 10px;
}
.post-content img {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  margin: 28px 0 28px 14px;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-content img:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}
.post-content blockquote {
  border-left: 2px solid var(--text-muted);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 40px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ===========================
   목차 (TOC)
   =========================== */
.toc-wrap {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0 40px;
}
.toc-box {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
}
.toc-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.toc-arrow {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.toc-box.open .toc-arrow { transform: rotate(180deg); }
.toc-list {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}
.toc-box.open .toc-list { display: block; }
.toc-list ol, .toc-list ul { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a {
  display: block;
  padding: 5px 0 5px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -1px;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.5;
}
.toc-list a:hover { color: var(--text); border-left-color: var(--text); }
.toc-list a.active { color: var(--text); border-left-color: var(--text); font-weight: 500; }
/* h3 들여쓰기 */
.toc-list li li a { padding-left: 24px; font-size: 0.78rem; }

/* ===========================
   이전글/다음글
   =========================== */
.post-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.post-nav-item {
  padding: 20px 24px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.post-nav-item:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.post-nav-item.prev { text-align: left; }
.post-nav-item.next { text-align: right; }
.post-nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-nav-item.next .post-nav-label { justify-content: flex-end; }
.post-nav-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================
   소셜 공유
   =========================== */
.share-buttons {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  color: var(--text);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.share-btn.kakao { background: #FEE500; border-color: #FEE500; }
.share-btn.kakao:hover { background: #FFD700; }
.share-btn.twitter { background: #1DA1F2; border-color: #1DA1F2; color: white; }
.share-btn.twitter:hover { background: #1A8CD8; }
.share-btn.facebook { background: #1877F2; border-color: #1877F2; color: white; }
.share-btn.facebook:hover { background: #166FE5; }
.share-btn.copy { background: var(--surface); }
.share-btn.copy:hover { background: var(--surface2); }
.share-btn.copy.copied { background: #10B981; border-color: #10B981; color: white; }

/* ===========================
   관련글
   =========================== */
.related-posts {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 40px 40px;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-card {
  display: block;
  padding: 16px;
  background: var(--surface);
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.related-card-meta { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.related-card-title { font-size: 0.9rem; font-weight: 500; line-height: 1.4; color: var(--text); }

/* ===========================
   이미지 라이트박스
   =========================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute;
  bottom: -36px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

/* ===========================
   읽기 진행바
   =========================== */
.reading-progress {
  position: fixed;
  top: 52px; left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1d1d1f 0%, #6e6e73 100%);
  z-index: 99;
  transition: width 0.1s ease;
}
[data-theme="dark"] .reading-progress {
  background: linear-gradient(90deg, #f5f5f7 0%, #8e8e93 100%);
}

/* ===========================
   맨 위로 버튼
   =========================== */
.scroll-top {
  position: fixed;
  bottom: 40px; right: 40px;
  width: 50px; height: 50px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 98;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* ===========================
   카테고리 관련
   =========================== */
.categories {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
}
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 20px;
  background: var(--surface);
  border-radius: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg);
  border-color: var(--border);
}
.cat-icon { font-size: 2rem; line-height: 1; }
.cat-name { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.cat-desc { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.cat-post-count { font-size: 0.68rem; color: var(--text-muted); }

.all-cats-page { max-width: 720px; margin: 0 auto; padding: 80px 40px 100px; }
.all-cats-header { margin-bottom: 48px; }
.all-cats-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.all-cats-grid { display: flex; flex-direction: column; gap: 12px; }
.all-cat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.all-cat-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--border);
}
.all-cat-icon { font-size: 2rem; }
.all-cat-info { flex: 1; }
.all-cat-info h3 { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.all-cat-info p { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.all-cat-arrow { font-size: 1rem; color: var(--text-muted); transition: transform 0.2s; }
.all-cat-card:hover .all-cat-arrow { transform: translateX(4px); }

/* 카테고리 개별 페이지 */
.cat-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
  text-align: center;
}
.cat-icon-lg { display: block; font-size: 3rem; margin-bottom: 16px; }
.cat-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cat-header .back-link { display: inline-block; margin-bottom: 32px; }

/* ===========================
   Contact / About
   =========================== */
.contact-page { max-width: 600px; margin: 0 auto; padding: 80px 40px 100px; }
.contact-header { margin-bottom: 48px; }
.contact-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.contact-icon { font-size: 1.8rem; }
.contact-info { flex: 1; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-email { font-size: 0.9rem; color: var(--text); font-weight: 400; }
.contact-cta { font-size: 0.8rem; font-weight: 500; color: var(--text); }

.about-section { max-width: 720px; margin: 0 auto; padding: 80px 40px 100px; }
.about-section h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.1;
}
.about-section em { font-style: italic; color: var(--text-muted); }
.about-section p { font-size: 1rem; line-height: 1.9; color: var(--text); margin-bottom: 24px; }

/* ===========================
   푸터
   =========================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; color: var(--text); }
.site-footer p { font-size: 0.75rem; color: var(--text-muted); }
.footer-stats { display: flex; gap: 20px; }
.footer-stat { font-size: 0.72rem; color: var(--text-muted); }
.footer-stat strong { color: var(--text); font-weight: 500; }

/* ===========================
   댓글
   =========================== */
.comments {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  border-top: 1px solid var(--border);
}

/* ===========================
   애니메이션
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub { animation: fadeUp 0.8s ease 0.1s both; }
.featured { animation: fadeUp 0.8s ease 0.2s both; }

/* ===========================
   반응형
   =========================== */
@media (max-width: 960px) {
  .featured-link { grid-template-columns: 1fr; }
  .featured-img { height: 300px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background-image: url('/assets/images/sapporo-tablet.webp'); }
  .lightbox-prev { left: -48px; }
  .lightbox-next { right: -48px; }
}

@media (max-width: 700px) {
  .hero-cats { flex-wrap: wrap; }
  .hero-cat { flex: 1 1 50%; padding: 16px 20px; }
  .hero-cat-divider { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; }
  .header-inner { padding: 0 16px; }
  .logo { font-size: 0.72rem; }

  .hero {
    background-image: url('/assets/images/sapporo-mobile.webp');
    height: 100vh;
    min-height: 600px;
  }
  .hero-inner { padding: 0 20px 70px; }
  .hero-title { font-size: 2.8rem; }

  .featured { padding: 0 16px; margin-bottom: 50px; }
  .featured-body { padding: 28px 24px; }
  .section-divider, .grid-wrap { padding: 0 16px; }
  .grid-wrap { padding-bottom: 60px; }
  .card-grid { grid-template-columns: 1fr; }

  .post-header, .post-content, .comments, .about-section { padding-left: 20px; padding-right: 20px; }
  .toc-wrap { padding: 0 20px; }
  .post-nav { padding: 40px 20px 48px; grid-template-columns: 1fr; }
  .share-buttons { padding: 0 20px; }
  .related-posts { padding: 40px 20px; }
  .related-grid { grid-template-columns: 1fr; }

  .footer-inner { padding: 0 20px; flex-direction: column; gap: 12px; text-align: center; }
  .footer-stats { justify-content: center; }
  .all-cats-page, .contact-page { padding-left: 20px; padding-right: 20px; }
  .tags-page, .tag-page, .series-page { padding: 40px 20px 80px; }

  .scroll-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 1rem; }
  .reading-progress { height: 2px; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    background: rgba(0,0,0,0.5);
  }
}

/* 포스트 수 카운트 */
.no-posts { color: var(--text-muted); font-size: 0.95rem; padding: 60px 0; text-align: center; }
