/*
Theme Name: 파크골프서울
Theme URI: http://parkgolf.seoul.kr
Author: 파크골프서울
Description: 시니어 친화형 파크골프 블로그 테마
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --green:       #1a5c35;
  --green-hover: #144d2b;
  --green-light: #f0f7f3;
  --text:        #111111;
  --text-sub:    #444444;
  --bg:          #f5f5f5;
  --white:       #ffffff;
  --border:      #cccccc;
  --line:        #e0e0e0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
#site-header {
  background: var(--green);
  border-bottom: 4px solid var(--green-hover);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.header-list-btn {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 6px 16px;
  border-radius: 4px;
  transition: background 0.15s;
}

.header-list-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* ── Main ── */
#main-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}

/* ── Section Title ── */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 4px solid var(--green);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ── Post List ── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: 4px;
  padding: 22px 28px;
  display: block;
  transition: background 0.15s, border-left-color 0.15s;
}

.post-card:hover {
  background: var(--green-light);
  border-left-color: var(--green-hover);
}

.post-title-link {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  display: block;
  margin-bottom: 8px;
}

.post-card:hover .post-title-link {
  color: var(--green);
}

.post-excerpt {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 14px;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-cat {
  background: var(--green);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  background: var(--white);
  color: var(--text-sub);
  transition: all 0.15s;
  padding: 0 10px;
}

.pagination a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.pagination .current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ── Single Post ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  padding: 10px 18px;
  border: 2px solid var(--green);
  border-radius: 4px;
  margin-bottom: 28px;
  background: var(--white);
  transition: background 0.15s;
}

.back-link:hover { background: var(--green-light); }

.single-post-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px 52px;
}

@media (max-width: 600px) { .single-post-wrap { padding: 28px 20px; } }

.single-post-meta {
  font-size: 15px;
  color: #888;
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.single-post-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--green);
  color: var(--text);
}

.entry-content {
  font-size: 18px;
  line-height: 2.0;
  color: var(--text);
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 40px 0 14px;
  color: var(--green);
  border-left: 4px solid var(--green);
  padding-left: 14px;
}

.entry-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--text);
}

.entry-content p { margin-bottom: 20px; }

.entry-content ul, .entry-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.entry-content li { margin-bottom: 8px; }

.entry-content strong { color: var(--green); font-weight: 700; }

/* ── Footer ── */
#site-footer {
  background: var(--green);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
}

/* ── Empty ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-sub);
  font-size: 18px;
}

/* ── Mobile ── */
@media (max-width: 560px) {
  body { font-size: 17px; }
  #main-wrap { padding: 24px 16px 60px; }
  .post-card { padding: 18px 18px; }
  .post-title-link { font-size: 18px; }
  .header-inner { padding: 0 18px; }
  .site-name { font-size: 22px; }
}
