/* MindMap Studio — 블로그 단일 포스트 페이지 스타일 */

.post-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--text-muted);
  font-weight: 600;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-soft); }
.breadcrumb .current {
  color: var(--text-main);
  font-weight: 700;
}

/* Hero / Cover */
.post-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.post-hero .cover {
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--cover-from, #3155ff);
  background-image:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.22) 6%, transparent 8%),
    radial-gradient(circle at 14% 76%, rgba(255,255,255,0.18) 5%, transparent 7%),
    radial-gradient(circle at 92% 86%, rgba(255,255,255,0.16) 7%, transparent 9%),
    radial-gradient(circle at 8% 22%, rgba(255,255,255,0.12) 4%, transparent 6%),
    linear-gradient(135deg, var(--cover-from, #3155ff), var(--cover-to, #7c5cff));
}
.post-hero .cover::before,
.post-hero .cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.22);
}
.post-hero .cover::before { width: 140px; height: 140px; top: -40px; right: -30px; }
.post-hero .cover::after { width: 200px; height: 200px; bottom: -70px; left: -60px; }
.post-hero .cover .emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(64px, 10vw, 120px);
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.22));
}
.post-hero .hero-body {
  padding: 28px clamp(20px, 4vw, 48px) 32px;
}
.post-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 14px;
}
.post-hero .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.post-hero .post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-soft); }
.post-hero .lede {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tag.study  { background: #eef2ff; color: #4338ca; }
.tag.work   { background: #ecfdf5; color: #047857; }
.tag.create { background: #fef2f2; color: #be185d; }
.tag.life   { background: #ecfeff; color: #0e7490; }
.tag.self   { background: #f5f3ff; color: #6d28d9; }

/* Article body */
.post-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.post-article h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 28px 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}
.post-article h2:first-child { margin-top: 0; }
.post-article h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 22px 0 8px;
  color: #1e293b;
}
.post-article p {
  color: #334155;
  margin: 0 0 14px;
  line-height: 1.85;
  font-size: 16px;
}
.post-article p strong { color: #0f172a; font-weight: 800; }
.post-article p:first-of-type::first-letter {
  font-size: 2.6em;
  font-weight: 900;
  float: left;
  padding: 6px 10px 0 0;
  line-height: 1;
  color: var(--accent);
}
.post-article kbd {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: Consolas, monospace;
  color: #1e293b;
}

/* Summary box */
.summary-box {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  padding: 24px 28px;
  margin: 32px 0 8px;
}
.summary-box h2 {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 12px;
  color: #3730a3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-box ul {
  margin: 0;
  padding-left: 22px;
  color: #1e293b;
}
.summary-box ul li {
  margin-bottom: 6px;
  line-height: 1.7;
  font-size: 15px;
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #3155ff 0%, #7c5cff 100%);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  color: white;
  margin: 32px 0;
  box-shadow: 0 12px 30px rgba(49, 85, 255, 0.25);
}
.cta-box h2 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  color: white;
}
.cta-box p {
  color: rgba(255,255,255,0.92);
  margin: 0 0 18px;
  line-height: 1.7;
  font-size: 15px;
}
.cta-box .cta-btn {
  display: inline-block;
  background: white;
  color: #3155ff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-box .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

/* FAQ */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.faq-section h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 18px;
  color: var(--text-main);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.faq-item h3::before {
  content: "Q.";
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}
.faq-item p {
  margin: 0 0 0 22px;
  color: #475569;
  line-height: 1.75;
  font-size: 14px;
}

/* Related posts */
.related-section {
  margin-bottom: 28px;
}
.related-section h2 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 16px;
  color: var(--text-main);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
  text-decoration: none;
}
.related-card .mini-cover {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cover-from, #3155ff);
  background-image: linear-gradient(135deg, var(--cover-from, #3155ff), var(--cover-to, #7c5cff));
}
.related-card .mini-cover .emoji { font-size: 48px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)); }
.related-card .related-body { padding: 14px 16px 16px; }
.related-card .related-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.related-card h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  line-height: 1.45;
  color: var(--text-main);
}

/* Back to blog */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

/* Mobile */
@media (max-width: 640px) {
  .post-page { padding: 16px 14px 60px; }
  .post-article p:first-of-type::first-letter { font-size: 2.2em; }
}
