/*
Theme Name: Mom Health Lab
Theme URI: http://example.com/mom-health-lab
Author: Antigravity
Author URI: http://example.com
Description: 몸건강연구소 전용 커스텀 테마 (Classic Theme Structure)
Version: 1.0
Text Domain: mom-health-lab
*/

:root {
  --color-bg: #F4F8F4;       /* 전체 배경 */
  --color-surface: #FFFFFF;  /* 카드, 박스 배경 */
  --color-primary: #4CAF50;  /* 메인 초록 */
  --color-primary-dark: #2E7D32; /* 진한 초록 포인트 */
  --color-text-main: #222222;    /* 본문 글자 */
  --color-text-soft: #666666;    /* 설명, 부제목 */
  --color-border-soft: #E0E0E0;  /* 경계선 */
}

/* 2. 기본 타이포그래피 & 리셋 */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-main);
  background: var(--color-bg);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.8em; line-height: 1.3; }
p { margin-bottom: 1.2em; }
img { max-width: 100%; height: auto; }

/* 3. 헤더 스타일 */
.mh-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-soft);
}
.mh-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mh-logo a {
  font-weight: 700;
  font-size: 22px;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.mh-tagline {
  display: block;
  font-size: 12px;
  color: var(--color-text-soft);
  margin-top: 4px;
}
.mh-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}
.mh-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-main);
}
.mh-nav a:hover {
  color: var(--color-primary);
}

/* 4. 푸터 스타일 */
.mh-footer {
  margin-top: 40px;
  background: #ffffff;
  border-top: 1px solid var(--color-border-soft);
  padding: 40px 0;
}
.mh-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: var(--color-text-soft);
  text-align: center;
}
.mh-footer a {
  color: var(--color-primary-dark);
  text-decoration: none;
}
.mh-footer-links {
  margin-top: 10px;
}

/* 5. 홈(Index) 스타일 */
.mh-hero {
  background: linear-gradient(135deg, #E8F5E9, #ffffff);
  border-bottom: 1px solid var(--color-border-soft);
}
.mh-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.mh-hero h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}
.mh-hero p {
  font-size: 18px;
  color: var(--color-text-soft);
}

.mh-main {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 20px;
}
.mh-section-title {
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-primary);
  padding-left: 15px;
}

.mh-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.mh-post-card {
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mh-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.mh-post-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mh-post-card-title a {
    text-decoration: none;
}
.mh-post-card-meta {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-bottom: 12px;
}
.mh-post-card-excerpt {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.6;
}

/* 6. 싱글 포스트(Single) 스타일 */
.mh-post {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--color-border-soft);
}
@media (max-width: 768px) {
    .mh-post { padding: 20px; }
}
.mh-post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.mh-post-category {
  font-size: 14px;
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mh-post-title {
  font-size: 32px;
  margin: 10px 0 16px;
  word-break: keep-all;
}
.mh-post-meta {
  font-size: 13px;
  color: var(--color-text-soft);
}
.mh-post-summary {
  background: #F1F8E9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 15px;
  border-left: 4px solid var(--color-primary);
}
.mh-post-summary h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}
.mh-post-content {
    font-size: 18px;
}
.mh-post-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.mh-post-content h3 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 12px;
}
.mh-post-content p {
  margin-bottom: 24px;
}
.mh-post-note {
  margin-top: 40px;
  padding: 20px;
  border-radius: 12px;
  background: #FFF3E0;
  font-size: 14px;
  color: #5D4037;
}
.mh-post-note h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #E65100;
}

/* 7. 아카이브 & 페이지 */
.mh-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border-soft);
}
.mh-archive-header h1 {
    font-size: 28px;
    color: var(--color-primary-dark);
}

/* 8. 사이드바 레이아웃 (옵션) */
.mh-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) 1fr;
  gap: 30px;
}
@media (max-width: 960px) {
  .mh-layout {
    grid-template-columns: 1fr;
  }
}
.mh-layout-sidebar .widget {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--color-border-soft);
  margin-bottom: 20px;
}
.mh-layout-sidebar h2.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
