/*
  blog-md-style.css
  Markdown 글 전용 공통 스타일
  적용 대상: .md-article 내부 콘텐츠
*/

:root {
  --md-text: #1f2937;
  --md-muted: #6b7280;
  --md-border: #e5e7eb;
  --md-bg: #ffffff;
  --md-soft-bg: #f9fafb;
  --md-code-bg: #111827;
  --md-code-text: #f9fafb;
  --md-blue-bg: #eff6ff;
  --md-blue-border: #3b82f6;
  --md-green-bg: #ecfdf5;
  --md-green-border: #10b981;
  --md-yellow-bg: #fffbeb;
  --md-yellow-border: #f59e0b;
  --md-red-bg: #fef2f2;
  --md-red-border: #ef4444;
  --md-purple-bg: #f5f3ff;
  --md-purple-border: #8b5cf6;
}

.md-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 28px;
  color: var(--md-text);
  background: var(--md-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  word-break: keep-all;
}

.md-article h1,
.md-article h2,
.md-article h3,
.md-article h4 {
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #111827;
}

.md-article h1 {
  margin: 0 0 12px;
  font-size: 2.25rem;
  font-weight: 800;
}

.md-article h2 {
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--md-border);
  font-size: 1.55rem;
  font-weight: 750;
}

.md-article h3 {
  margin-top: 32px;
  font-size: 1.25rem;
  font-weight: 700;
}

.md-article p {
  margin: 16px 0;
}

.md-article a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

.md-article a:hover {
  border-bottom-color: #2563eb;
}

.coupang-partners-banner {
  margin: 18px 0 28px;
}

.md-article .coupang-partners-banner a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 16px;
  color: #334155;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.md-article .coupang-partners-banner a:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #3b82f6;
}

.post-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--md-border);
}

.md-article .next-post-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.md-article .next-post-button:hover {
  background: #1d4ed8;
  border: 0;
}

.md-article strong {
  font-weight: 750;
}

.post-meta {
  margin-bottom: 28px;
  color: var(--md-muted);
  font-size: 0.95rem;
}

.md-article hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--md-border);
}

.md-article ul,
.md-article ol {
  padding-left: 1.4rem;
}

.md-article li {
  margin: 6px 0;
}

.summary-box,
.info-box,
.tip-box,
.warning-box,
.danger-box,
.conclusion-box {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.summary-box {
  background: var(--md-purple-bg);
  border-left-color: var(--md-purple-border);
}

.info-box {
  background: var(--md-blue-bg);
  border-left-color: var(--md-blue-border);
}

.tip-box {
  background: var(--md-green-bg);
  border-left-color: var(--md-green-border);
}

.warning-box {
  background: var(--md-yellow-bg);
  border-left-color: var(--md-yellow-border);
}

.danger-box {
  background: var(--md-red-bg);
  border-left-color: var(--md-red-border);
}

.conclusion-box {
  background: var(--md-soft-bg);
  border-left-color: #111827;
}

.md-article table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--md-border);
  border-radius: 12px;
  font-size: 0.96rem;
}

.md-article th,
.md-article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--md-border);
  text-align: left;
  vertical-align: top;
}

.md-article th {
  background: var(--md-soft-bg);
  font-weight: 750;
}

.md-article tr:last-child td {
  border-bottom: 0;
}

.md-article blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  color: #374151;
  background: var(--md-soft-bg);
  border-left: 4px solid #9ca3af;
  border-radius: 10px;
}

.md-article code {
  padding: 2px 6px;
  background: #f3f4f6;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.md-article pre {
  margin: 24px 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--md-code-bg);
  border-radius: 14px;
}

.md-article pre code {
  padding: 0;
  color: var(--md-code-text);
  background: transparent;
  font-size: 0.92rem;
}
