/*
 * 파일명: view.css
 * 경로: /home/urlkr/public_html/p/post/assets/css/view.css
 * 기능: 포스트 뷰 페이지 스타일
 * 제작일: 2025-06-20
 * 수정일: 2026-01-28
 */

/* ===== CSS 변수 ===== */
:root {
	--primary-color: #7CB342;
	--primary-hover: #689F38;
	--primary-light: #C5E1A5;
	--primary-lighter: #F1F8E9;
	--text-dark: #1a1a1a;
	--text-muted: #6c757d;
	--bg-body: #f8faf5;
	--bg-white: #ffffff;
	--border-color: #e5e7eb;
}

/* ===== 리셋 & 기본 ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.8;
	color: var(--text-dark);
	background: var(--bg-body);
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	color: var(--primary-hover);
	text-decoration: underline;
}

/* ===== 헤더 (index.php와 통일) ===== */
.site-header {
	background: var(--bg-white);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 그림자 추가 */
}

.header-inner {
	max-width: 1200px; /* view.php 폭에 맞춤 */
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* 검색창 스타일 추가 */
.search-form {
	display: flex;
	max-width: 280px;
	flex: 1;
}

.search-input {
	flex: 1;
	padding: 8px 14px;
	border: 2px solid var(--border-color);
	border-right: none;
	border-radius: 8px 0 0 8px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s;
}

.search-input:focus {
	border-color: var(--primary-color);
}

.search-btn {
	padding: 8px 16px;
	background: var(--primary-color);
	color: white;
	border: 2px solid var(--primary-color);
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
}

/* 관리자 메뉴 스타일 (기존 중복 제거 및 정리) */
.admin-menu {
	display: flex;
	gap: 8px;
}

/* 반응형 헤더 처리 */
@media (max-width: 768px) {
	.search-form {
		display: none; /* 모바일에서 검색창이 너무 복잡하면 숨김 처리 (선택사항) */
	}
}

.logo {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-dark);
	display: flex;
	align-items: center;
	gap: 8px;
}

.logo:hover {
	text-decoration: none;
}

.logo span {
	color: var(--primary-color);
}

/* ===== 레이아웃 ===== */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 32px;
}

/* ===== 메인 콘텐츠 ===== */
.main-content {
	min-width: 0;
}

.article-card {
	background: var(--bg-white);
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	overflow: hidden;
}

/* 글 헤더 */
.article-header {
	padding: 32px 32px 0;
}

.article-title {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 16px;
	color: var(--text-dark);
}

.article-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.meta-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.article-category {
	display: inline-block;
	background: var(--primary-lighter);
	color: var(--primary-hover);
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.meta-item {
	font-size: 13px;
	color: var(--text-muted);
}

.meta-right {
	display: flex;
	gap: 6px;
}

.admin-btn {
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 4px;
	background: var(--bg-body);
	color: var(--text-muted);
	border: 1px solid var(--border-color);
	transition: all 0.2s;
}

.admin-btn:hover {
	text-decoration: none;
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.admin-btn.delete:hover {
	border-color: #dc2626;
	color: #dc2626;
}

/* 통합 인트로 박스 (핵심요약 + 큐레이션) */
.article-intro-box {
	background: var(--bg-body);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 32px;
}

.intro-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--primary-hover);
	margin-bottom: 10px;
}

.intro-label small {
	font-weight: 400;
	color: var(--text-muted);
	margin-left: 6px;
}

.intro-summary p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-dark);
	margin: 0;
}

.intro-divider {
	height: 1px;
	background: var(--border-color);
	margin: 20px 0;
}

.intro-series .series-desc {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 12px;
	line-height: 1.6;
}

.series-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.series-list li {
	padding: 6px 0;
	font-size: 14px;
	border-bottom: 1px dashed var(--border-color);
}

.series-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.series-list li a {
	color: var(--text-dark);
	text-decoration: none;
}

.series-list li a:hover {
	color: var(--primary-color);
}

.series-list li.current {
	font-weight: 600;
	color: var(--primary-hover);
}

.series-list li.current::before {
	content: '› ';
}


/* 본문 */
.article-body {
	padding: 20px;
}

/* 이전글/다음글 네비게이션 */
.post-navigation {
	display: flex;
	gap: 16px;
	margin: 0 32px 24px;
	padding: 20px 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.post-nav-item {
	flex: 1;
	min-width: 0;
}

.post-nav-item a {
	display: block;
	padding: 16px;
	background: var(--bg-body);
	border-radius: 10px;
	transition: all 0.2s;
	text-decoration: none;
}

.post-nav-item a:hover {
	background: var(--primary-lighter);
}

.post-nav-item.next {
	text-align: right;
}

.post-nav-item .nav-label {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.post-nav-item .nav-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-nav-item a:hover .nav-title {
	color: var(--primary-color);
}

.article-content {
	font-size: 17px;
	line-height: 1.9;
}

.article-content h2 {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 48px 0 20px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--primary-color);
	color: var(--text-dark);
}

.article-content h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 36px 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--primary-light);
	color: var(--text-dark);
}

.article-content h4 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 28px 0 12px;
	color: var(--text-dark);
}

.article-content p {
	margin-bottom: 20px;
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

.article-content ul,
.article-content ol {
	margin: 20px 0;
	padding-left: 24px;
}

.article-content li {
	margin-bottom: 8px;
}

.article-content blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: var(--bg-body);
	border-left: 4px solid var(--primary-color);
	border-radius: 0 8px 8px 0;
	font-style: italic;
}

.article-content a {
	color: var(--primary-color);
	text-decoration: underline;
}

.article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
}

.article-content th,
.article-content td {
	padding: 12px;
	border: 1px solid var(--border-color);
	text-align: left;
}

.article-content th {
	background: var(--bg-body);
	font-weight: 600;
}

/* ===== 업데이트 로그 ===== */
.update-log {
	margin: 0 32px 32px;
	padding: 20px;
	background: var(--bg-body);
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

.update-log-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--text-dark);
	margin-bottom: 12px;
}

.update-log-content {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.6;
}

.update-log-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--bg-white);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--text-dark);
	border: 1px solid var(--border-color);
}

.update-log-date .date {
	font-weight: 600;
}

/* ===== 쇼트코드 스타일 ===== */

/* 목차 */
.toc-container {
	background: var(--bg-body);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	margin: 24px 0;
	overflow: hidden;
}

.toc-header {
	padding: 16px 20px;
	background: var(--bg-white);
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	border-bottom: 1px solid var(--border-color);
}

.toc-toggle {
	transition: transform 0.2s;
}

.toc-container.collapsed .toc-toggle {
	transform: rotate(-90deg);
}

.toc-container.collapsed .toc-list {
	display: none;
}

.toc-list {
	list-style: none;
	padding: 16px 20px;
	margin: 0;
}

.toc-list li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--border-color);
}

.toc-list li:last-child {
	border-bottom: none;
}

.toc-list li.toc-indent {
	padding-left: 20px;
	font-size: 14px;
}

.toc-list a {
	color: var(--text-dark);
	text-decoration: none;
}

.toc-list a:hover {
	color: var(--primary-color);
}

/* 코드 블록 */
.code-block {
	background: #1e1e1e;
	border-radius: 12px;
	margin: 24px 0;
	overflow: hidden;
}

.code-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	background: #2d2d2d;
}

.code-lang {
	font-size: 12px;
	color: #888;
	font-weight: 600;
}

.code-copy {
	background: #444;
	color: #fff;
	border: none;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
}

.code-copy:hover {
	background: #555;
}

.code-block pre {
	margin: 0;
	padding: 20px;
	overflow-x: auto;
}

.code-block code {
	color: #d4d4d4;
	font-family: 'Consolas', 'Monaco', monospace;
	font-size: 14px;
	line-height: 1.6;
}

/* 정보 박스 */
.info-box {
	display: flex;
	gap: 16px;
	padding: 20px;
	border-radius: 12px;
	margin: 24px 0;
}

.info-box-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.info-box-title {
	font-weight: 700;
	margin-bottom: 4px;
}

.info-box-text {
	font-size: 15px;
	line-height: 1.7;
}

.info-box-info {
	background: #e3f2fd;
	border: 1px solid #90caf9;
}

.info-box-tip {
	background: #f1f8e9;
	border: 1px solid #c5e1a5;
}

.info-box-warning {
	background: #fff8e1;
	border: 1px solid #ffe082;
}

.info-box-danger {
	background: #ffebee;
	border: 1px solid #ef9a9a;
}

/* FAQ */
.faq-container {
	margin: 24px 0;
}

.faq-item {
	border: 1px solid var(--border-color);
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
}

.faq-question {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--bg-body);
	cursor: pointer;
	font-weight: 600;
}

.faq-q {
	width: 28px;
	height: 28px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

.faq-question-text {
	flex: 1;
}

.faq-toggle {
	font-size: 20px;
	color: var(--text-muted);
	transition: transform 0.2s;
}

.faq-item.open .faq-toggle {
	transform: rotate(45deg);
}

.faq-answer {
	display: none;
	padding: 20px;
	background: var(--bg-white);
}

.faq-item.open .faq-answer {
	display: flex;
	gap: 12px;
}

.faq-a {
	width: 28px;
	height: 28px;
	background: var(--primary-light);
	color: var(--primary-hover);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

/* 버튼 */
.shortcode-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
	color: white !important;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
	margin: 8px 4px;
	box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
	border: 2px solid transparent;
}

.shortcode-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(124, 179, 66, 0.4);
}

.shortcode-btn:active {
	transform: translateY(-1px);
}

.shortcode-btn i {
	font-size: 14px;
}

/* 아웃라인 버튼 */
.shortcode-btn.btn-outline {
	background: transparent;
	color: var(--primary-color) !important;
	border: 2px solid var(--primary-color);
	box-shadow: none;
}

.shortcode-btn.btn-outline:hover {
	background: var(--primary-color);
	color: white !important;
	box-shadow: 0 8px 25px rgba(124, 179, 66, 0.3);
}

/* 광고 */
.auto-ad,
.inline-ad {
	margin: 24px 0;
	text-align: center;
}

/* ===== 사이드바 ===== */
.sidebar {
	position: sticky;
	top: 100px;
	height: fit-content;
}

.sidebar-card {
	background: var(--bg-white);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
	margin-bottom: 20px;
	overflow: hidden;
}

.sidebar-title {
	padding: 16px 20px;
	font-weight: 700;
	font-size: 15px;
	border-bottom: 1px solid var(--border-color);
}

.sidebar-content {
	padding: 16px 20px;
}

/* 글 정보 */
.info-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color);
	font-size: 14px;
}

.info-row:last-child {
	border-bottom: none;
}

.info-label {
	color: var(--text-muted);
}

.info-value {
	font-weight: 600;
	color: var(--text-dark);
}

/* 관련 글 */
.related-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
	border-bottom: none;
}

.related-thumb {
	width: 80px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	background: var(--bg-body);
}

.related-info {
	flex: 1;
	min-width: 0;
}

.related-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
	margin-bottom: 4px;
}

.related-title:hover {
	color: var(--primary-color);
}

.related-meta {
	font-size: 12px;
	color: var(--text-muted);
}

/* ===== Scroll Progress Button ===== */
.scroll-progress-btn {
	position: fixed;
	bottom: 32px;
	right: 32px;
	width: 56px;
	height: 56px;
	cursor: pointer;
	z-index: 99;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.scroll-progress-btn.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-progress-btn:hover {
	transform: translateY(-3px);
}

.scroll-progress-btn:hover .progress-circle-bg {
	fill: var(--primary-lighter);
}

.scroll-progress-btn svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.progress-circle-bg {
	fill: var(--bg-white);
	transition: fill 0.2s;
}

.progress-circle-bar {
	fill: none;
	stroke: var(--primary-color);
	stroke-width: 3;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.1s ease-out;
}

.progress-circle-track {
	fill: none;
	stroke: var(--border-color);
	stroke-width: 3;
}

.scroll-progress-btn .btn-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.scroll-progress-btn .progress-percent {
	font-size: 11px;
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1;
}

.scroll-progress-btn .progress-arrow {
	font-size: 14px;
	color: var(--primary-hover);
	margin-top: 2px;
}

/* 모바일 대응 */
@media (max-width: 640px) {
	.scroll-progress-btn {
		bottom: 20px;
		right: 20px;
		width: 50px;
		height: 50px;
	}

	.scroll-progress-btn .progress-percent {
		font-size: 10px;
	}

	.scroll-progress-btn .progress-arrow {
		font-size: 12px;
	}
}

/* ===== 404 에러 ===== */
.error-page {
	text-align: center;
	padding: 80px 24px;
}

.error-page h1 {
	font-size: 4rem;
	color: var(--primary-color);
	margin-bottom: 16px;
}

.error-page p {
	color: var(--text-muted);
	margin-bottom: 24px;
}

.error-page .btn {
	display: inline-block;
	padding: 12px 24px;
	background: var(--primary-color);
	color: white;
	border-radius: 8px;
	font-weight: 600;
}

/* ===== 반응형: 태블릿 (1024px 이하) ===== */
@media (max-width: 1024px) {
	.container {
		grid-template-columns: 1fr;
		padding: 24px 20px;
	}

	.sidebar {
		position: static;
	}
}

/* ===== 반응형: 모바일 (640px 이하) ===== */
@media (max-width: 640px) {
	/* 기본 폰트 및 여백 */
	body {
		font-size: 15px;
		line-height: 1.7;
	}

	/* 컨테이너 패딩 최소화 */
	.container {
		padding: 16px 12px;
		gap: 20px;
	}

	/* 헤더 */
	.header-inner {
		padding: 12px 12px;
	}

	.logo {
		font-size: 1.1rem;
	}

	/* 글 카드 */
	.article-card {
		border-radius: 12px;
	}

	/* 글 헤더 */
	.article-header {
		padding: 20px 16px 0;
	}

	.article-title {
		font-size: 1.35rem;
		line-height: 1.4;
		margin-bottom: 12px;
	}

	.article-meta-bar {
		gap: 8px;
		padding-bottom: 16px;
	}

	.meta-left {
		gap: 8px;
	}

	.article-category {
		font-size: 11px;
		padding: 2px 8px;
	}

	.meta-item {
		font-size: 12px;
	}

	.admin-btn {
		padding: 4px 8px;
		font-size: 11px;
	}

	/* 본문 */
	.article-body {
		padding: 16px;
	}

	/* 인트로 박스 */
	.article-intro-box {
		padding: 16px;
		margin-bottom: 24px;
		border-radius: 10px;
	}

	.intro-label {
		font-size: 12px;
		margin-bottom: 8px;
	}

	.intro-summary p {
		font-size: 14px;
		line-height: 1.6;
	}

	.series-list li {
		font-size: 13px;
		padding: 5px 0;
	}

	/* 본문 콘텐츠 */
	.article-content {
		font-size: 15px;
		line-height: 1.8;
	}

	.article-content h2 {
		font-size: 1.25rem;
		margin: 32px 0 16px;
		padding-bottom: 10px;
	}

	.article-content h3 {
		font-size: 1.1rem;
		margin: 24px 0 12px;
		padding-left: 10px;
	}

	.article-content h4 {
		font-size: 1rem;
		margin: 20px 0 10px;
	}

	.article-content p {
		margin-bottom: 16px;
	}

	.article-content ul,
	.article-content ol {
		margin: 16px 0;
		padding-left: 20px;
	}

	.article-content li {
		margin-bottom: 6px;
	}

	.article-content blockquote {
		margin: 20px 0;
		padding: 16px;
		font-size: 14px;
	}

	.article-content table {
		font-size: 13px;
	}

	.article-content th,
	.article-content td {
		padding: 8px 10px;
	}

	.article-content img {
		margin: 16px 0;
		border-radius: 6px;
	}

	/* 이전글/다음글 */
	.post-navigation {
		margin: 0 16px 16px;
		padding: 16px 0;
		flex-direction: column;
		gap: 12px;
	}

	.post-nav-item a {
		padding: 12px;
	}

	.post-nav-item .nav-label {
		font-size: 11px;
	}

	.post-nav-item .nav-title {
		font-size: 13px;
	}

	.post-nav-item.next {
		text-align: left;
	}

	/* 업데이트 로그 */
	.update-log {
		margin: 0 16px 20px;
		padding: 16px;
		border-radius: 10px;
	}

	.update-log-header {
		font-size: 13px;
		margin-bottom: 10px;
	}

	.update-log-date {
		font-size: 12px;
		padding: 5px 10px;
	}

	/* 쇼트코드 스타일 */
	.toc-container {
		margin: 20px 0;
		border-radius: 10px;
	}

	.toc-header {
		padding: 14px 16px;
		font-size: 14px;
	}

	.toc-list {
		padding: 14px 16px;
	}

	.toc-list li {
		padding: 6px 0;
		font-size: 13px;
	}

	.code-block {
		border-radius: 10px;
		margin: 20px 0;
	}

	.code-header {
		padding: 8px 12px;
	}

	.code-block pre {
		padding: 16px;
	}

	.code-block code {
		font-size: 12px;
	}

	.info-box {
		padding: 16px;
		gap: 12px;
		border-radius: 10px;
		margin: 20px 0;
	}

	.info-box-icon {
		font-size: 20px;
	}

	.info-box-text {
		font-size: 14px;
	}

	.faq-question {
		padding: 14px 16px;
		gap: 10px;
	}

	.faq-q, .faq-a {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.faq-question-text {
		font-size: 14px;
	}

	.faq-answer {
		padding: 16px;
		font-size: 14px;
	}

	.shortcode-btn {
		padding: 12px 20px;
		font-size: 14px;
		margin: 6px 2px;
	}

	/* 사이드바 */
	.sidebar-card {
		border-radius: 10px;
	}

	.sidebar-title {
		padding: 14px 16px;
		font-size: 14px;
	}

	.sidebar-content {
		padding: 14px 16px;
	}

	.info-row {
		padding: 8px 0;
		font-size: 13px;
	}

	.related-item {
		padding: 10px 0;
		gap: 10px;
	}

	.related-thumb {
		width: 70px;
		height: 52px;
	}

	.related-title {
		font-size: 13px;
	}

	.related-meta {
		font-size: 11px;
	}

	/* 스크롤 버튼 */
	.scroll-progress-btn {
		bottom: 16px;
		right: 16px;
		width: 48px;
		height: 48px;
	}

	.scroll-progress-btn .progress-percent {
		font-size: 9px;
	}

	.scroll-progress-btn .progress-arrow {
		font-size: 11px;
		margin-top: 1px;
	}

	/* 에러 페이지 */
	.error-page {
		padding: 60px 16px;
	}

	.error-page h1 {
		font-size: 3rem;
	}
}

/* ===== 반응형: 작은 모바일 (380px 이하) ===== */
@media (max-width: 380px) {
	.container {
		padding: 12px 8px;
	}

	.header-inner {
		padding: 10px 8px;
	}

	.article-header {
		padding: 16px 12px 0;
	}

	.article-title {
		font-size: 1.2rem;
	}

	.article-body {
		padding: 12px;
	}

	.article-content {
		font-size: 14px;
	}

	.post-navigation {
		margin: 0 12px 12px;
	}

	.update-log {
		margin: 0 12px 16px;
	}

	.sidebar-content {
		padding: 12px;
	}
}

/* 검색엔진용 숨김 콘텐츠 */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 사이드바 카테고리 목록 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-list li {
    border-bottom: 1px solid #f0f0f0;
}
.category-list li:last-child {
    border-bottom: none;
}
.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.category-list li a:hover {
    color: var(--primary-color);
}
.category-list li.active a {
    color: var(--primary-color);
    font-weight: 600;
}
.category-list .cat-count {
    background: #f1f3f4;
    color: #666;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}
.category-list li.active .cat-count {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

/* 사이드바 최근 글 목록 */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.recent-list li {
    border-bottom: 1px solid #f0f0f0;
}
.recent-list li:last-child {
    border-bottom: none;
}
.recent-list li a {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.recent-list li a:hover {
    color: var(--primary-color);
}
.recent-list .recent-title {
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.recent-list .recent-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}