/*

File: article.css

Deskripsi: Styling premium untuk area konten artikel (single post & page).

Fokus pada keterbacaan (Readability), Estetika Modern, dan Responsivitas Penuh.

Didesain khusus untuk meningkatkan User Experience (UX) yang berdampak positif pada SEO.
*/

/* STREAMING_CHUNK:Styling general typography for optimal readability (SEO benefit)... /
.prose {
color: #475569; / Slate 600 - Warna abu-abu gelap lebih nyaman dibaca daripada hitam pekat /
line-height: 1.85;
font-size: 1.125rem; / 18px base size - Ideal untuk bacaan panjang di layar modern /
word-wrap: break-word; / Mencegah kata panjang merusak layout */
overflow-wrap: break-word;
}

.prose p {
margin-top: 0;
margin-bottom: 2rem; /* Jarak antar paragraf yang lega */
}

/* Mengatur ukuran font yang lebih kecil untuk mobile agar tidak terlalu sesak /
@media (max-width: 768px) {
.prose {
font-size: 1.05rem; / ~17px di mobile */
line-height: 1.75;
}
.prose p {
margin-bottom: 1.5rem;
}
}

/* STREAMING_CHUNK:Configuring headings hierarchy for clear content structure... /
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
color: #0f172a; / Slate 900 /
font-family: 'Montserrat', sans-serif;
font-weight: 800;
margin-top: 2.5em; / Jarak atas yang besar menunjukkan blok baru /
margin-bottom: 1em;
line-height: 1.3;
scroll-margin-top: 100px; / Offset saat melompat dari link anchor (daftar isi) */
}

.prose h2 {
font-size: 2rem;
border-bottom: 2px solid #f1f5f9; /* Garis bawah elegan */
padding-bottom: 0.75rem;
}

.prose h3 {
font-size: 1.5rem;
}

.prose h4 {
font-size: 1.25rem;
}

@media (max-width: 768px) {
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.35rem; }
}

/* STREAMING_CHUNK:Enhancing blockquotes for highlight and visual breaks... /
.prose blockquote {
position: relative;
border-left: 4px solid #0ea5e9; / Primary Sky 500 /
background: linear-gradient(to right, #f8fafc, #ffffff);
padding: 1.75rem 2rem 1.75rem 3rem;
margin: 3rem 0;
font-style: italic;
color: #334155; / Slate 700 */
border-radius: 0 1rem 1rem 0;
box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.03);
}

/* Menambahkan ikon kutip dekoratif /
.prose blockquote::before {
content: '"';
position: absolute;
left: 1rem;
top: -0.5rem;
font-size: 4rem;
color: rgba(14, 165, 233, 0.2); / Ikon biru transparan */
font-family: serif;
line-height: 1;
}

.prose blockquote p {
font-size: 1.2rem;
line-height: 1.7;
margin-bottom: 1rem;
}

.prose blockquote p:last-child {
margin-bottom: 0;
}

@media (max-width: 768px) {
.prose blockquote {
padding: 1.5rem;
margin: 2rem 0;
}
.prose blockquote::before {
display: none; /* Sembunyikan ikon di mobile agar tidak sempit */
}
.prose blockquote p {
font-size: 1.05rem;
}
}

/* STREAMING_CHUNK:Styling lists to be clean and easily scannable... */
.prose ul,
.prose ol {
padding-left: 1.5rem;
margin-top: 0;
margin-bottom: 2rem;
}

.prose ul {
list-style-type: none; /* Kita ganti disc dengan custom svg/icon untuk tampilan lebih modern */
}

.prose ol {
list-style-type: decimal;
}

.prose li {
position: relative;
margin-bottom: 0.75rem;
line-height: 1.7;
}

/* Custom Bullet untuk Unordered List /
.prose ul > li::before {
content: '';
position: absolute;
left: -1.25rem;
top: 0.6rem;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #0ea5e9; / Primary color /
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); / Efek cincin pudar */
}

.prose ol > li::marker {
color: #0ea5e9;
font-weight: 800;
font-family: 'Montserrat', sans-serif;
}

/* Nested lists */
.prose li > ul,
.prose li > ol {
margin-top: 0.75rem;
margin-bottom: 0.75rem;
}

/* STREAMING_CHUNK:Formatting interactive elements (links, bold text)... /
.prose a {
color: #0ea5e9; / Sky 500 /
text-decoration: none;
font-weight: 600;
border-bottom: 2px solid rgba(14, 165, 233, 0.2); / Underline halus */
transition: all 0.3s ease;
padding-bottom: 2px;
}

.prose a:hover {
color: #0284c7; /* Sky 600 /
border-bottom-color: #0284c7; / Underline menebal/menggelap /
background-color: rgba(14, 165, 233, 0.05); / Highlight background halus */
}

.prose strong,
.prose b {
color: #0f172a;
font-weight: 700;
}

/* Penataan pre/code blocks jika artikel membahas aspek teknis */
.prose pre {
background-color: #1e293b;
color: #e2e8f0;
padding: 1.5rem;
border-radius: 0.75rem;
overflow-x: auto;
margin-bottom: 2rem;
font-size: 0.9rem;
}

.prose code {
background-color: #f1f5f9;
color: #ef4444; /* Merah untuk inline code */
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
font-size: 0.875em;
font-family: monospace;
}

.prose pre code {
background-color: transparent;
color: inherit;
padding: 0;
}

/* STREAMING_CHUNK:Styling images and figures for visual impact... /
.prose img {
max-width: 100%;
height: auto;
border-radius: 1rem; / Sudut lebih membulat /
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); / Bayangan lebih dalam /
margin: 3rem auto; / Margin atas-bawah lega, auto untuk tengah jika display block /
display: block; / Mencegah masalah spasi inline */
transition: transform 0.3s ease;
}

.prose img:hover {
transform: translateY(-2px);
}

.prose figure {
margin: 3rem 0;
}

.prose figure img {
margin: 0 auto; /* Gambar di dalam figure tidak perlu margin luar lagi */
}

.prose figcaption {
text-align: center;
font-size: 0.9rem;
color: #64748b; /* Slate 500 /
margin-top: 1rem;
font-style: italic;
background-color: #f8fafc;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
display: inline-block;
width: 100%; / Atau biarkan auto jika ingin tidak full width */
box-sizing: border-box;
}

/* Alignments bawaan WordPress */
.prose .alignleft { float: left; margin: 0.5rem 2rem 1.5rem 0; }
.prose .alignright { float: right; margin: 0.5rem 0 1.5rem 2rem; }
.prose .aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
/* Batalkan float di mobile agar gambar tidak terjepit teks */
.prose .alignleft,
.prose .alignright {
float: none;
margin: 2rem 0;
width: 100%;
}
}

/* STREAMING_CHUNK:Making tables fully responsive and elegant... /
.prose table {
width: 100%;
border-collapse: separate; / Memungkinkan border-radius /
border-spacing: 0;
margin: 3rem 0;
font-size: 0.95rem;
border-radius: 0.75rem;
overflow: hidden; / Memotong konten agar border radius terlihat */
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
border: 1px solid #e2e8f0;
}

/* Pembungkus agar tabel bisa di-scroll secara horizontal di HP tanpa merusak layout body /
.prose .table-responsive-wrapper {
overflow-x: auto;
-webkit-overflow-scrolling: touch; / Smooth scrolling di iOS */
margin: 3rem 0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
border-radius: 0.75rem;
}

.prose .table-responsive-wrapper table {
margin: 0; /* Reset margin jika di dalam wrapper */
box-shadow: none;
border: none;
}

.prose th {
background-color: #0f172a; /* Header gelap kontras tinggi */
color: #ffffff;
font-weight: 600;
text-align: left;
padding: 1rem 1.25rem;
font-family: 'Montserrat', sans-serif;
letter-spacing: 0.025em;
}

.prose td {
padding: 1rem 1.25rem;
border-bottom: 1px solid #e2e8f0;
color: #475569;
vertical-align: top;
}

/* Hilangkan border bawah pada baris terakhir agar tidak dobel dengan border table */
.prose tr:last-child td {
border-bottom: none;
}

.prose tr:nth-child(even) td {
background-color: #f8fafc; /* Belang-belang ringan (Zebra striping) */
}

.prose tr:hover td {
background-color: #f1f5f9; /* Sorotan saat di-hover */
}

/* Utilitas pemisah (HR) */
.prose hr {
border: none;
height: 1px;
background: linear-gradient(to right, transparent, #cbd5e1, transparent);
margin: 4rem 0;
}