/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 99999; /* Sangat tinggi agar di atas navbar */
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.1s ease-out;
}

.post-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* Breadcrumbs */
.post-breadcrumb {
    margin-bottom: 1rem;
}

.post-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.post-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4);
}

.post-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 12px;
    padding-left: 12px;
    color: rgba(255, 255, 255, 0.3);
    content: "/";
    font-size: 10px;
    float: none;
}

.post-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.post-date {
    font-size: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.post-container {
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px; /* Jarak dari atas saat sticky */
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 32px;
}

.sidebar-title {
    font-size: 1.25rem; /* Menjaga ukuran h5 sebelumnya */
    font-weight: 600;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }

    .post-container,
    .sidebar-widget {
        padding: 16px;
    }
}

.post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 32px;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content h1 {
    font-size: 28px;
    font-weight: 500;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 500;
}

.post-content h2 strong, .post-content h3 strong {
    font-weight: 700;
}

.post-content p {
    text-align: left;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.post-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

.post-content blockquote p {
    margin-bottom: 0 !important;
    color: #fff !important;
    font-weight: 500;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.post-content img {
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.post-author {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.post-content a {
    color: var(--primary-color);
}

.post-content a:hover {
    color: var(--secondary-color);
}

/* Related Posts */
.related-posts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateX(5px);
}

.related-post-card .related-post-thumbnail {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    width: 100px;
}

.related-post-card .related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-card .related-post-info {
    flex-grow: 1;
}

.related-post-card .related-post-date {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 0;
}

.related-post-card .related-post-title {
    font-size: 14px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.related-post-card:hover .related-post-title {
    color: var(--primary-color);
}

/* share */
.share-container {
    display: flex;
    gap: 20px;
}

.share-container a {
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.share-container a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.share-container svg {
    width: 20px;
    height: 20px;
}

.copy-link {
    cursor: pointer;
}

.attachment a {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

.attachment__caption {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.attachment__name,
.attachment__size {
    display: none;
}
/* Next/Prev Navigation */
.post-navigation {
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-navigation .nav-link {
    display: block;
    padding: 2rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.post-navigation .nav-label {
    display: flex;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-navigation .next .nav-label {
    justify-content: flex-end;
}

.post-navigation .nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-navigation .nav-link:hover .nav-title {
    color: var(--primary-color);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 768px) {
    .post-navigation .col-6 {
        width: 100%;
    }
    .post-navigation .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .post-navigation .next .nav-label {
        justify-content: flex-start;
    }
    .post-navigation .text-end {
        text-align: left !important;
    }
}

/* Floating Share */
.floating-share {
    position: fixed;
    z-index: 999;
    display: flex;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Desktop: Left Side */
@media (min-width: 992px) {
    .floating-share {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .share-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.4);
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        margin-bottom: 10px;
    }

    .share-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Mobile: Bottom Bar */
@media (max-width: 991px) {
    .floating-share {
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 12px 20px;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(100%); /* Hidden by default */
    }

    .floating-share.show {
        transform: translateY(0);
    }

    .share-buttons {
        display: flex;
        gap: 20px;
        width: 100%;
        justify-content: space-around;
    }
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    color: #fff;
}

.share-btn.twitter:hover { background: #000; }
.share-btn.facebook:hover { background: #1877F2; }
.share-btn.linkedin:hover { background: #0A66C2; }
.share-btn.whatsapp:hover { background: #25D366; }
.share-btn.copy-link:hover { background: #6c757d; }

/* Ensure content doesn't get hidden by mobile bar */
@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
}
