/*
Theme Name: TOUNOU ART
Author: Stepping Stones
Author URI: https://stepping-stones.jp
Description: TOUNOU Magazine
Version: 1.0
*/

/* 여기에 테마의 기본 CSS 스타일 코드를 작성합니다. */
body {
  background-color: #f7f7f7;
  color: #333;
  font-family: sans-serif;
}

/* ==========================================================================
   1. 기본 레이아웃 및 여백 설정
   ========================================================================== */

/* 전체 페이지 레이아웃 컨테이너 */
.site {
  max-width: 1200px; /* 전체 너비 제한 */
  margin: 0 auto; /* 중앙 정렬 */
  padding: 0 20px;
}

/* 콘텐츠 영역과 푸터 사이의 간격 확보 */
#content {
  padding-top: 50px;
}

/* ==========================================================================
   2. 헤더 및 네비게이션
   ========================================================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.site-branding h1,
.site-branding p {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* 네비게이션 메뉴 스타일 (미니멀) */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-navigation li {
  margin-left: 30px;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

/* ==========================================================================
   3. 포스트 그리드 레이아웃 (핵심)
   ========================================================================== */

.post-grid {
  display: grid;
  /* 3개 컬럼 설정. 필요에 따라 4개로 조정 가능 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 30px; /* 세로 간격 40px, 가로 간격 30px */
}

/* ==========================================================================
   4. 포스트 카드 스타일
   ========================================================================== */

.post-card {
  background: #fff;
  border-radius: 4px;
  /* 그림자 효과로 입체감을 줍니다. */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden; /* 이미지 경계 처리 */
  transition: transform 0.3s, box-shadow 0.3s;
}

/* 마우스 호버 시 효과 */
.post-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* 썸네일 이미지 스타일 */
.post-thumbnail img {
  width: 100%;
  height: 300px; /* 이미지 높이 통일 */
  object-fit: cover; /* 이미지를 잘리지 않고 꽉 채웁니다. */
}

.card-content {
  padding: 25px;
}

/* 카테고리/메타 정보 */
.post-meta-category {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
}

/* 제목 스타일 */
.entry-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

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

/* 'View More' 버튼 스타일 */
.view-more {
  display: inline-block;
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid #ccc; /* 얇은 밑줄 효과 */
  transition: color 0.2s;
}

.view-more:hover {
  color: #000;
  border-color: #000;
}

/* ==========================================================================
   5. 푸터
   ========================================================================== */

.site-footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #eee;
  margin-top: 50px;
  font-size: 13px;
  color: #777;
}

/* ==========================================================================
   6. 반응형 디자인 (모바일 최적화)
   ========================================================================== */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }
  .main-navigation ul {
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }
  .main-navigation li {
    margin: 5px 0;
  }

  /* 그리드 레이아웃을 모바일에서 단일 컬럼으로 변경 */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .post-thumbnail img {
    height: auto; /* 모바일에서 높이 자동 조절 */
  }
}

/* ==========================================================================
   7. 개별 포스트 및 페이지 스타일 (single.php & page.php)
   ========================================================================== */

/* 콘텐츠 영역 중앙 정렬 및 너비 제한 */
.single-post-layout,
.page-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 제목 스타일 */
.entry-header {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.entry-header .entry-title {
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* 메타 정보 */
.entry-meta {
  font-size: 14px;
  color: #777;
}

.entry-meta span {
  margin: 0 5px;
}

/* 개별 포스트 썸네일 */
.post-thumbnail-single img {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  border-radius: 4px;
}

/* 본문 콘텐츠 스타일 */
.entry-content {
  line-height: 1.8;
  font-size: 16px;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2 {
  font-size: 24px;
  margin-top: 2em;
  margin-bottom: 0.8em;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* ==========================================================================
   8. 코멘트 스타일 (기본)
   ========================================================================== */

#comments {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

#reply-title {
  font-size: 24px;
  margin-bottom: 20px;
}
