/* ===== BLOG COMMON STYLES ===== */
/* style.css 로드 후 추가 적용 */

/* ===== NAV ===== */
.site-nav {
  background: #F9F5EF;
  border-bottom: 1px solid #E8E2D8;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: #1A1612;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.72; }
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: #8A8278;
  text-decoration: none;
  padding: 6px 14px;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  border-radius: 3px;
}
.nav-links a:hover { color: #1A1612; background: #F3EFE8; }
.nav-links a.active { color: #1A1612; font-weight: 600; }

/* ===== BLOG LIST HERO ===== */
.blog-hero {
  background: #1A1612;
  color: #fff;
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}
.blog-hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  position: relative;
}
.blog-hero p {
  font-size: 14px;
  opacity: 0.55;
  font-weight: 300;
  letter-spacing: 0.02em;
  position: relative;
}

/* ===== GUIDE SECTIONS ===== */
.guide-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.guide-section:first-of-type {
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.guide-section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: #1A1612;
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 2px solid #1B4D3E;
  letter-spacing: -0.02em;
}
.guide-section:first-of-type .guide-section-title {
  margin-top: 20px;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  max-width: 1160px;
  margin: 0 auto 20px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: #ffffff;
  border: 1px solid #E8E2D8;
  border-radius: 4px;
  padding: 24px 20px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,22,18,0.10);
}

.blog-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-guide  { background: #E0EEE9; color: #1B4D3E; }
.tag-safety { background: #FDF0D5; color: #92400E; }
.tag-review { background: #FDF0D5; color: #92400E; }
.tag-tool   { background: #E6F9EE; color: #166534; }
.tag-food   { background: #FFF4EE; color: #C2410C; }
.tag-faq    { background: #F3EFE8; color: #4A4740; }

.blog-card h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 700;
  color: #1A1612;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.blog-card p {
  font-size: 13px;
  color: #8A8278;
  line-height: 1.65;
  flex: 1;
}
.blog-card-arrow {
  font-size: 12px;
  color: #1B4D3E;
  font-weight: 600;
  margin-top: 14px;
  letter-spacing: 0.02em;
}

/* ===== BLOG ARTICLE ===== */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  background: #fff;
  min-height: 60vh;
}
.article-content .back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 12px;
  color: #8A8278;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.article-content .back-link:hover { color: #1B4D3E; }

.article-content h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1A1612;
  margin-bottom: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8E2D8;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.article-content .article-meta {
  font-size: 11px;
  color: #C0BAB2;
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}
.article-content h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 700;
  color: #1B4D3E;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.article-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1A1612;
  margin: 22px 0 8px;
}
.article-content p {
  font-size: 15px;
  line-height: 1.9;
  color: #3D3830;
  margin-bottom: 16px;
}
.article-content ul, .article-content ol {
  padding-left: 22px;
  margin: 10px 0 18px;
}
.article-content li {
  font-size: 15px;
  line-height: 1.85;
  color: #4A4740;
  margin-bottom: 4px;
}
.article-content strong { color: #1A1612; }
.article-content a { color: #1B4D3E; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }

/* 인포 박스 */
.info-box {
  background: #EFF6F2;
  border-left: 3px solid #1B4D3E;
  padding: 16px 20px;
  margin: 24px 0;
}
.info-box p {
  font-size: 14px;
  color: #1B4D3E;
  margin-bottom: 0;
  line-height: 1.7;
}

/* 경고 박스 */
.warn-box {
  background: #FDF0D5;
  border-left: 3px solid #D97706;
  padding: 16px 20px;
  margin: 24px 0;
}
.warn-box p {
  font-size: 14px;
  color: #92400E;
  margin-bottom: 0;
  line-height: 1.7;
}

/* 블로그 내 테이블 */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
}
.blog-table th {
  background: #1A1612;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #F3EFE8;
  color: #3D3830;
}
.blog-table tbody tr:hover { background: #F9F5EF; }

/* CTA 박스 */
.cta-box {
  background: #1B4D3E;
  color: #fff;
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  margin: 36px 0;
}
.cta-box p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
}
.cta-box a {
  display: inline-block;
  background: #fff;
  color: #1B4D3E;
  padding: 11px 28px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.cta-box a:hover { opacity: 0.9; text-decoration: none; }

/* 광고 슬롯 */
.ad-slot {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 24px;
  text-align: center;
  min-height: 90px;
}

/* ===== 블로그 하단 네비 ===== */
.blog-footer-nav {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #E8E2D8;
  padding-top: 24px;
}
.blog-footer-nav a {
  font-size: 13px;
  color: #1B4D3E;
  text-decoration: none;
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.blog-footer-nav a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    margin-top: -12px;
    padding: 0 16px;
  }
  .blog-hero { padding: 56px 20px 48px; }
  .guide-section { padding: 0 16px; }
  .article-content { padding: 36px 18px 52px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 17px; }
  .nav-links { gap: 0; }
  .site-nav { padding: 0 16px; }
}
