/* YN 트렌드 매거진 — 블로그/글 스타일 (style.css 위에 얹음) */
.blog-body { background: var(--bg); }

/* ---------- 목록 ---------- */
.bl-main { padding: 28px 0 60px; }
.bl-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 6px; }
.bl-sub { color: var(--ink-soft); margin-bottom: 20px; }
.bl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.bl-tab { border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 700; cursor: pointer; }
.bl-tab.active { background: linear-gradient(135deg, #00a129, #84cc16); color: #fff; border-color: transparent; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); text-decoration: none; color: inherit; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bl-thumb { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: #eef2f7; }
.bl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-catbadge { position: absolute; left: 8px; top: 8px; z-index: 1; background: linear-gradient(135deg, #0b1020, #7c3aed); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: -0.01em; }

/* 369 엔터테인먼트 (엔터 카테고리 글) */
.box.ent369box { background: linear-gradient(115deg, color-mix(in srgb, #0b1020 6%, transparent), color-mix(in srgb, #7c3aed 10%, transparent)); border-color: color-mix(in srgb, #7c3aed 35%, var(--line)); }
.aff-card.ent369 { background: linear-gradient(120deg, #0b1020, #7c3aed) !important; }
.aff-card.ent369:nth-child(2) { background: linear-gradient(120deg, #0b1020, #4f46e5) !important; }
.aff-card.ent369:nth-child(3) { background: linear-gradient(120deg, #0b1020, #db2777) !important; }
.bl-info { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.bl-lang { font-size: 11.5px; font-weight: 700; color: #00a129; }
.bl-info h3 { font-size: 16.5px; font-weight: 800; line-height: 1.32; letter-spacing: -0.01em; }
.bl-info p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-date { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- 글 본문 ---------- */
.post.container { max-width: 760px; padding-top: 22px; padding-bottom: 60px; }
.post-back { display: inline-block; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 14px; margin: 6px 0 14px; }
.post-back:hover { color: var(--brand, #00a129); }
.post-title { font-size: 30px; line-height: 1.28; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.post-meta { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.post-cover { margin: 0 0 22px; border-radius: var(--radius-lg); overflow: hidden; }
.post-cover img { width: 100%; height: auto; display: block; }
.post-lead { font-size: 17px; line-height: 1.85; margin: 18px 0; }
.post p { font-size: 16px; line-height: 1.9; margin: 14px 0; color: var(--ink); }
.post h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 34px 0 12px; padding-top: 8px; }
.post h3 { font-size: 18px; font-weight: 800; margin: 22px 0 10px; }
.post b { font-weight: 700; }

.post-fig { margin: 20px 0; }
.post-illust { width: 100%; height: auto; border-radius: 14px; display: block; }
.post-chart { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 20px 0; }

.post-quote { border-left: 4px solid #84cc16; background: color-mix(in srgb, #84cc16 8%, transparent); margin: 22px 0; padding: 16px 20px; font-size: 17px; font-style: italic; border-radius: 0 12px 12px 0; }

/* 박스(요약/팁/체크) */
.box { border-radius: 14px; padding: 16px 18px; margin: 22px 0; border: 1px solid var(--line); }
.box b { display: block; margin-bottom: 8px; font-size: 15px; }
.box ul, .box ol { margin: 0; padding-left: 20px; }
.box li { font-size: 15px; line-height: 1.7; margin: 4px 0; }
.box.summary { background: color-mix(in srgb, #00a129 6%, transparent); border-color: color-mix(in srgb, #00a129 25%, var(--line)); }
.box.tip { background: color-mix(in srgb, #f59e0b 9%, transparent); border-color: color-mix(in srgb, #f59e0b 30%, var(--line)); }
.box.check { background: color-mix(in srgb, #4f7cff 7%, transparent); border-color: color-mix(in srgb, #4f7cff 25%, var(--line)); }

/* 목차 */
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 20px 0; background: var(--card); }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; line-height: 1.9; }
.toc a:hover { color: #00a129; text-decoration: underline; }

/* 표 */
.post-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post-table caption { text-align: left; font-weight: 800; padding: 6px 2px 10px; font-size: 15px; }
.post-table th, .post-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-table thead th { background: color-mix(in srgb, #00a129 10%, transparent); }
.post-table tbody th { background: var(--card); width: 34%; font-weight: 700; }

/* 스텝 */
.steps-list { counter-reset: st; list-style: none; padding: 0; margin: 14px 0; }
.steps-list li { position: relative; padding: 12px 14px 12px 46px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 15.5px; line-height: 1.6; }
.steps-list li::before { counter-increment: st; content: counter(st); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; background: linear-gradient(135deg, #00a129, #84cc16); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* FAQ */
.post-faq { margin: 28px 0; }
.post-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 10px 0; background: var(--card); }
.post-faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; font-size: 15.5px; }
.post-faq p { margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }

/* 제휴 카드 */
.aff-top, .aff-mid { margin: 22px 0; }
.aff-head { font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.aff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aff-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #00a129, #84cc16); box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .15s var(--ease); min-height: 74px; }
.aff-card.mid { background: linear-gradient(120deg, #4f7cff, #7c3aed); }
.aff-card:nth-child(2).mid { background: linear-gradient(120deg, #f59e0b, #ea580c); }
.aff-card:nth-child(3).mid { background: linear-gradient(120deg, #dc2626, #f43f5e); }
.aff-card:hover { transform: translateY(-2px); }
.aff-lbl { font-weight: 800; font-size: 15px; }
.aff-emoji { font-size: 22px; }
.aff-name { font-weight: 800; font-size: 15px; }
.aff-go { font-size: 12.5px; opacity: .95; font-weight: 700; }

/* CTA */
.post-cta { display: block; text-align: center; background: linear-gradient(135deg, #00a129, #84cc16); color: #fff; font-weight: 800; font-size: 16px; padding: 15px 20px; border-radius: 14px; text-decoration: none; margin: 24px 0; box-shadow: 0 6px 18px color-mix(in srgb, #00a129 30%, transparent); }
.post-cta:hover { filter: brightness(1.05); }

.post-tags { margin: 24px 0 10px; font-size: 13.5px; color: #00a129; font-weight: 700; line-height: 1.9; }
.post-disc { font-size: 12px; color: var(--ink-faint); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }

/* 애드센스 광고 유닛 */
.ad-unit { margin: 26px 0; min-height: 100px; text-align: center; clear: both; }
.ad-unit .ad-tag { display: block; font-size: 10.5px; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; text-align: left; }
.ad-unit ins { margin: 0 auto; }
.ad-infeed { margin: 14px 0; min-height: 90px; }

/* 관련 글 (내부링크) */
.post-related { margin: 34px 0 10px; }
.post-related h2 { font-size: 19px; margin-bottom: 14px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rel-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); text-decoration: none; color: inherit; transition: transform .15s var(--ease); }
.rel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rel-card img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block; }
.rel-card span { padding: 10px 12px 14px; font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 모바일 */
@media (max-width: 760px) {
  .bl-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .aff-row { grid-template-columns: 1fr; }
  .post-title { font-size: 24px; }
  .post h2 { font-size: 20px; }
  .post-lead { font-size: 16px; }
  .post.container { padding-left: 16px; padding-right: 16px; }
}
