/* aipost 공유 기본 CSS 변수 */
:root {
    --gb-primary: #2563eb;
    --gb-secondary: #64748b;
    --gb-accent: #0ea5e9;
    --gb-header-bg: #ffffff;
    --gb-heading-font: 'Pretendard', sans-serif;
    --gb-body-font: 'Pretendard', sans-serif;
}

/* Prose (본문 스타일링) */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.prose h2 {
    font-family: var(--gb-heading-font);
    color: var(--gb-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-family: var(--gb-heading-font);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose a {
    color: var(--gb-primary);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--gb-accent);
}

/* prose 확장 — h4, blockquote, ul, ol, table */
.prose h4 { font-family: var(--gb-heading-font); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose blockquote { border-left: 4px solid var(--gb-primary); padding-left: 1rem; color: #6b7280; font-style: italic; margin: 1.5rem 0; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; margin: 1rem 0; }
.prose ol { list-style-type: decimal; padding-left: 1.5rem; margin: 1rem 0; }
.prose li { margin-bottom: 0.25rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: 0.5rem 0.75rem; text-align: left; }
.prose th { background-color: #f9fafb; font-weight: 600; }

/* 썸네일 플레이스홀더 */
.thumb-placeholder { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); display: flex; align-items: center; justify-content: center; }
.thumb-placeholder svg { width: 3rem; height: 3rem; color: #94a3b8; }

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Print */
@media print {
    header, footer, nav { display: none !important; }
    .prose { max-width: 100%; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #6b7280; }
}
