/**
 * Vietnamese News Page Styles
 * 越南语新闻页面样式
 * 
 * Design: Bright, vibrant, green/orange color scheme
 * Target: .lang-vi body class
 * 
 * This stylesheet applies Vietnamese design aesthetics to the news archive page
 * using green (#008000) as primary color and orange (#ff8c00) as accent color.
 */

/* ============================================================================
   Hero Banner Section - 英雄横幅区域
   完全匹配产品页面的 Banner 效果
   使用最高优先级的选择器以覆盖所有其他CSS
   ============================================================================ */

/* 越南语新闻页面的 Hero Banner - 基础样式 */
body.lang-vi .page-header,
body.lang-vi.archive .page-header,
body.lang-vi.category .page-header,
body.lang-vi .archive-news .page-header,
body.lang-vi.page-template-template-blog .page-header {
    color: #ffffff !important;
    padding: 100px 0 !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    /* 移除任何可能覆盖的背景 */
    background-color: transparent !important;
}

/* 默认渐变背景（仅当没有背景图片时显示） */
body.lang-vi .page-header:not([style*="background-image"]),
body.lang-vi.archive .page-header:not([style*="background-image"]),
body.lang-vi.category .page-header:not([style*="background-image"]),
body.lang-vi .archive-news .page-header:not([style*="background-image"]),
body.lang-vi.page-template-template-blog .page-header:not([style*="background-image"]) {
    background: linear-gradient(135deg, #008000 0%, #ff8c00 100%) !important;
}

/* 如果有背景图片，确保图片显示 - 最高优先级 */
body.lang-vi .page-header[style*="background-image"],
body.lang-vi.archive .page-header[style*="background-image"],
body.lang-vi.category .page-header[style*="background-image"],
body.lang-vi .archive-news .page-header[style*="background-image"],
body.lang-vi.page-template-template-blog .page-header[style*="background-image"] {
    /* 不覆盖内联样式的背景图片 */
    background-color: transparent !important;
}

/* 完全移除或覆盖 news-page-optimization.css 中的蓝色遮罩层 */
body.lang-vi .page-header-overlay,
body.lang-vi.archive .page-header-overlay,
body.lang-vi.category .page-header-overlay,
body.lang-vi .archive-news .page-header-overlay,
body.lang-vi.page-template-template-blog .page-header-overlay {
    /* 完全隐藏遮罩层，让背景图片和伪元素渐变显示 */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 渐变叠加层 - 让文字更清晰（仅当有背景图片时） */
body.lang-vi .page-header[style*="background-image"]::before,
body.lang-vi.archive .page-header[style*="background-image"]::before,
body.lang-vi.category .page-header[style*="background-image"]::before,
body.lang-vi .archive-news .page-header[style*="background-image"]::before,
body.lang-vi.page-template-template-blog .page-header[style*="background-image"]::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(0, 128, 0, 0.7) 0%, rgba(255, 140, 0, 0.7) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

body.lang-vi .page-header .container,
body.lang-vi.archive .page-header .container,
body.lang-vi.category .page-header .container,
body.lang-vi .archive-news .page-header .container,
body.lang-vi.page-template-template-blog .page-header .container {
    position: relative !important;
    z-index: 2 !important;
}

body.lang-vi .page-title,
body.lang-vi.archive .page-title,
body.lang-vi.category .page-title,
body.lang-vi .archive-news .page-title,
body.lang-vi.page-template-template-blog .page-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3) !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
}

body.lang-vi .page-subtitle,
body.lang-vi.archive .page-subtitle,
body.lang-vi.category .page-subtitle,
body.lang-vi .archive-news .page-subtitle,
body.lang-vi.page-template-template-blog .page-subtitle {
    color: #ffffff !important;
    opacity: 0.95 !important;
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
}

/* ============================================================================
   Category Filter Section - 分类筛选区域
   ============================================================================ */

.lang-vi .news-filter-bar {
    background: linear-gradient(to bottom, #f8fff8 0%, #ffffff 100%) !important;
    padding: 30px 0 !important;
    border-bottom: 3px solid #e8f5e9 !important;
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.08) !important;
}

.lang-vi .filter-label {
    color: #008000 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.lang-vi .filter-label .dashicons {
    color: #ff8c00 !important;
}

.lang-vi .filter-btn {
    padding: 12px 28px !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 25px !important;
    color: #555 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.lang-vi .filter-btn:hover,
.lang-vi .filter-btn.active {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
    border-color: #008000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.3) !important;
}

/* ============================================================================
   News Grid Section - 新闻网格区域
   ============================================================================ */

.lang-vi .news-grid-archive {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.lang-vi .news-card-archive {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.lang-vi .news-card-archive:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 12px 40px rgba(0, 128, 0, 0.15) !important;
    border-color: #e8f5e9 !important;
}

/* ============================================================================
   News Image Section - 新闻图片区域
   ============================================================================ */

.lang-vi .news-image-wrapper {
    position: relative !important;
    overflow: hidden !important;
    height: 280px !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%) !important;
}

.lang-vi .news-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.lang-vi .news-card-archive:hover .news-image-wrapper img {
    transform: scale(1.1) !important;
}

/* News Image Placeholder */
.lang-vi .news-image-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    color: #008000 !important;
    text-decoration: none !important;
}

.lang-vi .news-image-placeholder .dashicons {
    font-size: 4rem !important;
    width: 4rem !important;
    height: 4rem !important;
    margin-bottom: 12px !important;
}

.lang-vi .news-image-placeholder p {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ============================================================================
   Category Badge - 分类徽章
   ============================================================================ */

.lang-vi .news-category-badge {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.4) !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.lang-vi .news-category-badge.category-orange {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4) !important;
}

.lang-vi .news-category-badge .dashicons {
    font-size: 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
}

/* ============================================================================
   News Card Content - 新闻卡片内容
   ============================================================================ */

.lang-vi .news-card-content {
    padding: 24px !important;
}

/* Date Display with Vietnamese Formatting */
.lang-vi .news-date {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.lang-vi .news-date .dashicons {
    color: #ff8c00 !important;
    font-size: 1.1rem !important;
    width: 1.1rem !important;
    height: 1.1rem !important;
}

.lang-vi .news-card-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
}

.lang-vi .news-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.lang-vi .news-card-title a:hover {
    color: #008000 !important;
}

.lang-vi .news-card-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 20px !important;
}

/* ============================================================================
   News Card Footer - 新闻卡片底部
   ============================================================================ */

.lang-vi .news-card-footer {
    padding-top: 20px !important;
    border-top: 2px solid #f0f0f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Read More Button with Orange Gradient */
.lang-vi .news-card-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%) !important;
    color: #ffffff !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3) !important;
}

.lang-vi .news-card-link:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff6600 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5) !important;
}

.lang-vi .news-card-link .dashicons {
    font-size: 1.2rem !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    transition: transform 0.3s ease !important;
}

.lang-vi .news-card-link:hover .dashicons {
    transform: translateX(4px) !important;
}

/* News Meta Information */
.lang-vi .news-meta {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: 0.85rem !important;
    color: #999 !important;
}

.lang-vi .news-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.lang-vi .news-meta-item .dashicons {
    font-size: 1rem !important;
    width: 1rem !important;
    height: 1rem !important;
}

/* ============================================================================
   Pagination Section - 分页区域
   ============================================================================ */

.lang-vi .archive-pagination {
    margin-top: 60px !important;
}

.lang-vi .archive-pagination .pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
}

.lang-vi .archive-pagination .page-numbers {
    padding: 12px 20px !important;
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    color: #555 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.lang-vi .archive-pagination .page-numbers:hover,
.lang-vi .archive-pagination .page-numbers.current {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
    border-color: #008000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.3) !important;
}

.lang-vi .archive-pagination .page-numbers .dashicons {
    color: inherit !important;
}

/* ============================================================================
   Empty State Section - 空状态区域
   ============================================================================ */

.lang-vi .archive-empty-state {
    text-align: center !important;
    padding: 80px 20px !important;
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.lang-vi .archive-empty-state .empty-icon {
    font-size: 4rem !important;
    color: #ff8c00 !important;
    margin-bottom: 20px !important;
}

.lang-vi .archive-empty-state .empty-icon .dashicons {
    font-size: 4rem !important;
    width: 4rem !important;
    height: 4rem !important;
}

.lang-vi .archive-empty-state h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 16px !important;
}

.lang-vi .archive-empty-state p {
    font-size: 1.1rem !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

.lang-vi .archive-empty-state .empty-actions {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.lang-vi .archive-empty-state .btn {
    padding: 14px 32px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lang-vi .archive-empty-state .btn-primary {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
    color: #ffffff !important;
    border: 2px solid #008000 !important;
}

.lang-vi .archive-empty-state .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.3) !important;
}

.lang-vi .archive-empty-state .btn-outline {
    background: transparent !important;
    color: #ff8c00 !important;
    border: 2px solid #ff8c00 !important;
}

.lang-vi .archive-empty-state .btn-outline:hover {
    background: #ff8c00 !important;
    color: #ffffff !important;
}

/* ============================================================================
   Featured News Section - 特色新闻区域
   ============================================================================ */

.lang-vi .featured-news {
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-left: 4px solid #ff8c00 !important;
}

.lang-vi .featured-news-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #008000 !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.lang-vi .featured-news-title .dashicons {
    font-size: 1.8rem !important;
    width: 1.8rem !important;
    height: 1.8rem !important;
    color: #ff8c00 !important;
}

/* ============================================================================
   Responsive Design - 响应式设计
   ============================================================================ */

/* Tablet - 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    body.lang-vi .page-header,
    body.lang-vi.archive .page-header,
    body.lang-vi.category .page-header,
    .lang-vi .archive-news .page-header {
        padding: 80px 0 !important;
    }
    
    body.lang-vi .page-title,
    body.lang-vi.archive .page-title,
    body.lang-vi.category .page-title,
    .lang-vi .archive-news .page-title {
        font-size: 2.5rem !important;
    }
    
    body.lang-vi .page-subtitle,
    body.lang-vi.archive .page-subtitle,
    body.lang-vi.category .page-subtitle,
    .lang-vi .archive-news .page-subtitle {
        font-size: 1.2rem !important;
    }
    
    .lang-vi .news-grid-archive {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
    
    .lang-vi .news-image-wrapper {
        height: 240px !important;
    }
}

/* Mobile - 手机设备 (<768px) */
@media (max-width: 768px) {
    body.lang-vi .page-header,
    body.lang-vi.archive .page-header,
    body.lang-vi.category .page-header,
    .lang-vi .archive-news .page-header {
        padding: 60px 0 !important;
    }
    
    body.lang-vi .page-title,
    body.lang-vi.archive .page-title,
    body.lang-vi.category .page-title,
    .lang-vi .archive-news .page-title {
        font-size: 2rem !important;
    }
    
    body.lang-vi .page-subtitle,
    body.lang-vi.archive .page-subtitle,
    body.lang-vi.category .page-subtitle,
    .lang-vi .archive-news .page-subtitle {
        font-size: 1.1rem !important;
    }
    
    .lang-vi .filter-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .lang-vi .filter-btn {
        text-align: center !important;
    }
    
    .lang-vi .news-grid-archive {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .lang-vi .news-image-wrapper {
        height: 220px !important;
    }
    
    .lang-vi .news-card-content {
        padding: 20px !important;
    }
    
    .lang-vi .news-card-title {
        font-size: 1.2rem !important;
    }
    
    .lang-vi .news-card-footer {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    
    .lang-vi .news-card-link {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .lang-vi .archive-pagination .page-numbers {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .lang-vi .featured-news {
        padding: 20px !important;
    }
    
    .lang-vi .featured-news-title {
        font-size: 1.3rem !important;
    }
    
    .lang-vi .archive-empty-state {
        padding: 60px 20px !important;
    }
    
    .lang-vi .archive-empty-state h2 {
        font-size: 1.6rem !important;
    }
    
    .lang-vi .archive-empty-state .empty-actions {
        flex-direction: column !important;
    }
    
    .lang-vi .archive-empty-state .btn {
        width: 100% !important;
    }
}
