﻿/* =========================================================================
   PAGE: CHI TIẾT BÀI VIẾT (ARTICLE DETAIL)
   ========================================================================= */

/* --- Reading Progress Bar --- */
.vc-reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.vc-reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
    width: 0%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--brand-yellow);
}

/* --- Hero Banner Bài Viết --- */
.vc-article-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-color: #050505;
}

.vc-article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(40%);
}

.vc-article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050505 0%, rgba(5,5,5,0.8) 40%, rgba(5,5,5,0.4) 100%);
}

.vc-article-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--brand-yellow);
}

.author-name {
    color: #fff;
    font-size: 1rem;
}

.meta-details {
    font-size: 0.85rem;
}

    .meta-details i {
        color: var(--brand-yellow);
    }

/* --- Nội Dung Bài Viết (Typography Tối Ưu Mắt) --- */
.vc-article-body {
    background-color: #050505;
    color: #d1d5db; /* Xám sáng, không dùng trắng tinh gây mỏi mắt */
}

.vc-post-content {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    line-height: 1.85;
}

    .vc-post-content p {
        margin-bottom: 25px;
    }

    /* Thẻ Heading trong bài */
    .vc-post-content h2 {
        color: #fff;
        font-size: 1.8rem;
        font-weight: 800;
        margin: 45px 0 20px 0;
        position: relative;
        padding-left: 20px;
    }

        .vc-post-content h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            bottom: 5px;
            width: 5px;
            background: var(--brand-yellow);
            border-radius: 5px;
        }

/* =========================================================================
   COMPONENT: ARTICLE META PRO (THÔNG TIN TÁC GIẢ CAO CẤP)
   ========================================================================= */

.vc-article-meta-pro {
    position: relative;
    z-index: 3;
}

/* --- Khối Tác Giả (Author Block) --- */
.author-block {
    transition: all 0.3s ease;
}

    .author-block:hover .avatar-ring {
        transform: rotate(180deg);
    }

    .author-block:hover .author-avatar-pro {
        transform: rotate(-180deg) scale(1.05); /* Giữ avatar không bị lộn ngược khi viền xoay */
    }

/* Vòng hào quang quanh Avatar */
.avatar-wrapper {
    width: 55px;
    height: 55px;
}

.avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-yellow) 100%);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.author-avatar-pro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #111; /* Viền đen tách biệt ảnh và vòng màu */
    transition: all 0.8s ease;
}

/* Tích xanh uy tín (Verified Badge) */
.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #0084ff; /* Xanh dương chuẩn Trust Badge */
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 2px solid #0a0a0a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Thông tin Text tác giả */
.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-name-pro {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.author-block:hover .author-name-pro {
    color: var(--brand-yellow);
}

/* --- Dải Phân Cách --- */
.meta-divider {
    width: 2px;
    height: 35px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 0 5px;
}

/* --- Các Khối Thông Số (Glass Pills) --- */
.meta-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #cccccc;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

    .meta-pill:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .meta-pill i {
        margin-right: 8px;
        font-size: 0.9rem;
    }

.icon-gold {
    color: var(--brand-yellow);
}

.icon-red {
    color: var(--brand-red);
}

/* Khối Lượt xem nổi bật (Trending / Hot) */
.pill-highlight {
    background: rgba(211, 47, 47, 0.08);
    border-color: rgba(211, 47, 47, 0.2);
}

    .pill-highlight:hover {
        background: rgba(211, 47, 47, 0.15);
        border-color: rgba(211, 47, 47, 0.4);
        box-shadow: 0 5px 15px rgba(211, 47, 47, 0.2);
    }

/* --- Responsive Layout --- */
@media (max-width: 767.98px) {
    .vc-article-meta-pro .gap-3 {
        gap: 15px !important;
    }

    .meta-stats {
        width: 100%;
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
        padding-top: 15px;
    }

    .meta-pill {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* Chữ cái đầu to (Dropcap) */
.dropcap {
    float: left;
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.8;
    padding-top: 8px;
    padding-right: 12px;
    color: var(--brand-yellow);
    text-shadow: 2px 2px 0px rgba(211,47,47,0.5);
}

.lead-paragraph {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 500;
}

/* Trích dẫn (Blockquote) */
.vc-blockquote {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px 40px;
    margin: 40px 0;
    position: relative;
}

    .vc-blockquote .quote-mark {
        position: absolute;
        top: 15px;
        left: 20px;
        font-size: 2rem;
        color: rgba(255,193,7,0.15);
    }

    .vc-blockquote p {
        font-size: 1.3rem;
        font-weight: 600;
        font-style: italic;
        color: var(--brand-yellow);
        margin: 0;
        position: relative;
        z-index: 2;
    }

/* Ảnh trong bài */
.vc-post-content img {
    border: 1px solid rgba(255,255,255,0.1);
}

/* In-Content Call To Action */
.vc-in-content-cta {
    background: linear-gradient(135deg, rgba(211,47,47,0.1) 0%, rgba(20,20,20,0.8) 100%);
    border-left: 4px solid var(--brand-red);
    border-radius: 0 12px 12px 0;
    padding: 30px;
}

    .vc-in-content-cta h4 {
        color: #fff;
        font-weight: 800;
    }

.btn-cta-pulse {
    display: inline-block;
    background: var(--brand-yellow);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    animation: pulse-yellow 2s infinite;
    transition: 0.3s;
}

    .btn-cta-pulse:hover {
        background: #fff;
        color: var(--brand-red);
        animation: none;
    }

@keyframes pulse-yellow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* --- Tags & Share --- */
.vc-article-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tag-label, .share-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.tag-item {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    color: #aaa;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-left: 8px;
    transition: 0.3s;
}

    .tag-item:hover {
        background: var(--brand-yellow);
        color: #000;
    }

/* =========================================================================
   COMPONENT: PREMIUM SHARE BAR (THANH CHIA SẺ KÍNH MỜ)
   ========================================================================= */

/* --- Khối bao bọc (Container) --- */
.vc-share-pro {
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 6px 6px 6px 20px; /* Padding bất đối xứng để ôm trọn các nút tròn */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

    .vc-share-pro:hover {
        border-color: rgba(255, 255, 255, 0.15);
        background: rgba(25, 25, 28, 0.8);
    }

/* Tiêu đề "Chia sẻ:" */
.share-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Khu vực chứa nút */
.share-actions {
    display: flex;
    gap: 8px;
}

/* --- Từng nút chia sẻ (Share Pills) --- */
.share-pill {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    padding: 0; /* Reset cho thẻ button */
}

    /* --- Hiệu ứng Hover Neon Glow theo từng thương hiệu --- */

    /* Facebook */
    .share-pill.brand-fb:hover {
        background: rgba(24, 119, 242, 0.1);
        border-color: #1877f2;
        color: #1877f2;
        box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
        transform: translateY(-3px);
    }

    /* Zalo */
    .share-pill.brand-zalo:hover {
        background: rgba(0, 104, 255, 0.1);
        border-color: #0068ff;
        color: #0068ff;
        box-shadow: 0 0 15px rgba(0, 104, 255, 0.4);
        transform: translateY(-3px);
    }

    /* Copy Link */
    .share-pill.brand-link:hover {
        background: rgba(255, 193, 7, 0.1);
        border-color: var(--brand-yellow);
        color: var(--brand-yellow);
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
        transform: translateY(-3px);
    }

    /* Trạng thái thành công khi copy xong (Dùng JS để add class này) */
    .share-pill.copy-success {
        background: var(--brand-yellow) !important;
        color: #000 !important;
        border-color: var(--brand-yellow) !important;
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.6) !important;
        transform: scale(1.1);
    }

/* --- Responsive Layout --- */
@media (max-width: 767.98px) {
    .vc-share-pro {
        width: 100%;
        justify-content: space-between;
        padding: 8px 8px 8px 20px;
    }
}

/* --- Sidebar (Cột Phải) --- */
.sidebar-widget {
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
}

/* Emergency Widget */
.widget-emergency {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--brand-red);
}

.widget-emergency-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-red-dark) 0%, #000 100%);
    opacity: 0.8;
}

.pulse-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,193,7,0.2);
    color: var(--brand-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--brand-yellow);
}

/* Recent Posts Widget */
.widget-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.widget-line {
    width: 40px;
    height: 3px;
    background: var(--brand-yellow);
    border-radius: 3px;
}

.recent-img {
    width: 188px;
    height: 80px;
    object-fit: cover;
}

.recent-info h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

    .recent-info h5 a {
        color: #ddd;
        text-decoration: none;
        transition: 0.3s;
        font-weight: 600;
    }

        .recent-info h5 a:hover {
            color: var(--brand-yellow);
        }

.recent-date {
    font-size: 0.8rem;
    color: #777;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .vc-article-hero {
        height: auto;
        min-height: 400px;
        padding-top: 100px;
    }

    .vc-post-content {
        font-size: 1.05rem;
    }

        .vc-post-content h2 {
            font-size: 1.5rem;
        }
}
