/*
Theme Name: Wirdani Elegant Sage
Author: Wirdani.my
Description: Minimalist theme for professional women.
Version: 0.1
*/

:root {
    --primary: #4A5D4E;
    /* Sage Green */
    --accent: #C18C8C;
    /* Dusty Rose */
    --bg: #F9F7F2;
    /* Off-White */
    --text: #333333;
    /* Charcoal */
    --border: #E2D1C3;
    /* Champagne */
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    margin: 0;
    font-size: 18px;
    /* Saiz ideal untuk bacaan di phone */
}

h1,
h2,
h3 {
    color: var(--primary);
    line-height: 1.3;
    margin-top: 1.5em;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Footer */
header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

header a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

footer {
    padding: 60px 0 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Article List */
.post-item {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.post-item h2 a {
    text-decoration: none;
    color: var(--primary);
}

.post-item .meta {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Single Post */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Update pada style.css */

html {
    scroll-behavior: smooth;
    /* Fungsi #5: Smooth Scrolling */
}

body {
    background-color: var(--bg);
    color: var(--text);
    /* Fungsi #4: System Font Stack (Pantas & Kemas) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.8;
    margin: 0;
    font-size: 19px;
    /* Saiz font yang lebih selesa untuk phone */
}

/* Breadcrumbs Style */
.breadcrumbs {
    font-size: 0.8rem;
    margin-bottom: 20px;
    color: #888;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.current-page {
    color: var(--primary);
    font-weight: 500;
}

/* Reading Time & Meta */
.post-meta-info {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

/* WhatsApp Button Style */
.wa-share-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 20px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

.wa-share-btn:hover {
    opacity: 0.8;
}

#progress-bar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px; /* Tebalkan sedikit dari 4px */
    background: #A67272 !important; /* Gunakan Dusty Rose yang lebih gelap sedikit untuk kontras */
    z-index: 999999 !important; /* Pastikan angka ini sangat besar */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Tambah shadow nipis supaya nampak timbul */
}

/* Jika anda sedang login, turunkan sedikit bar tersebut supaya tak kena tutup dengan Admin Bar WP */
.admin-bar #progress-bar {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #progress-bar {
        top: 46px !important; /* Adjust untuk mobile admin bar */
    }
}

/* Responsive Grid untuk Related Posts */
.related-posts {
    clear: both;
}

@media (max-width: 600px) {
    .post-item {
        flex-direction: column; /* Gambar di atas tajuk pada mobile */
    }
    .post-thumbnail {
        flex: 0 0 100% !important;
        margin-bottom: 15px;
    }
}

.related-item img {
    transition: transform 0.3s ease;
}

.related-item img:hover {
    transform: scale(1.05); /* Efek zoom halus bila hover */
}

.post-navigation a {
    text-decoration: none;
    color: var(--accent); /* Warna Dusty Rose */
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--primary); /* Bertukar ke Sage Green bila hover */
}