/* --- ARCHIVE TIMELINE --- */
.archive-timeline-section { padding: 5rem 0; background: var(--color-bg); }
.timeline { max-width: 700px; margin: 0 auto; padding-left: 2rem; border-left: 2px solid rgba(17,94,77,0.08); }
.timeline-year { margin-bottom: 2.5rem; position: relative; }
.timeline-year-marker { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; margin-left: -2.35rem; }
.year-dot { width: 12px; height: 12px; background: var(--color-accent); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-accent); flex-shrink: 0; }
.year-label { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.year-count { font-size: 0.7rem; color: var(--color-text-light); font-weight: 500; }
.timeline-months { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-left: 0.5rem; }
.timeline-month { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; background: var(--color-bg-off); border-radius: 2rem; border: 1px solid rgba(17,94,77,0.06); font-size: 0.8rem; color: var(--color-text); transition: all 0.25s; }
.timeline-month:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.month-count { font-size: 0.65rem; background: var(--color-primary); color: #fff; padding: 0.1rem 0.45rem; border-radius: 1rem; font-weight: 600; }
.timeline-month:hover .month-count { background: var(--color-accent); }

/* --- SAME CATEGORY NAVIGATION --- */
.same-category-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(17,94,77,0.08); }
.same-cat-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.same-cat-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 500px) { .same-cat-grid { grid-template-columns: 1fr 1fr; } }
.same-cat-card { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.25rem; background: var(--color-bg-off); border-radius: 0.75rem; border: 1px solid rgba(17,94,77,0.05); transition: all 0.25s; }
.same-cat-card:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.same-cat-card-title { font-weight: 600; color: var(--color-primary); font-size: 0.9rem; line-height: 1.3; }
.same-cat-card-date { font-size: 0.65rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* --- POST VIEWS BADGE --- */
.post-views { color: var(--color-text-light); font-weight: 500; }

/* --- NEWSLETTER CTA (AKHIR POST) --- */
.newsletter-cta { margin-top: 3rem; padding: 2.5rem; background: linear-gradient(135deg, var(--color-primary-surface), #d1fae5); border-radius: 1.5rem; text-align: center; border: 1px solid rgba(17,94,77,0.08); }
.newsletter-cta h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.newsletter-cta p { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.newsletter-cta .btn { display: inline-block; }

/* --- BOOKMARK BUTTON --- */
.bookmark-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--color-text-light); background: none; border: 1px solid rgba(17,94,77,0.1); padding: 0.4rem 1rem; border-radius: 2rem; cursor: pointer; transition: all 0.25s; }
.bookmark-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.bookmark-btn.bookmarked { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.bookmark-btn svg { transition: transform 0.3s; }
.bookmark-btn.bookmarked svg { fill: currentColor; }

/* Reading list dropdown */
.reading-list-panel { position: fixed; right: 0; top: var(--nav-height); width: 340px; max-height: 70vh; background: #fff; border-radius: 0 0 0 1.5rem; box-shadow: var(--shadow-xl); z-index: 1100; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease; padding: 1.5rem; }
.reading-list-panel.open { transform: translateX(0); }
.reading-list-panel h4 { font-family: var(--font-serif); font-size: 1rem; color: var(--color-primary); margin-bottom: 1rem; }
.reading-list-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(17,94,77,0.05); font-size: 0.85rem; }
.reading-list-item a { color: var(--color-text); font-weight: 500; }
.reading-list-item a:hover { color: var(--color-accent); }
.reading-list-remove { background: none; border: none; color: #cbd5e1; cursor: pointer; font-size: 1.1rem; padding: 0 0.25rem; }
.reading-list-remove:hover { color: var(--color-accent); }
.reading-list-empty { font-size: 0.8rem; color: var(--color-text-light); text-align: center; padding: 2rem 0; }

/* --- PRINT-FRIENDLY --- */
@media print {
    .main-navbar, .site-footer, .share-column, .floating-share-bar, .search-modal,
    .mobile-menu-overlay, #scroll-up, #progress-bar, .ad-container, .newsletter-cta,
    .reading-list-panel, .theme-toggle, .post-navigation, .same-category-section,
    .author-card-wrapper, .utility-box, .share-box, .related-section, .comments-section-wrapper,
    .sidebar-toc, .toc-wrapper { display: none !important; }
    body { font-size: 12pt; line-height: 1.6; color: #000; background: #fff; }
    .site-content { padding-top: 0; }
    .single-post { padding: 0; }
    .entry-content { max-width: 100%; }
    a { color: #000; text-decoration: underline; }
    pre, code { border: 1px solid #ddd; background: #f9f9f9; }
    .featured-image-wrapper { max-width: 100%; margin: 1rem 0; }
    .entry-title { font-size: 24pt; }
}

/* --- BREADCRUMB SCHEMA (Google Rich Results) --- */
.breadcrumb { padding: 1rem 0; }
.breadcrumb-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.breadcrumb-item { display: inline-flex; align-items: center; font-size: 0.75rem; color: var(--color-text-light); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin: 0 0.4rem; color: rgba(17,94,77,0.2); }
.breadcrumb-item a { color: var(--color-text-light); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--color-accent); }
.breadcrumb-item [itemprop="name"] { color: var(--color-primary); font-weight: 600; }

/* --- CLS PREVENTION: Reserve space for images --- */
img:not([width]):not([height]) { aspect-ratio: 16/9; }
.post-thumbnail, .cat-post-thumb, .featured-image-wrapper { overflow: hidden; background: var(--color-bg-off); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- CONTENT-SECURITY: Lazy render below-fold images --- */
img[loading="lazy"] { content-visibility: auto; contain-intrinsic-size: 400px 225px; }

/* --- POST TYPE: IMAGE (imagePost) --- */
.post-type-image .featured-image-wrapper { max-width: 100%; margin: 0 0 3rem; border-radius: 0; }
.post-type-image .featured-image-container { border-radius: 0; }
.post-type-image .featured-img { max-height: 70vh; object-fit: cover; }

/* --- POST TYPE: QUOTE (quotePost) --- */
.quote-hero { padding: 4rem 2rem; text-align: center; background: linear-gradient(135deg, var(--color-primary-surface), var(--color-primary-surface)); border-radius: 2rem; margin-bottom: 3rem; }
.quote-hero-block { max-width: 700px; margin: 0 auto; border-left: none; padding: 0; font-style: normal; }
.quote-hero-text { font-family: var(--font-serif); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; color: var(--color-primary); line-height: 1.3; }
.quote-hero-attr { display: block; margin-top: 1.5rem; font-size: 1rem; color: var(--color-accent); font-style: italic; }
[data-theme="dark"] .quote-hero { background: linear-gradient(135deg, #0f2a1f, #1a2f1e); }

/* --- POST TYPE: LINK (linkPost) --- */
.link-post-card { margin-bottom: 2rem; }
.link-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 2rem; background: var(--color-bg-off); border: 2px dashed rgba(17,94,77,0.15); border-radius: 1.5rem; transition: all 0.3s; text-align: center; }
.link-card:hover { border-color: var(--color-accent); border-style: solid; background: #fff; }
.link-card-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-accent); }
.link-card-url { font-family: var(--font-mono); font-size: 0.9rem; color: var(--color-primary); word-break: break-all; }

/* --- HEADING ANCHOR LINKS --- */
h2[id], h3[id] { position: relative; scroll-margin-top: 100px; }
.heading-anchor { position: absolute; left: -1.5rem; top: 50%; transform: translateY(-50%); opacity: 0; color: var(--color-text-muted); transition: opacity 0.2s; padding: 0.25rem; }
h2[id]:hover .heading-anchor, h3[id]:hover .heading-anchor { opacity: 0.6; }
.heading-anchor:hover { opacity: 1 !important; color: var(--color-accent); }
.heading-anchor.copied { opacity: 1; color: var(--color-accent); }

/* --- FLOATING TOC SIDEBAR --- */
.toc-sidebar-column { display: none; }
@media (min-width: 1200px) {
    .toc-sidebar-column { display: block; width: 220px; flex-shrink: 0; }
    .post-layout-grid { gap: 2rem; }
}
.sidebar-toc { position: sticky; top: calc(var(--nav-height) + 2rem); max-height: calc(100vh - var(--nav-height) - 4rem); overflow-y: auto; }
.toc-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 1rem; }
.toc-marker { position: absolute; left: 0; width: 2px; height: 1.2rem; background: var(--color-accent); border-radius: 1px; transition: top 0.2s ease; display: none; }
.toc-list { list-style: none; padding: 0; border-left: 2px solid var(--color-border); }
.toc-list li { margin-bottom: 0.5rem; padding-left: 1rem; }
.toc-list a { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.4; display: block; transition: color 0.2s; }
.toc-list a:hover, .toc-list a.active { color: var(--color-accent); }
.toc-list .h3-toc-item { padding-left: 0.5rem; }
.toc-list .h3-toc-item a { font-size: 0.75rem; }

/* --- SCROLL PROGRESS RING (back-to-top) --- */
#scroll-up { border-radius: 50%; transition: all 0.3s; }
#scroll-up.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* --- LINKEDIN DISCUSSION CTA --- */
.linkedin-cta { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 2rem; background: #E8F4F9; border-radius: 1rem; margin-top: 2rem; border: 1px solid rgba(10,102,194,0.1); }
@media (min-width: 500px) { .linkedin-cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.linkedin-cta-content { display: flex; align-items: flex-start; gap: 0.75rem; }
.linkedin-cta-content strong { display: block; font-size: 0.9rem; color: #0A66C2; margin-bottom: 0.25rem; }
.linkedin-cta-content p { font-size: 0.8rem; color: var(--color-text-light); line-height: 1.4; margin: 0; }
.btn-linkedin-cta { display: inline-block; padding: 0.6rem 1.25rem; background: #0A66C2; color: #fff; border-radius: 2rem; font-size: 0.8rem; font-weight: 600; white-space: nowrap; transition: all 0.25s; }
.btn-linkedin-cta:hover { background: #004182; color: #fff; }
[data-theme="dark"] .linkedin-cta { background: #1A2D35; border-color: rgba(10,102,194,0.2); }
[data-theme="dark"] .linkedin-cta-content strong { color: #4DA8F0; }

/* --- PROFILE: STRENGTH NARRATIVE --- */
.profile-subtitle { font-size: 1.1rem; color: var(--color-accent); font-weight: 600; margin-bottom: 1.5rem; }
.timeline-lesson { margin-top: 0.75rem; padding: 0.75rem 1rem; background: var(--color-accent-surface); border-radius: 0.5rem; font-size: 0.85rem; color: var(--color-text); line-height: 1.5; border-left: 3px solid var(--color-accent); }
.timeline-lesson strong { color: var(--color-accent); }
[data-theme="dark"] .timeline-lesson { background: var(--color-accent-surface); }

/* --- PROFILE: TIMELINE CTA + WHATSAPP BUTTON --- */
.timeline-cta { text-align: center; margin-top: 2rem; }
.timeline-cta .btn-outline { display: inline-block; padding: 0.8rem 1.5rem; border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: 2rem; font-weight: 600; font-size: 0.9rem; transition: all 0.25s; }
.timeline-cta .btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-cta-wa { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.8rem 1.5rem; background: #25D366; color: #fff; border-radius: 2rem; font-weight: 600; font-size: 0.9rem; transition: all 0.25s; }
.btn-cta-wa:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
