/* ============================================================
   css/blog.css — 키움머니기프트 블로그 상세 페이지 전용 스타일
   ============================================================ */

/* ── 브레드크럼 ── */
.breadcrumb {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: var(--text-light);
  transition: color .2s;
  display: flex; align-items: center; gap: 4px;
}
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-gray); font-weight: 500; }

/* ── 포스트 히어로 ── */
.post-hero {
  background: linear-gradient(135deg, #1a1400 0%, #0d0d0d 60%, #050505 100%);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,168,75,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.post-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,168,75,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.post-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.post-category-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .06em;
}
.post-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 18px;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
}
.post-meta-item i { color: var(--primary); font-size: 12px; }

/* ── 포스트 바디 래퍼 ── */
.post-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── 포스트 대표 이미지 ── */
.post-figure {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}
.post-figure img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}
.post-figure figcaption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* ── 포스트 본문 ── */
.post-body { color: var(--text-gray); }
.post-lead {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.85;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 36px;
}
.post-body h2 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--text-dark);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin: 40px 0 16px;
  line-height: 1.35;
}
.post-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-body h3::before {
  content: '●';
  color: var(--primary);
  font-size: 9px;
}
.post-body p {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
  color: var(--text-gray);
}
.post-list {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-list li {
  font-size: 15px;
  color: var(--text-gray);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.post-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-table th {
  background: linear-gradient(135deg, #1a1600, #2a2200);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-gold);
}
.post-table td {
  padding: 12px 16px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 14px;
}
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:hover td { background: var(--bg-elevated); }

/* ── 콜아웃 박스 ── */
.post-callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.post-callout.blue {
  border-left-color: #4a9eff;
  background: rgba(74,158,255,0.05);
  border-color: rgba(74,158,255,0.2);
}
.post-callout.warning {
  border-left-color: #ff6b35;
  background: rgba(255,107,53,0.05);
  border-color: rgba(255,107,53,0.2);
}
.post-callout-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-callout.blue .post-callout-title { color: #4a9eff; }
.post-callout.warning .post-callout-title { color: #ff6b35; }
.post-callout p { font-size: 14px; color: var(--text-gray); line-height: 1.7; margin: 0; }

/* ── 인라인 CTA ── */
.post-inline-cta {
  background: linear-gradient(135deg, #1a1400 0%, #0d0d0d 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}
.post-inline-cta-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.post-inline-cta-title span { color: var(--primary); }
.post-inline-cta p { font-size: 14px; color: var(--text-gray); margin-bottom: 22px; }
.post-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.post-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0a0a;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  transition: all .25s;
  white-space: nowrap;
}
.post-cta-call:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,75,0.4); color: #0a0a0a; }
.post-cta-sms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--border-gold);
  transition: all .25s;
  white-space: nowrap;
}
.post-cta-sms:hover { background: rgba(200,168,75,0.2); transform: translateY(-2px); }

/* ── 관련 글 섹션 ── */
.related-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}
.related-section .section-header { margin-bottom: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  position: relative;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-hover);
}
.related-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
}
.related-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.related-card:hover .related-card-thumb img { transform: scale(1.05); }
.related-card-body { padding: 14px; }
.related-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.related-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.related-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.related-card-more {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  position: relative; z-index: 2;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .post-hero { padding: 40px 0 48px; }
  .post-wrap { padding: 32px 16px 60px; }
  .post-title { font-size: 22px; }
  .related-grid { grid-template-columns: 1fr; max-width: 400px; }
  .post-inline-cta { padding: 24px 16px; }
  .post-cta-btns { flex-direction: column; align-items: stretch; }
  .post-cta-call, .post-cta-sms { justify-content: center; }
}

@media (max-width: 480px) {
  .post-meta { gap: 10px; }
  .breadcrumb-inner { font-size: 12px; }
}
