/* ===========================================
   GP Archive - Custom Archive Layout CSS
   클래스 접두사: gpa- (GP Archive)
   =========================================== */

/* ── 래퍼 ───────────────────────────────── */
.gpa-archive-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* ── 아카이브 타이틀 ─────────────────────── */
.gpa-archive-header {
	margin-bottom: 24px;
}

.gpa-archive-title {
	font-size: 22px;
	font-weight: 800;
	color: #111;
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 2px solid #111;
	display: inline-block;
}

.gpa-archive-desc {
	font-size: 14px;
	color: #666;
	margin-top: 8px;
}

/* ── 카드 그리드 ─────────────────────────── */
.gpa-card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}

@media (max-width: 768px) {
	.gpa-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* ── 카드 ───────────────────────────────── */
.gpa-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gpa-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 썸네일 */
.gpa-card-thumb-link {
	display: block;
	text-decoration: none;
}

.gpa-card-img-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f0f0f0;
}

.gpa-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.3s ease;
}

.gpa-card:hover .gpa-card-img-wrap img {
	filter: brightness(1.08);
}

.gpa-card-no-thumb {
	width: 100%;
	height: 100%;
	background: #e0e0e0;
}

/* 카테고리 뱃지 */
.gpa-badge {
	position: absolute;
	bottom: 8px;
	left: 8px;
	display: inline-block;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 7px;
	border-radius: 2px;
	line-height: 1.4;
}

/* 카드 본문 */
.gpa-card-body {
	padding: 12px 14px 14px;
}

.gpa-card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 8px;
	color: #111;
	word-break: keep-all;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gpa-card-title a {
	color: #111;
	text-decoration: none;
	transition: color 0.15s;
}

.gpa-card-title a:hover {
	color: #c0392b;
}

.gpa-card-author {
	font-size: 12px;
	color: #888;
	margin: 0;
}

/* ── 더보기 버튼 ─────────────────────────── */
.gpa-load-more-wrap {
	text-align: center;
	margin-bottom: 40px;
}

#gpa-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 10px 32px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 0;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	min-width: 200px;
}

#gpa-load-more-btn:hover {
	background: #fafafa;
	border-color: #bbb;
}

#gpa-load-more-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Material Icons 아이콘 (home-layout-gp의 hlgp 버튼과 동일) */
#gpa-load-more-btn::after {
	content: 'expand_more';
	font-family: 'Material Icons Round';
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	margin-left: 2px;
	vertical-align: middle;
}

#gpa-load-more-btn.loading::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top-color: #555;
	border-radius: 50%;
	animation: gpa-spin 0.7s linear infinite;
	margin-left: 4px;
}

@keyframes gpa-spin {
	to { transform: rotate(360deg); }
}

/* ── 글 없음 ─────────────────────────────── */
.gpa-no-posts {
	text-align: center;
	color: #888;
	padding: 40px 0;
	font-size: 15px;
}

/* GP 테마 아카이브에서 사이드바 제거 시 full-width */
.gpa-archive-wrap .entry-content {
	max-width: 100%;
}
