.vr-share-box .vr-copy-btn,.vr-share-box .vr-share-btn {transition: transform 0.2s ease-in-out, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;}.vr-share-box .vr-copy-btn:hover,.vr-share-box .vr-share-btn:hover {transform: scale(1.12) !important;background-color: #e63946 !important; color: #ffffff !important; box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4) !important; z-index: 10;}.vr-share-box .vr-copy-btn:active,.vr-share-box .vr-share-btn:active {transform: scale(0.95) !important;background-color: #d62828 !important; box-shadow: 0 2px 5px rgba(230, 57, 70, 0.6) !important;}
 /* --- Modern Post View Styles --- */
    .modern-post-detail {
        --mp-text: #0f172a;
        --mp-muted: #64748b;
        --mp-border: #e2e8f0;
        --mp-primary: #3b82f6;
        --mp-bg: #ffffff;
    }
    body.dark-mode .modern-post-detail, body.dark .modern-post-detail {
        --mp-text: #f3f4f6;
        --mp-muted: #9ca3af;
        --mp-border: #2a2d35;
        --mp-bg: #0f1115;
    }

    .modern-post-detail .material-symbols-outlined {
        display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
    }

    /* Breadcrumbs Fix (Margin added to push it down slightly) */
    .modern-post-detail .breadcrumb-wrapper { margin-top: 18px; margin-bottom: 25px; }
    .modern-post-detail .breadcrumb { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 13px; font-weight: 600; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .modern-post-detail .breadcrumb::-webkit-scrollbar { display: none; }
    .modern-post-detail .breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--mp-muted); white-space: nowrap; }
    .modern-post-detail .breadcrumb li a { color: var(--mp-muted); text-decoration: none; display: flex; align-items: center; gap: 4px; transition: 0.2s; }
    .modern-post-detail .breadcrumb li a:hover, .modern-post-detail .breadcrumb li.active { color: var(--mp-primary); }

    /* Post Meta Top (Post Type added) */
    .modern-post-detail .post-meta-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
    
    .modern-post-detail .post-type-badge { background: #475569; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
    body.dark-mode .modern-post-detail .post-type-badge { background: #334155; }
    
    .modern-post-detail .post-category-badge { color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; }
    .modern-post-detail .live-badge { background: #ef4444; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; display: flex; align-items: center; gap: 5px; animation: pulse 2s infinite; }
    .modern-post-detail .archived-badge { background: #f59e0b; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

    /* Title & Summary */
    .modern-post-detail .post-title { font-size: 2.2rem; font-weight: 900; color: var(--mp-text); line-height: 1.3; margin: 0 0 15px 0; letter-spacing: -0.5px; }
    .modern-post-detail .post-summary { font-size: 1.15rem; font-weight: 500; color: var(--mp-muted); line-height: 1.6; margin: 0 0 25px 0; padding-left: 15px; border-left: 4px solid var(--mp-primary); }
    html[dir="rtl"] .modern-post-detail .post-summary { padding-left: 0; padding-right: 15px; border-left: none; border-right: 4px solid var(--mp-primary); }

    /* Author Box Fix (Avatar won't squeeze) */
    .modern-post-detail .author-meta-box { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid var(--mp-border); border-bottom: 1px solid var(--mp-border); margin-bottom: 25px; }
    .modern-post-detail .author-avatar { width: 52px; height: 52px; min-width: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--mp-border); }
    
    .modern-post-detail .author-info { display: flex; flex-direction: column; justify-content: center; }
    .modern-post-detail .author-name { font-size: 1rem; font-weight: 700; color: var(--mp-text); display: flex; align-items: center; gap: 5px; }
    .modern-post-detail .author-name a { color: inherit; text-decoration: none; }
    .modern-post-detail .post-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--mp-muted); font-weight: 500; margin-top: 4px; }
    .modern-post-detail .post-stats span { display: flex; align-items: center; gap: 4px; }
    .modern-post-detail .post-stats .material-symbols-outlined { font-size: 15px; }

    /* Tags & Tabs */
    .modern-post-detail .modern-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--mp-border); }
    .modern-post-detail .modern-tag { background: var(--mp-bg); border: 1px solid var(--mp-border); color: var(--mp-muted); padding: 6px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; transition: 0.2s; }
    .modern-post-detail .modern-tag:hover { background: var(--mp-primary); color: #fff; border-color: var(--mp-primary); }

    .modern-post-detail .modern-comment-tabs { display: flex; gap: 10px; border-bottom: none; margin-bottom: 20px; }
    .modern-post-detail .modern-comment-tabs button { background: transparent; border: 1px solid var(--mp-border); color: var(--mp-muted); padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; transition: 0.2s; cursor: pointer; }
    .modern-post-detail .modern-comment-tabs button.active { background: var(--mp-primary); color: #fff; border-color: var(--mp-primary); }

    @media (max-width: 767px) {
        .modern-post-detail .post-title { font-size: 1.8rem; }
        .modern-post-detail .post-summary { font-size: 1.05rem; }
    }
    
/* =========================================
   ALERTS & BADGES (Replaces Bootstrap)
   ========================================= */

.alert {
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

/* Alert Colors */
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}
.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Dismissible Alert Box */
.alert-dismissible {
    padding-right: 3rem;
}

/* Close Button (Cross Icon) */
.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
}
.btn-close:hover {
    color: inherit;
    opacity: 0.75;
}
/* This adds the "×" symbol automatically */
.btn-close::before {
    content: "\00d7"; 
}

/* Alert Fade Animation */
.fade {
    transition: opacity 0.15s linear;
}
.fade:not(.show) {
    opacity: 0;
}
.show {
    opacity: 1;
}

/* =========================================
   PREVIOUS & NEXT ARTICLE FIX (MODERN CARDS)
   ========================================= */
.post-next-prev {
    border-top: 1px dashed var(--mp-border);
    padding-top: 30px;
    margin-top: 40px !important;
}

/* Card Design for the Columns */
.post-next-prev .left,
.post-next-prev .right {
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 15px;
}

/* Hover Effect (Lift Up & Primary Border) */
.post-next-prev .left:hover,
.post-next-prev .right:hover {
    border-color: var(--mp-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}
body.dark-mode .post-next-prev .left:hover,
body.dark-mode .post-next-prev .right:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Small Label ("Previous Article" / "Next Article") */
.post-next-prev .head-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--mp-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.post-next-prev .head-title a {
    color: var(--mp-muted) !important;
    text-decoration: none !important;
}

/* Article Title Link */
.post-next-prev h3.title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}
.post-next-prev h3.title a {
    color: var(--mp-text) !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

/* Color change on hover */
.post-next-prev .left:hover h3.title a,
.post-next-prev .right:hover h3.title a {
    color: var(--mp-primary) !important;
}

/* Correcting Alignments (Overriding default text-end/text-start) */
.post-next-prev .left { 
    align-items: flex-start; text-align: left !important; 
}
.post-next-prev .left .head-title, 
.post-next-prev .left h3.title { text-align: left !important; }

.post-next-prev .right { 
    align-items: flex-end; text-align: right !important; 
}
.post-next-prev .right .head-title, 
.post-next-prev .right h3.title { text-align: right !important; }

/* RTL Support */
html[dir="rtl"] .post-next-prev .left { align-items: flex-end; text-align: right !important; }
html[dir="rtl"] .post-next-prev .left .head-title, html[dir="rtl"] .post-next-prev .left h3.title { text-align: right !important; }
html[dir="rtl"] .post-next-prev .right { align-items: flex-start; text-align: left !important; }
html[dir="rtl"] .post-next-prev .right .head-title, html[dir="rtl"] .post-next-prev .right h3.title { text-align: left !important; }