/**
 * Vietnamese Single Post (Article Detail) Styles
 * 越南语文章详情页样式
 * 
 * Design: Bright, vibrant, green/orange color scheme
 * Target: .lang-vi.single-news-page body class
 * 
 * This stylesheet applies Vietnamese design aesthetics to the single post page
 * using green (#008000) as primary color and orange (#ff8c00) as accent color.
 */

/* ============================================================================
   Hero Banner Section - 文章标题横幅区域
   使用越南风格的绿色/橙色渐变
   ============================================================================ */

/* 越南语文章详情页的 Hero Banner - 基础样式 */
body.lang-vi.single-news-page .page-header,
body.lang-vi.single-post .page-header,
body.lang-vi.single .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.single-news-page .page-header:not([style*="background-image"]),
body.lang-vi.single-post .page-header:not([style*="background-image"]),
body.lang-vi.single .page-header:not([style*="background-image"]) {
    background: linear-gradient(135deg, #008000 0%, #ff8c00 100%) !important;
}

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

/* 完全移除或隐藏蓝色遮罩层 - 最高优先级 */
body.lang-vi.single-news-page .page-header-overlay,
body.lang-vi.single-post .page-header-overlay,
body.lang-vi.single .page-header-overlay {
    /* 完全隐藏遮罩层，让背景图片和伪元素渐变显示 */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 如果有背景图片，添加绿色/橙色渐变叠加层 */
body.lang-vi.single-news-page .page-header[style*="background-image"]::before,
body.lang-vi.single-post .page-header[style*="background-image"]::before,
body.lang-vi.single .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.single-news-page .page-header .container,
body.lang-vi.single-post .page-header .container,
body.lang-vi.single .page-header .container {
    position: relative !important;
    z-index: 2 !important;
}

body.lang-vi.single-news-page .page-title,
body.lang-vi.single-post .page-title,
body.lang-vi.single .page-title {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3) !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

/* 面包屑导航 - 越南风格 */
body.lang-vi.single-news-page .breadcrumb-nav,
body.lang-vi.single-post .breadcrumb-nav,
body.lang-vi.single .breadcrumb-nav {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.lang-vi.single-news-page .breadcrumb-nav a,
body.lang-vi.single-post .breadcrumb-nav a,
body.lang-vi.single .breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.lang-vi.single-news-page .breadcrumb-nav a:hover,
body.lang-vi.single-post .breadcrumb-nav a:hover,
body.lang-vi.single .breadcrumb-nav a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* 文章元信息 - 越南风格 */
body.lang-vi.single-news-page .article-meta,
body.lang-vi.single-post .article-meta,
body.lang-vi.single .article-meta {
    color: rgba(255, 255, 255, 0.95) !important;
}

body.lang-vi.single-news-page .article-meta .dashicons,
body.lang-vi.single-post .article-meta .dashicons,
body.lang-vi.single .article-meta .dashicons {
    color: #ffffff !important;
}

/* ============================================================================
   Article Content Container - 文章内容容器
   ============================================================================ */

body.lang-vi.single-news-page .single-article-content,
body.lang-vi.single-post .single-article-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid #e8f5e9 !important;
    transition: all 0.3s ease !important;
}

body.lang-vi.single-news-page .single-article-content:hover,
body.lang-vi.single-post .single-article-content:hover {
    box-shadow: 0 8px 30px rgba(0, 128, 0, 0.12) !important;
}

/* ============================================================================
   Article Body - 文章正文
   ============================================================================ */

body.lang-vi.single-news-page .article-body h2,
body.lang-vi.single-post .article-body h2 {
    color: #008000 !important;
    border-bottom-color: #e8f5e9 !important;
    border-bottom-width: 3px !important;
}

body.lang-vi.single-news-page .article-body h3,
body.lang-vi.single-post .article-body h3 {
    color: #008000 !important;
}

body.lang-vi.single-news-page .article-body h4,
body.lang-vi.single-post .article-body h4 {
    color: #2e7d32 !important;
}

body.lang-vi.single-news-page .article-body a,
body.lang-vi.single-post .article-body a {
    color: #ff8c00 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

body.lang-vi.single-news-page .article-body a:hover,
body.lang-vi.single-post .article-body a:hover {
    color: #ff7700 !important;
    text-decoration: underline !important;
}

body.lang-vi.single-news-page .article-body blockquote,
body.lang-vi.single-post .article-body blockquote {
    border-left-color: #008000 !important;
    background: linear-gradient(to right, #f8fff8 0%, #ffffff 100%) !important;
    color: #2e7d32 !important;
}

body.lang-vi.single-news-page .article-body code,
body.lang-vi.single-post .article-body code {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

/* ============================================================================
   Article Footer - 文章底部
   ============================================================================ */

body.lang-vi.single-news-page .article-footer,
body.lang-vi.single-post .article-footer {
    background: linear-gradient(to bottom, #f8fff8 0%, #ffffff 100%) !important;
    border-top: 2px solid #e8f5e9 !important;
}

/* 标签 - 越南风格 */
body.lang-vi.single-news-page .article-tags .tags-label,
body.lang-vi.single-post .article-tags .tags-label {
    color: #008000 !important;
    font-weight: 700 !important;
}

body.lang-vi.single-news-page .article-tags .tags-label .dashicons,
body.lang-vi.single-post .article-tags .tags-label .dashicons {
    color: #ff8c00 !important;
}

body.lang-vi.single-news-page .article-tags .tag-item,
body.lang-vi.single-post .article-tags .tag-item {
    background: #ffffff !important;
    color: #555 !important;
    border: 2px solid #e8f5e9 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

body.lang-vi.single-news-page .article-tags .tag-item:hover,
body.lang-vi.single-post .article-tags .tag-item:hover {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
    color: #ffffff !important;
    border-color: #008000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.3) !important;
}

/* 社交分享 - 越南风格 */
body.lang-vi.single-news-page .article-share .share-label,
body.lang-vi.single-post .article-share .share-label {
    color: #008000 !important;
    font-weight: 700 !important;
}

body.lang-vi.single-news-page .article-share .share-label .dashicons,
body.lang-vi.single-post .article-share .share-label .dashicons {
    color: #ff8c00 !important;
}

/* 社交分享按钮 - 使用越南配色 */
body.lang-vi.single-news-page .article-share .share-btn.facebook,
body.lang-vi.single-post .article-share .share-btn.facebook {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
}

body.lang-vi.single-news-page .article-share .share-btn.facebook:hover,
body.lang-vi.single-post .article-share .share-btn.facebook:hover {
    background: linear-gradient(135deg, #006600 0%, #008800 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.4) !important;
}

body.lang-vi.single-news-page .article-share .share-btn.twitter,
body.lang-vi.single-post .article-share .share-btn.twitter {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%) !important;
}

body.lang-vi.single-news-page .article-share .share-btn.twitter:hover,
body.lang-vi.single-post .article-share .share-btn.twitter:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff6600 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4) !important;
}

body.lang-vi.single-news-page .article-share .share-btn.linkedin,
body.lang-vi.single-post .article-share .share-btn.linkedin {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%) !important;
}

body.lang-vi.single-news-page .article-share .share-btn.linkedin:hover,
body.lang-vi.single-post .article-share .share-btn.linkedin:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4) !important;
}

/* ============================================================================
   Related Articles - 相关文章
   ============================================================================ */

body.lang-vi.single-news-page .related-articles,
body.lang-vi.single-post .related-articles {
    border-top: 3px solid #e8f5e9 !important;
}

body.lang-vi.single-news-page .related-articles .section-title,
body.lang-vi.single-post .related-articles .section-title {
    color: #008000 !important;
    font-weight: 800 !important;
    position: relative !important;
    padding-bottom: 20px !important;
}

body.lang-vi.single-news-page .related-articles .section-title::after,
body.lang-vi.single-post .related-articles .section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 4px !important;
    background: linear-gradient(to right, #008000, #ff8c00) !important;
    border-radius: 2px !important;
}

/* 相关文章卡片 - 使用越南新闻卡片样式 */
body.lang-vi.single-news-page .related-articles .news-card-archive,
body.lang-vi.single-post .related-articles .news-card-archive {
    border: 2px solid #e8f5e9 !important;
}

body.lang-vi.single-news-page .related-articles .news-card-archive:hover,
body.lang-vi.single-post .related-articles .news-card-archive:hover {
    border-color: #c8e6c9 !important;
    box-shadow: 0 12px 40px rgba(0, 128, 0, 0.15) !important;
}

/* ============================================================================
   Comments Section - 评论区域
   ============================================================================ */

body.lang-vi.single-news-page .comments-wrapper,
body.lang-vi.single-post .comments-wrapper {
    background: linear-gradient(to bottom, #f8fff8 0%, #ffffff 100%) !important;
    border: 2px solid #e8f5e9 !important;
    border-radius: 16px !important;
}

body.lang-vi.single-news-page .comments-wrapper .comments-title,
body.lang-vi.single-post .comments-wrapper .comments-title {
    color: #008000 !important;
    font-weight: 800 !important;
}

body.lang-vi.single-news-page .comments-wrapper .comment-reply-link,
body.lang-vi.single-post .comments-wrapper .comment-reply-link {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

body.lang-vi.single-news-page .comments-wrapper .comment-reply-link:hover,
body.lang-vi.single-post .comments-wrapper .comment-reply-link:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ff6600 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4) !important;
}

body.lang-vi.single-news-page .comments-wrapper .comment-form input[type="submit"],
body.lang-vi.single-post .comments-wrapper .comment-form input[type="submit"] {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%) !important;
    color: #ffffff !important;
    padding: 12px 32px !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

body.lang-vi.single-news-page .comments-wrapper .comment-form input[type="submit"]:hover,
body.lang-vi.single-post .comments-wrapper .comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #006600 0%, #008800 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.4) !important;
}

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

/* Tablet - 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    body.lang-vi.single-news-page .page-title,
    body.lang-vi.single-post .page-title {
        font-size: 2.2rem !important;
    }
}

/* Mobile - 手机设备 (<768px) */
@media (max-width: 768px) {
    body.lang-vi.single-news-page .page-header,
    body.lang-vi.single-post .page-header {
        padding: 60px 0 !important;
    }
    
    body.lang-vi.single-news-page .page-title,
    body.lang-vi.single-post .page-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    body.lang-vi.single-news-page .page-title,
    body.lang-vi.single-post .page-title {
        font-size: 1.5rem !important;
    }
}
