/**
 * Blog shared components — reference/homepage.html 에서 그대로 재사용되는 요소만 분리.
 *
 * homepage.css 와 blog.css(목록/상세 전용) 가 공통으로 의존(wp_enqueue_style 의존성)하여
 * 불러오는 파일입니다. 두 곳에 동일 규칙을 중복 정의하지 않기 위해 여기 한 곳에서만 관리합니다.
 * (project-rules.mdc: 홈 .blog-card 100% 재사용 / 색상 하드코딩 금지 — CSS 변수만 사용)
 */

/* Section header — .sec-eye / .sec-title / .sec-sub */
.sec-eye {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--rb-gold);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.sec-eye::after {
	content: "";
	display: block;
	width: 26px;
	height: 1px;
	background: var(--rb-gold);
	opacity: 0.45;
}

.sec-title {
	font-family: var(--rb-font-serif);
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 700;
	color: var(--rb-text);
	line-height: 1.2;
	margin-bottom: 12px;
}

.sec-title .ro {
	color: var(--rb-gold);
}

.sec-sub {
	font-size: 15px;
	color: var(--rb-text-sub);
	line-height: 1.85;
}

/* Buttons — .btn-gold-outline */
.btn-gold-outline {
	background: transparent;
	color: var(--rb-gold);
	padding: 12px 24px;
	font-size: 13px;
	font-weight: 700;
	border: 1.5px solid var(--rb-gold);
	border-radius: var(--rb-radius-sm);
	cursor: pointer;
	text-decoration: none;
	transition: all var(--rb-duration);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	letter-spacing: 0.04em;
}

.btn-gold-outline:hover {
	background: var(--rb-gold);
	color: var(--rb-dark);
}

/* Blog cards — .blog-section / .blog-grid / .blog-card */
.blog-section {
	background: var(--rb-off-white);
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 48px;
}

.blog-card {
	background: var(--rb-white);
	border-radius: var(--rb-radius-xl);
	overflow: hidden;
	border: 1px solid var(--rb-border-light);
	transition: all var(--rb-duration);
	text-decoration: none;
	display: block;
	color: inherit;
	box-shadow: var(--rb-shadow-sm);
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 32px rgba(var(--rb-gold-rgb), 0.12);
	border-color: rgba(var(--rb-gold-rgb), 0.25);
}

.blog-thumb {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--rb-gray-bg);
}

.blog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

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

/* 대표 이미지 없을 때 — 지역 기본 썸네일 또는 브랜드 기본 SVG */
.blog-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	background: linear-gradient(135deg, var(--rb-gold-pale) 0%, var(--rb-gray-bg) 100%);
}

.blog-thumb .blog-thumb-default,
.blog-single-hero .blog-thumb-default {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.blog-body {
	padding: 20px;
}

.blog-cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rb-gold);
	margin-bottom: 6px;
}

.blog-title {
	font-family: var(--rb-font-serif);
	font-size: 15px;
	font-weight: 700;
	color: var(--rb-text);
	line-height: 1.4;
	margin-bottom: 7px;
}

.blog-desc {
	font-size: 12px;
	color: var(--rb-text-sub);
	line-height: 1.7;
}

.blog-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	font-size: 11px;
	color: var(--rb-gray);
}

.blog-foot span:last-child {
	color: var(--rb-gold);
}

.blog-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 16px;
	margin: 0;
	color: var(--rb-gray);
	font-size: 14px;
	line-height: 1.6;
}

.blog-more {
	text-align: center;
	margin-top: 32px;
}

@media (max-width: 920px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
}
