/* ================================================
   성경 인물 묵상 — Clean & Modern
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&family=Noto+Sans+KR:wght@300;400;500;700&family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&display=swap');

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

body {
  background: #ffffff;
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  color: #222;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ════════════════════════════════
   네비게이션
   ════════════════════════════════ */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar .logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #222;
  letter-spacing: 0.05em;
}
.top-bar .logo span { color: #c49a2c; }

.top-bar nav { display: flex; gap: 2px; }
.top-bar nav a {
  color: #777;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.top-bar nav a:hover { color: #222; background: #f8f8f8; }
.top-bar nav a.active { color: #222; font-weight: 700; }

/* ════════════════════════════════
   홈 히어로
   ════════════════════════════════ */
.home-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.home-hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #c49a2c;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.home-hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.home-hero-desc {
  font-size: 1.0rem;
  color: #888;
  line-height: 1.9;
  max-width: 480px;
  margin: 0 auto;
}

/* ════════════════════════════════
   홈 섹션
   ════════════════════════════════ */
.home-section {
  padding: 64px 0;
}

.home-section-alt {
  background: #fafaf8;
}

.home-section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #222;
  margin-bottom: 28px;
}

/* ════════════════════════════════
   최신 묵상 카드 (Featured)
   ════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.featured-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.featured-card:hover .featured-img img {
  transform: scale(1.05);
}

.featured-body {
  padding: 20px 22px 24px;
}

.featured-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c49a2c;
  margin-bottom: 8px;
  display: block;
}

.featured-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin-bottom: 6px;
}

.featured-ref {
  font-size: 0.82rem;
  color: #aaa;
  margin-bottom: 10px;
}

.featured-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ════════════════════════════════
   인물 카드 그리드
   ════════════════════════════════ */
.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.person-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.person-card-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #2c1f0f 0%, #4a3520 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-card-placeholder .ph-icon { font-size: 2.4rem; opacity: 0.4; }

.person-card-body { padding: 20px 22px 24px; }

.person-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #222;
  margin-bottom: 2px;
}

.person-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #c49a2c;
  margin-bottom: 10px;
}

.person-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.person-meta {
  font-size: 0.8rem;
  color: #bbb;
}

/* ════════════════════════════════
   빵크럼
   ════════════════════════════════ */
.breadcrumb {
  padding: 16px 0;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
}
.breadcrumb a, .breadcrumb span { font-size: 0.82rem; color: #aaa; }
.breadcrumb a:hover { color: #c49a2c; }
.breadcrumb .sep { margin: 0 6px; color: #ddd; }
.breadcrumb .current { color: #555; font-weight: 600; }

/* ════════════════════════════════
   페이지 히어로 (묵상 페이지)
   ════════════════════════════════ */
.hero {
  padding: 48px 24px 40px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #c49a2c;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: #111;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #999;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: #c49a2c;
  margin-top: 24px;
}

/* ════════════════════════════════
   이미지
   ════════════════════════════════ */
.scripture-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.image-placeholder {
  width: 100%;
  height: 240px;
  background: #f8f6f2;
  border: 1.5px dashed #e0d8c8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.image-placeholder .ph-icon { font-size: 1.8rem; opacity: 0.3; }
.image-placeholder .ph-text { font-size: 0.85rem; color: #bbb; font-style: italic; }

.image-caption {
  text-align: center;
  font-size: 0.82rem;
  color: #bbb;
  margin-top: 10px;
  font-style: italic;
}

/* ════════════════════════════════
   묵상 카드
   ════════════════════════════════ */
.meditation-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.meditation-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 40px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}

.card-header {
  padding: 22px 28px;
  border-bottom: 1px solid #f5f3f0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-day-badge {
  color: #c49a2c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #222;
}

.card-title span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #aaa;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}

.card-body { padding: 32px 28px 36px; }

/* ── 섹션 ── */
.section-block { margin-bottom: 36px; }
.section-block:last-child { margin-bottom: 0; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c49a2c;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0ede8;
}

/* ── 성경말씀 ── */
.scripture-box {
  background: #faf8f4;
  border-left: 3px solid #c49a2c;
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  position: relative;
}

.scripture-box::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 3rem;
  color: rgba(196,154,44,0.12);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

.scripture-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  line-height: 2.1;
  color: #444;
  font-style: italic;
}

.scripture-ref {
  display: block;
  text-align: right;
  font-size: 0.88rem;
  color: #c49a2c;
  margin-top: 12px;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ── 본문 ── */
.section-text {
  font-size: 1.0rem;
  line-height: 2.0;
  color: #333;
}

/* ── 도전 메시지 ── */
.challenge-box {
  background: #faf8f4;
  border-radius: 10px;
  padding: 28px 32px;
  text-align: center;
}

.challenge-box::before {
  content: '—';
  display: block;
  color: #c49a2c;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.challenge-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #222;
  line-height: 2.0;
  font-weight: 700;
}

/* ── 네비게이션 (이전/다음) ── */
.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
.page-nav a, .page-nav span { font-size: 0.88rem; }
.page-nav a { color: #c49a2c; font-weight: 500; }
.page-nav a:hover { opacity: 0.7; }
.page-nav .disabled { color: #ddd; }

.back-to-list {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.88rem;
  color: #aaa;
}
.back-to-list:hover { color: #c49a2c; }

/* ════════════════════════════════
   목록 카드
   ════════════════════════════════ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 0 0 60px;
}

.list-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  border: 1px solid #f0f0f0;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}

.list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.list-card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #c49a2c;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.list-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.list-card-ref {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #c49a2c;
  margin-bottom: 8px;
}

.list-card-preview {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.65;
}

.list-card-arrow {
  display: block;
  text-align: right;
  color: #c49a2c;
  font-size: 0.85rem;
  margin-top: 12px;
}

.coming-soon { opacity: 0.35; pointer-events: none; }

/* ════════════════════════════════
   푸터
   ════════════════════════════════ */
footer {
  border-top: 1px solid #f0f0f0;
  text-align: center;
  padding: 40px 24px;
  color: #ccc;
  font-size: 0.85rem;
}

footer .footer-verse {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 6px;
}

/* ════════════════════════════════
   상단 광고 배너
   ════════════════════════════════ */
.ad-top {
  text-align: center;
  padding: 12px 0;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

/* ════════════════════════════════
   사이드 광고 배너
   ════════════════════════════════ */
.ad-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 160px;
  height: 600px;
}

@media (max-width: 1400px) {
  .ad-sidebar { right: 8px; }
}

@media (max-width: 1200px) {
  .ad-sidebar { display: none; }
}

/* ════════════════════════════════
   반응형
   ════════════════════════════════ */
@media (max-width: 768px) {
  .top-bar { padding: 0 16px; height: 54px; }
  .top-bar nav a { padding: 4px 8px; font-size: 0.82rem; }
  .home-hero { padding: 48px 0 40px; }
  .home-hero-title { font-size: 2rem; }
  .home-section { padding: 48px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .persons-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .card-header { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; }
  .card-body { padding: 24px 20px 28px; }
  .scripture-text { font-size: 0.98rem; }
  .container { padding: 0 16px; }
  .page-nav { flex-direction: column; gap: 8px; text-align: center; }
  .list-grid { grid-template-columns: 1fr; }
}
