/* ==========================================================================
   GeoMoment Blog Styles v2 — TOC + Author + Callouts + Cards
   ========================================================================== */

.blog-main { padding: var(--sp-7) 0 var(--sp-9); }

.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--sp-4); }

/* ==========================================================================
   Blog Index
   ========================================================================== */

.blog-index { padding: var(--sp-7) 0 var(--sp-9); }
.blog-index-header { text-align: center; max-width: 760px; margin: 0 auto var(--sp-8); }
.blog-index-title {
  font-family: 'Manrope', 'Pretendard', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: var(--sp-3) 0 var(--sp-3);
  line-height: 1.2;
}
.blog-index-sub { color: var(--ink-500); font-size: 17px; line-height: 1.7; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-5);
}

.blog-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(61, 61, 255, 0.1);
  border-color: rgba(61, 61, 255, 0.3);
}
.blog-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* 카드 썸네일 (자동 그라데이션 placeholder) */
.blog-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #3D3DFF 0%, #7C3AED 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.10) 0%, transparent 50%);
}
.blog-card-thumb-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  background: rgba(0,0,0,0.18);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.blog-card-thumb-mono {
  font-family: 'Manrope', sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: rgba(255,255,255,0.18);
  line-height: 1;
  letter-spacing: -0.04em;
}

.blog-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--indigo);
  background: rgba(61, 61, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--sp-3);
  align-self: flex-start;
}
.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-desc {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-400);
  margin-top: auto;
}
.blog-card-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
}
.blog-card-author { color: var(--ink-700); font-weight: 600; }
.blog-card-dot { opacity: 0.5; }

.blog-empty {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  color: var(--ink-400);
  font-size: 16px;
}

/* ==========================================================================
   Reading Progress Bar (top fixed)
   ========================================================================== */

.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
  z-index: 9999;
  pointer-events: none;
}
.post-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3D3DFF 0%, #7C3AED 100%);
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(61, 61, 255, 0.4);
}

/* ==========================================================================
   Post Summary — 마케터를 위한 핵심 요약 (글 본문 시작 직전)
   ========================================================================== */

.post-summary {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  border-left: 4px solid #F59E0B;
  border-radius: 12px;
  padding: var(--sp-5) var(--sp-5);
  margin-bottom: var(--sp-6);
  color: #E2E8F0;
}
.post-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.post-summary-icon { font-size: 18px; line-height: 1; }
.post-summary-label {
  font-size: 14px;
  font-weight: 700;
  color: #F59E0B;
  letter-spacing: 0.01em;
}
.post-summary-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: #E2E8F0;
}
.post-summary-body p { margin: 0 0 8px; }
.post-summary-body p:last-child { margin-bottom: 0; }
.post-summary-body strong { color: white; font-weight: 700; }
.post-summary-body sup {
  font-size: 11px;
  color: #94A3B8;
}

/* ==========================================================================
   Blog Post — Hero
   ========================================================================== */

.blog-post { padding-bottom: var(--sp-9); }

.post-hero {
  background: linear-gradient(180deg, rgba(61, 61, 255, 0.04) 0%, transparent 100%);
  padding: var(--sp-8) 0 var(--sp-7);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--ink-100);
}
.post-grid--hero { align-items: start; }
.post-sidebar--hero { display: block; }
@media (max-width: 1024px) {
  .post-sidebar--hero { display: none; }
}
.post-cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--indigo);
  background: rgba(61, 61, 255, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-4);
}
.post-title {
  font-family: 'Manrope', 'Pretendard', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0 0 var(--sp-4);
}
.post-lede {
  font-size: 19px;
  color: var(--ink-600);
  line-height: 1.65;
  margin: 0 0 var(--sp-5);
}

/* Author·날짜·읽기시간 row */
.post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 14px;
  color: var(--ink-500);
  flex-wrap: wrap;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-meta-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}
.post-meta-author > span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.post-meta-author strong { color: var(--ink-900); font-weight: 700; font-size: 15px; font-style: normal; }
.post-meta-author em { color: var(--ink-400); font-size: 12px; font-style: normal; }
.post-meta-divider {
  width: 1px; height: 24px; background: var(--ink-100);
}
.post-meta-date { color: var(--ink-500); }
.post-meta-read {
  background: var(--ink-50);
  color: var(--ink-700);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ==========================================================================
   Post Grid — Body + Sticky TOC
   ========================================================================== */

.post-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  gap: 60px;
  align-items: start;
}

.post-main { min-width: 0; }

.post-sidebar { position: relative; }
.post-toc {
  position: sticky;
  top: 120px;
  padding: var(--sp-5) 0 0 var(--sp-4);
  border-left: 1px solid var(--ink-100);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.post-toc-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.post-toc-list .toc-item {
  margin-bottom: 8px;
  line-height: 1.5;
}
.post-toc-list .toc-h3 {
  padding-left: 14px;
  font-size: 13px;
}
.post-toc-list .toc-h4 {
  padding-left: 28px;
  font-size: 12px;
  color: var(--ink-400);
}
.post-toc-list .toc-h4 a { font-size: 12px; }
.post-toc-list a {
  color: var(--ink-500);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  transition: color 0.15s, border-color 0.15s;
}
.post-toc-list a:hover { color: var(--indigo); }
.post-toc-list a.is-active {
  color: var(--indigo);
  border-left-color: var(--indigo);
  font-weight: 600;
}

/* ==========================================================================
   Post Body — Typography
   ========================================================================== */

.post-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-800);
}
.post-body > * + * { margin-top: var(--sp-3); }
.post-body h2 {
  font-family: 'Manrope', 'Pretendard', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  scroll-margin-top: 100px;
}
.post-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
  scroll-margin-top: 100px;
}
.post-body p { margin-bottom: var(--sp-3); }
.post-body ul, .post-body ol { padding-left: var(--sp-5); margin: var(--sp-3) 0; }
.post-body li { margin-bottom: 10px; line-height: 1.75; }
.post-body strong { font-weight: 700; color: var(--ink-900); }
.post-body a { color: var(--indigo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--violet); }
.post-body code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--ink-50);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--ink-900);
}
.post-body pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: var(--sp-4);
  border-radius: 12px;
  overflow-x: auto;
  margin: var(--sp-4) 0;
  font-size: 14px;
  line-height: 1.6;
}
.post-body pre code { background: transparent; color: inherit; padding: 0; }
.post-body blockquote {
  border-left: 4px solid var(--indigo);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) 0;
  background: rgba(61, 61, 255, 0.04);
  border-radius: 0 8px 8px 0;
  color: var(--ink-700);
  font-style: italic;
  font-size: 17px;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: var(--sp-4) 0;
  display: block;
}
.post-body figure {
  margin: var(--sp-5) 0;
}
.post-body figure img { margin: 0; }
.post-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-400);
  margin-top: 10px;
}

/* 표 */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: 15px;
  border: 1px solid var(--ink-100);
  border-radius: 8px;
  overflow: hidden;
}
.post-body th, .post-body td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-100);
}
.post-body th {
  background: var(--ink-50);
  font-weight: 700;
  color: var(--ink-900);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:hover td { background: rgba(61, 61, 255, 0.02); }
.post-body hr { border: none; border-top: 1px solid var(--ink-100); margin: var(--sp-6) 0; }

/* ==========================================================================
   Callout boxes (Note · Tip · Warn · Quote)
   ========================================================================== */

.post-body .callout {
  margin: var(--sp-4) 0;
  padding: var(--sp-4) var(--sp-5);
  border-radius: 12px;
  border-left: 4px solid;
  background: var(--ink-50);
  font-size: 16px;
}
.post-body .callout > * + * { margin-top: 8px; }
.post-body .callout-title {
  font-weight: 700;
  color: var(--ink-900);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.post-body .callout-body p:last-child { margin-bottom: 0; }
.post-body .callout--note {
  border-left-color: var(--indigo);
  background: rgba(61, 61, 255, 0.05);
}
.post-body .callout--note .callout-title { color: var(--indigo); }
.post-body .callout--tip {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}
.post-body .callout--tip .callout-title { color: #059669; }
.post-body .callout--warn {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.06);
}
.post-body .callout--warn .callout-title { color: #B45309; }
.post-body .callout--quote {
  border-left-color: var(--violet);
  background: rgba(124, 58, 237, 0.05);
  font-style: italic;
}
.post-body .callout--quote .callout-title { color: var(--violet); }

/* ==========================================================================
   Post Footer — Share, Author bio, CTA
   ========================================================================== */

.post-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-7);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  flex-wrap: wrap;
}
.post-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  margin-right: 6px;
}
.post-share-btn {
  background: white;
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.post-share-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(61, 61, 255, 0.04);
}

.post-author-box {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  background: var(--ink-50);
  border-radius: 16px;
  align-items: flex-start;
}
.post-author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
}
.post-author-info { flex: 1; }
.post-author-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.post-author-name span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-400);
  margin-left: 6px;
}
.post-author-bio {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.65;
  margin: 0;
}

.post-cta-card {
  background: linear-gradient(135deg, rgba(61, 61, 255, 0.07), rgba(124, 58, 237, 0.07));
  border: 1px solid rgba(61, 61, 255, 0.18);
  border-radius: 16px;
  padding: var(--sp-6);
  text-align: center;
  margin-top: var(--sp-6);
}
.post-cta-card h3 {
  font-family: 'Manrope', 'Pretendard', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 var(--sp-3);
  line-height: 1.4;
}
.post-cta-card p {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.65;
  margin-bottom: var(--sp-4);
}

.post-nav { text-align: center; padding-top: var(--sp-5); }
.post-back {
  color: var(--ink-500);
  text-decoration: none;
  font-size: 14px;
}
.post-back:hover { color: var(--indigo); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 0;
  }
  .post-sidebar { display: none; }
}

@media (max-width: 768px) {
  .post-hero { padding: var(--sp-6) 0 var(--sp-5); margin-bottom: var(--sp-5); }
  .blog-index-title { font-size: 32px; }
  .post-title { font-size: 28px; }
  .post-lede { font-size: 16px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 22px; }
  .post-body h3 { font-size: 18px; }
  .post-meta { gap: var(--sp-2); font-size: 13px; }
  .post-meta-divider { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-cta-card { padding: var(--sp-5); }
  .post-cta-card h3 { font-size: 18px; }
  .post-author-box { flex-direction: column; gap: var(--sp-3); }
  .post-author-avatar { width: 56px; height: 56px; }
}
