﻿/* =========================================================================
   PAGE: THƯ VIỆN HÌNH ẢNH (GALLERY LOG)
   ========================================================================= */

/* --- Hero Section --- */
/* =========================================================================
   COMPONENT: GALLERY HERO (CINEMATIC PRO)

   ========================================================================= */

.vc-gallery-main {
    background-color: rgb(3, 3, 3);
}

.vc-gallery-hero-pro {
    position: relative;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #020202;
    overflow: visible; /* Cực kỳ quan trọng để khối Floating Stats không bị cắt mất */
    margin-bottom: 80px; /* Chừa khoảng trống bên dưới để nhường chỗ cho khối Floating Stats */
}

/* --- Xử lý Ảnh nền & Hiệu ứng Ken Burns --- */
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden; /* Giữ ảnh không tràn ra ngoài khi zoom */
    z-index: 0;
}

.hero-bg-kenburns {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Hiệu ứng trôi ảnh cực chậm và mượt mà */
    animation: ken-burns-zoom 20s ease-out infinite alternate;
}

@keyframes ken-burns-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* Lớp phủ Gradient đè lên ảnh (Tạo độ tương phản cho chữ) */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    /* Trên cùng mờ để thấy Navbar, giữa tối dần, dưới cùng tối đen để blend vào phần dưới */
    background: linear-gradient(to bottom, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.85) 60%, #020202 100%);
}

/* --- Typography & Text --- */
.vc-gallery-title-pro {
    margin: 0;
    line-height: 1;
    display: flex;
    flex-direction: column;
}

    .vc-gallery-title-pro .text-hollow {
        font-size: clamp(3.5rem, 8vw, 6rem);
        font-weight: 900;
        color: transparent;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
        letter-spacing: 4px;
        text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .vc-gallery-title-pro .text-solid-gold {
        font-size: clamp(3rem, 7vw, 5rem);
        font-weight: 900;
        background: linear-gradient(to right, #ffffff 0%, var(--brand-yellow) 50%, #d4af37 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -2px;
    }

.vc-gallery-desc-pro {
    color: #a0a0a0;
    font-size: 1.15rem;
    max-width: 650px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* --- Khối Floating Stats (Kính mờ vắt ngang) --- */
.floating-stats-container {
    bottom: -60px; /* Kéo tụt xuống dưới mép section */
}

.glass-stats-board {
    background: rgba(25, 25, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.stat-col {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s;
}

    .stat-col:hover {
        transform: translateY(-5px);
    }

.stat-icon {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.stat-unit {
    font-size: 1.2rem;
    color: var(--brand-yellow);
    font-weight: 700;
    margin-left: 5px;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Responsive Điều Chỉnh --- */
@media (max-width: 991.98px) {
    .vc-gallery-hero-pro {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
        margin-bottom: 0; /* Bỏ khoảng trống vì đã ẩn khối floating trên mobile */
    }
}

/* --- Bộ lọc (Filter Bar) --- */
.vc-gallery-filters {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

    .filter-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
    }

    .filter-btn.active {
        background: var(--brand-yellow);
        color: #000;
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    }

/* --- Thẻ Hình Ảnh (Gallery Card) --- */
.vc-gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    /* Ép tất cả ảnh về tỷ lệ 4:3 cho đều nhau */
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vc-gallery-card:hover .gallery-img {
    transform: scale(1.1); /* Zoom ảnh khi hover */
}

/* Lớp phủ Kính mờ (Glass Overlay) */
.gallery-overlay {
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: all 0.4s ease;
}

.vc-gallery-card:hover .gallery-overlay {
    opacity: 1; /* Hiện overlay khi hover */
}

/* Nội dung Text trong Overlay */
.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vc-gallery-card:hover .overlay-content {
    transform: translateY(0); /* Text trượt lên mượt mà */
}

.gallery-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.gallery-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-location {
    color: #aaa;
    font-size: 0.85rem;
    margin: 0;
}

/* Nút Zoom Icon (Góc trên phải) */
.btn-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vc-gallery-card:hover .btn-zoom-icon {
    transform: scale(1); /* Nút zoom nảy ra khi hover */
}

.btn-zoom-icon:hover {
    background: var(--brand-yellow);
    color: #000;
    border-color: var(--brand-yellow);
}

/* --- Nút Tải Thêm (Load More) --- */
.btn-cyber-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

    .btn-cyber-outline:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--brand-yellow);
        color: var(--brand-yellow);
    }

    .btn-cyber-outline i {
        transition: 0.4s;
    }

    .btn-cyber-outline:hover i {
        transform: rotate(180deg);
    }

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .vc-gallery-filters {
        padding: 8px;
        border-radius: 12px; /* Đổi về hình chữ nhật bo góc nhẹ trên mobile */
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
        padding: 20px;
    }
    /* Luôn hiện text trên mobile vì ko có hover */
    .overlay-content {
        transform: translateY(0);
    }

    .btn-zoom-icon {
        display: none;
    }
    /* Ẩn nút zoom trên mobile */
}

@media (min-width: 992px) {
    .pb-lg-5 {
        padding-bottom: 8rem !important;
    }
}