/*
 Theme Name:   JungleMonster Blog Theme
 Template:     generatepress
 Description:  정글몬스터 블로그 카드형 레이아웃
 Version:      1.0
*/

/* ─── 카드형 포스트 그리드 ─── */
.site-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.site-main article {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.site-main article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 썸네일 */
.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 카드 내용 */
.inside-article {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.entry-title {
  font-size: 1.15em;
  line-height: 1.4;
  margin-bottom: 8px;
}

.entry-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.entry-title a:hover {
  color: #2563eb;
}

/* 메타 정보 (날짜, 카테고리, 조회수) */
.entry-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #888;
  font-size: 0.85em;
}

.post-views svg {
  width: 14px;
  height: 14px;
}

/* 발췌 */
.entry-summary p {
  font-size: 0.92em;
  color: #555;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 카테고리 태그 */
.cat-links a {
  background: #f0f4ff;
  color: #2563eb;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  text-decoration: none;
}

/* 네비게이션 (전체 너비) */
.site-main .paging-navigation,
.site-main .navigation {
  grid-column: 1 / -1;
}

/* ─── 싱글 포스트 뷰 ─── */
.single .site-main {
  display: block;
}

.single .inside-article {
  max-width: 800px;
  margin: 0 auto;
}

/* ─── 언어별 배지 ─── */
.lang-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  color: #fff;
}

.lang-badge.en { background: #2563eb; }
.lang-badge.ja { background: #dc2626; }
.lang-badge.th { background: #7c3aed; }

/* ─── 반응형 ─── */
@media (max-width: 768px) {
  .site-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
  }
}

/* ─── 헤더 스타일 ─── */
.main-navigation {
  font-weight: 500;
}

.site-title {
  font-weight: 700;
}
