﻿/* ==================== GALLERY PAGE - THƯ VIỆN ẢNH & VIDEO ==================== */
/* Design: HEADER ĐỎ (GIỐNG RECRUITMENT), PHÂN BIỆT VỚI EVENTS (HEADER XANH) */
/* ✅ SỬ DỤNG CSS VARIABLES TỪ SETTING DATABASE: --ashico-blue, --ashico-red */

/* ==================== PAGE LAYOUT ==================== */
.gallery-page-content {
    padding: 30px 0 50px;
    background: #f8f9fa;
}

/* ==================== SECTION HEADER - NỀN ĐỎ ==================== */
.gallery-section-header {
    background: var(--ashico-red, #ec2028);
    padding: 15px 25px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-section-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 8px;
    pointer-events: none;
}

.gallery-section-header__company {
    position: relative;
    z-index: 2;
    margin-bottom: 5px;
}

.gallery-section-header__company-name {
    font-family: var(--tanspot-font-two), 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

/* Chữ A màu XANH trên nền ĐỎ */
.gallery-section-header__company-name .letter-a {
    color: var(--ashico-blue, #034ea2);
}

.gallery-section-header__company-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 3px 0;
}

.gallery-section-header__company-dots span {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

/* Dot giữa màu XANH */
.gallery-section-header__company-dots span:nth-child(2) {
    width: 6px;
    height: 6px;
    background: var(--ashico-blue, #034ea2);
}

.gallery-section-header__company-fullname {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.gallery-section-header__title {
    position: relative;
    z-index: 2;
    margin-top: 6px;
}

.gallery-section-header__title h2 {
    font-family: var(--tanspot-font-two), 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==================== GALLERY STATS ==================== */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gallery-stats__item {
    text-align: center;
}

.gallery-stats__number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--ashico-red, #ec2028);
    line-height: 1;
}

.gallery-stats__label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== GALLERY GRID ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.gallery-grid--3cols {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--2cols {
    grid-template-columns: repeat(2, 1fr);
}

/* ==================== GALLERY ITEM ==================== */
.gallery-item {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left-color: var(--ashico-red, #ec2028);
}

.gallery-item__link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Gallery Item Type Badge */
.gallery-item__type {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #023d82);
    color: #fff;
    z-index: 3;
}

.gallery-item__type.video {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), #c41e22);
}

.gallery-item__type i {
    font-size: 10px;
}

/* Gallery Item Overlay */
.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Gallery Item Icon */
.gallery-item__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--ashico-blue, #034ea2), #023d82);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gallery-item:hover .gallery-item__icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item[data-type="video"] .gallery-item__icon {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028), #c41e22);
}

.gallery-item__title {
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.gallery-item__meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

.gallery-item__meta i {
    margin-right: 3px;
}

/* ==================== GALLERY CTA ==================== */
.gallery-cta {
    background: linear-gradient(135deg, var(--ashico-red, #ec2028) 0%, #c41e22 100%) !important;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
}

.gallery-cta h3 {
    font-family: var(--tanspot-font-two), 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.gallery-cta p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.gallery-cta__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.gallery-cta__social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.gallery-cta__social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.gallery-cta__social-btn.facebook:hover {
    background: #1877f2;
}

.gallery-cta__social-btn.youtube:hover {
    background: #ff0000;
}

.gallery-cta__social-btn.linkedin:hover {
    background: #0077b5;
}

.gallery-cta__social-btn.tiktok:hover {
    background: #000;
}

/* ==================== GALLERY VIEW ALL ==================== */
.gallery-view-all {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 0;
}

.gallery-view-all .thm-btn,
.gallery-view-all .thm-btn--red {
    background: var(--ashico-red, #ec2028);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.gallery-view-all .thm-btn:hover,
.gallery-view-all .thm-btn--red:hover {
    background: #c41e22;
    transform: translateY(-2px);
    color: #fff;
}

/* ==================== GALLERY PAGINATION ==================== */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.gallery-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
}

.gallery-pagination__btn:hover {
    border-color: var(--ashico-red, #ec2028);
    color: var(--ashico-red, #ec2028);
}

.gallery-pagination__btn.active {
    background: var(--ashico-red, #ec2028);
    border-color: var(--ashico-red, #ec2028);
    color: #fff;
}

.gallery-pagination__btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ==================== GALLERY PAGINATION INFO ==================== */
.gallery-pagination-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* ==================== RESPONSIVE ==================== */

/* Full HD (≥1920px) */
@media (min-width: 1920px) {
    .gallery-section-header {
        padding: 18px 30px;
        border-radius: 10px;
    }
    
    .gallery-section-header__company-name {
        font-size: 16px;
    }
    
    .gallery-section-header__company-fullname {
        font-size: 10px;
    }
    
    .gallery-section-header__title h2 {
        font-size: 32px;
    }
    
    .gallery-stats__number {
        font-size: 32px;
    }
    
    .gallery-stats__label {
        font-size: 13px;
    }
    
    .gallery-item__title {
        font-size: 14px;
    }
}

/* Desktop (1366-1919px) */
@media (min-width: 1366px) and (max-width: 1919px) {
    .gallery-section-header__title h2 {
        font-size: 26px;
    }
}

/* Laptop (992-1365px) */
@media (min-width: 992px) and (max-width: 1365px) {
    .gallery-section-header {
        padding: 12px 20px;
    }
    
    .gallery-section-header__company-name {
        font-size: 12px;
    }
    
    .gallery-section-header__title h2 {
        font-size: 24px;
    }
    
    .gallery-stats {
        gap: 25px;
        padding: 12px;
    }
    
    .gallery-stats__number {
        font-size: 24px;
    }
    
    .gallery-stats__label {
        font-size: 11px;
    }
    
    .gallery-item__title {
        font-size: 12px;
    }
}

/* Tablet (768-991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .gallery-section-header {
        padding: 12px 15px;
    }
    
    .gallery-section-header__company-name {
        font-size: 11px;
    }
    
    .gallery-section-header__company-fullname {
        font-size: 7px;
    }
    
    .gallery-section-header__title h2 {
        font-size: 22px;
    }
    
    .gallery-grid,
    .gallery-grid--3cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-stats {
        gap: 20px;
        padding: 12px;
    }
    
    .gallery-stats__number {
        font-size: 24px;
    }
    
    .gallery-stats__label {
        font-size: 10px;
    }
    
    .gallery-item__title {
        font-size: 11px;
    }
    
    .gallery-view-all .thm-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
    
    .gallery-cta__social-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .gallery-page-content {
        padding: 20px 0 40px;
    }
    
    .gallery-section-header {
        padding: 10px 12px;
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    .gallery-section-header__company-name {
        font-size: 10px;
    }
    
    .gallery-section-header__company-fullname {
        font-size: 6px;
    }
    
    .gallery-section-header__title h2 {
        font-size: 20px;
    }
    
    .gallery-grid,
    .gallery-grid--3cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-stats {
        gap: 15px;
        padding: 10px;
    }
    
    .gallery-stats__number {
        font-size: 20px;
    }
    
    .gallery-stats__label {
        font-size: 9px;
    }
    
    .gallery-item__type {
        font-size: 7px;
        padding: 2px 6px;
        top: 8px;
        right: 8px;
    }
    
    .gallery-item__icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .gallery-item__title {
        font-size: 11px;
    }
    
    .gallery-item__meta {
        font-size: 9px;
        gap: 8px;
    }
    
    .gallery-cta {
        padding: 20px 15px;
        margin-top: 25px;
    }
    
    .gallery-cta h3 {
        font-size: 16px;
    }
    
    .gallery-cta p {
        font-size: 12px;
    }
    
    .gallery-cta__social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-pagination__btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .gallery-pagination-info {
        font-size: 11px;
    }
    
    .gallery-view-all {
        margin-top: 15px;
    }
    
    .gallery-view-all .thm-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Extra Small Mobile (≤480px) */
@media (max-width: 480px) {
    .gallery-section-header__title h2 {
        font-size: 18px;
    }
    
    .gallery-grid,
    .gallery-grid--3cols {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
    
    .gallery-item__icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .gallery-stats__number {
        font-size: 18px;
    }
    
    .gallery-cta__social-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* Extra Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    .gallery-section-header__title h2 {
        font-size: 16px;
    }
    
    .gallery-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .gallery-stats__item {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .gallery-stats__number {
        font-size: 20px;
    }
    
    .gallery-stats__label {
        font-size: 10px;
    }
}