/* Import font khusus untuk halaman artikel */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;600;700&display=swap');

/* Base styles (dari layouts/app.blade.php) */
body {
    font-family: 'Inter', sans-serif;
}
.font-serif {
    font-family: 'Lora', serif;
}
.body-bg {
    background-color: #f8f9fa;
}
.header-scrolled {
    background-color: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
}

/* Override khusus halaman post (agar tidak mengubah halaman lain) */
.post-article {
    font-family: 'Open Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.post-article .font-serif {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Typography konten artikel (dari posts/show.blade.php) */
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-content h1 { font-size: 2.25rem; line-height: 2.5rem; }
.article-content h2 { font-size: 1.875rem; line-height: 2.25rem; }
.article-content h3 { font-size: 1.5rem; line-height: 2rem; }
.article-content h4 { font-size: 1.25rem; line-height: 1.75rem; }
.article-content h5 { font-size: 1.125rem; line-height: 1.75rem; }
.article-content h6 { font-size: 1rem; line-height: 1.5rem; }

.article-content p {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75;   /* 28px */
    margin-bottom: 1.5rem; /* 24px */
}
.article-content a {
    color: #2563eb;
    text-decoration: underline;
}
.article-content blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1rem;
    font-style: italic;
    color: #4b5563;
    margin: 2rem 0;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
}
.article-content ul {
    list-style-type: disc;
}
.article-content ol {
    list-style-type: decimal;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}
.article-content pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.article-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* Tag styles */
.tag-button {
    display: inline-block;
    background-color: #f3f4f6; /* bg-gray-100 */
    padding: 0.25rem 0.75rem;  /* px-3 py-1 */
    border-radius: 9999px;     /* rounded-full */
    font-size: 0.875rem;       /* text-sm */
    font-weight: 500;          /* font-medium */
    color: #1f2937;            /* text-gray-800 */
    transition: background-color 0.2s ease-in-out;
}
.tag-button:hover {
    background-color: #e5e7eb; /* hover:bg-gray-200 */
}

/* WordPress button block */
.article-content .wp-block-button {
    margin: 2rem 0;
    text-align: center;
}
.article-content .wp-block-button__link {
    display: inline-block;
    background-color: #2563eb; /* bg-blue-600 */
    color: #ffffff !important; /* text-white */
    padding: 0.75rem 1.5rem;   /* py-3 px-6 */
    border-radius: 0.375rem;   /* rounded-md */
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}
.article-content .wp-block-button__link:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
    color: #ffffff !important;
}

/* Utility */
.truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}