/*
Theme Name: VENO-theme
Theme URI: https://game2nguoi.com/
Author: LinhNTN
Description: Theme dark mode với tông màu vàng chủ đạo.
Version: 4.1
*/

/*--------------------------------------------------------------
>>> BẢNG MỤC LỤC:
----------------------------------------------------------------
1.0  - Biến, Font và Style toàn cục
2.0  - Header & Footer
3.0  - Style cho trang chủ
4.0  - Style cho trang lưu trữ (Archive, Category, Tag, v.v.)
5.0  - Style cho các loại trang Tag đặc biệt
6.0  - Style cho nội dung bài viết đơn (Single Post)
7.0  - Style cho Template trang trắng (Blank Page)
8.0  - Style cho bài viết liên quan (Logic mới)
9.0  - Style cho các thành phần đa phương tiện (Video, etc.)
10.0 - Style cho News Popup Modal
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - Biến, Font và Style toàn cục
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
    --bg-color: #121212; /* Nền dark mode chính */
    --surface-color: #1e1e1e; /* Màu nền cho các thẻ card */
    --header-bg: rgba(30, 30, 30, 0.85); /* Header nền tối mờ */
    --text-color: #e0e0e0; /* Màu chữ chính (trắng ngà) */
    --text-muted: #888888; /* Màu chữ phụ (xám) */
    --border-color: #333333; /* Màu viền */
    --content-h-color: #ffffff; /* Màu tiêu đề (trắng) */
    --content-p-color: #e0e0e0; /* Màu chữ đoạn văn */
    --primary-color: #ffc107; /* MÀU VÀNG CHỦ ĐẠO MỚI */
}

body { 
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-color); 
    color: var(--text-color); 
}

/*--------------------------------------------------------------
2.0 - Header & Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #000000;
    color: #9ca3af;
    padding: 2rem 0;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.footer-copyright {
    margin: 0;
}
.footer-copyright a {
    color: #ffffff;
    text-decoration: none;
}
.footer-copyright a:hover {
    text-decoration: underline;
}
.footer-socials a {
    color: #9ca3af;
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: color 0.2s ease;
}
.footer-socials a:hover {
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/*--------------------------------------------------------------
3.0 - Style cho trang chủ
--------------------------------------------------------------*/
body.home {
     --bg-color: #181818;
}
.featured-hashtags-section { 
    background-color: #1a1a1a; 
}
.hashtag-pill { 
    display: inline-block; padding: 0.5rem 1.25rem; border: 1px solid var(--border-color); border-radius: 9999px; font-weight: 600; font-size: 1.125rem; text-decoration: none; color: var(--text-color); transition: all 0.2s ease-in-out; 
}
.hashtag-pill:hover { 
    background-color: var(--primary-color); color: #111; border-color: var(--primary-color); transform: scale(1.05); 
}
.just-watched-section { 
    background-color: #000000;
}
.just-watched-card { 
    display: grid; grid-template-columns: 1fr; align-items: center; background-color: var(--surface-color); border-radius: 0.75rem; overflow: hidden; text-decoration: none; min-height: 450px; transition: box-shadow 0.3s ease; border: 1px solid var(--border-color);
}
.just-watched-card:hover { 
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.5); 
}
.just-watched-card__image { 
    height: 300px; width: 100%; 
}
.just-watched-card__image img { 
    width: 100%; height: 100%; object-fit: cover; 
}
.just-watched-card__content { 
    padding: 2.5rem; text-align: left; color: var(--text-color); 
}
.just-watched-card__subtitle { 
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary-color); 
}
.just-watched-card__title { 
    font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-top: 0.75rem; margin-bottom: 1rem; color: var(--content-h-color); 
}
.just-watched-card__excerpt { 
    font-size: 1rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; 
}
.just-watched-card__button { 
    display: inline-block; padding: 0.75rem 2rem; background-color: var(--primary-color); color: #111; border-radius: 9999px; font-weight: 700; text-decoration: none; transition: all 0.2s ease; 
}
.just-watched-card__button:hover { 
    background-color: #fff; color: #111; 
}
@media (min-width: 768px) { 
    .just-watched-card { grid-template-columns: 1fr 1fr; } 
    .just-watched-card__image { height: 100%; } 
    .just-watched-card__title { font-size: 2.75rem; } 
}

/* --- Event Stream Section (REFINED) --- */
.event-stream-section {
    background-color: var(--bg-color);
}
.event-stream-section h2 {
    color: var(--content-h-color);
}
.event-stream-section .text-center > a {
    color: var(--primary-color);
    text-decoration: none;
}
.event-stream-section .text-center > a:hover {
    filter: brightness(1.2);
}
/* Style for the card wrapper inside a slide */
.event-stream-section .swiper-slide > div {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.event-stream-section .swiper-slide.group:hover > div {
    border-color: var(--primary-color);
}
/* Card title */
.event-stream-section .swiper-slide h3 {
    color: var(--text-color);
}
/* Card title on hover */
.event-stream-section .swiper-slide.group:hover h3 {
    color: var(--primary-color);
}
/* Card date */
.event-stream-section .swiper-slide span {
    color: var(--text-muted);
}
/* --- End Event Stream Section --- */


.event-stream-item { 
    display: flex; align-items: center; padding: 1.25rem; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 0.5rem; text-decoration: none; transition: all 0.2s ease; 
}
.event-stream-item:hover { 
    border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.2); transform: translateY(-2px); 
}
.event-stream-item__date { 
    font-weight: 600; color: var(--primary-color); margin-right: 1.5rem; font-size: 0.875rem; 
}
.event-stream-item__title { 
    flex-grow: 1; font-weight: 600; color: var(--text-color); 
}
.event-stream-item:hover .event-stream-item__title {
    color: var(--primary-color);
}
.event-stream-item__arrow { 
    font-size: 1.5rem; color: var(--text-muted); opacity: 0; transform: translateX(-10px); transition: all 0.2s ease; 
}
.event-stream-item:hover .event-stream-item__arrow { 
    opacity: 1; transform: translateX(0); 
}


/*--------------------------------------------------------------
4.0 - Style cho trang lưu trữ (Category, Tag, v.v.)
--------------------------------------------------------------*/
body.archive, body.search {
     --bg-color: #181818;
}
.gradient-text { 
    background: linear-gradient(to right, #ffc107, #ff9800, #ff5722); 
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.news-card { 
    background-color: var(--surface-color); border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; text-decoration: none; 
}
.news-card:hover { 
    transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); border-color: var(--primary-color); 
}
.group:hover .group-hover\:text-indigo-600 { /* This class seems to be from Tailwind, changing its color */
    color: var(--primary-color); 
}
.pagination { 
    margin-top: 3rem; 
}
.pagination .nav-links { 
    display: flex; justify-content: center; align-items: center; gap: 0.5rem; 
}
.pagination .page-numbers { 
    display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--border-color); border-radius: 0.375rem; color: var(--text-color); text-decoration: none; transition: background-color 0.2s, color 0.2s; 
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { 
    background-color: var(--primary-color); color: #111; border-color: var(--primary-color); 
}
.collapsible-description-wrapper {
    background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 0.75rem; margin-top: 2rem; overflow: hidden;
}
.collapsible-description-toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1rem 1.5rem; background-color: transparent; border: none; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--text-color);
}
.collapsible-description-toggle .toggle-icon {
    transition: transform 0.3s ease;
}
.collapsible-description-wrapper.active .toggle-icon {
    transform: rotate(180deg);
}
.collapsible-description-content {
    max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
.collapsible-description-content .content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-muted); line-height: 1.75;
}
.collapsible-description-content .content-inner p:first-of-type { margin-top: 0; }
.collapsible-description-content .content-inner p:last-of-type { margin-bottom: 0; }

.featured-post-card { display: grid; grid-template-columns: repeat(1, 1fr); border-radius: 0.75rem; overflow: hidden; background-color: var(--surface-color); border: 1px solid var(--border-color); text-decoration: none; transition: all 0.3s ease; }
.featured-post-card:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,.2), 0 10px 10px -5px rgba(0,0,0,.1); }
.featured-post-card__image img { width: 100%; height: 400px; object-fit: cover; }
.featured-post-card__content { padding: 2rem 2.5rem; }
.featured-post-card__title { font-size: 2.25rem; font-weight: 700; color: var(--content-h-color); line-height: 1.3; transition: color 0.2s; }
.featured-post-card:hover .featured-post-card__title { color: var(--primary-color); }
.featured-post-card__excerpt { margin-top: 1rem; color: var(--text-muted); font-size: 1.125rem; }
.featured-post-card__meta { margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
@media (min-width: 1024px) { .featured-post-card { grid-template-columns: repeat(2, 1fr); } .featured-post-card__image img { height: 100%; } }

/*--------------------------------------------------------------
5.0 - Style cho các loại trang Tag đặc biệt
--------------------------------------------------------------*/
/* Game Tag Template */
body.tag-game { --bg-color: #111111; }
.game-card { position: relative; border-radius: 0.5rem; overflow: hidden; display: block; }
.game-card__image { height: 450px; transition: transform 0.4s ease; }
.game-card:hover .game-card__image { transform: scale(1.05); }
.game-card__image img { width: 100%; height: 100%; object-fit: cover; }
.game-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%); }
.game-card__title { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.3; }
.game-card:hover .game-card__title {
    color: var(--primary-color);
}

/* App Tag Template */
.app-list-item { display: flex; align-items: center; padding: 1rem; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: 0.5rem; transition: all 0.2s ease; text-decoration: none; }
.app-list-item:hover { border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(0,0,0,0.2); transform: translateY(-2px); }
.app-list-item__icon { flex-shrink: 0; margin-right: 1rem; width: 48px; height: 48px; background-color: rgba(255, 193, 7, 0.1); color: var(--primary-color); border-radius: 0.5rem; display: grid; place-items: center; }
.app-list-item__content { flex-grow: 1; }
.app-list-item__title { font-weight: 600; color: var(--content-h-color); }
.app-list-item__excerpt { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.app-list-item__action { font-size: 0.875rem; font-weight: 500; color: var(--primary-color); opacity: 0; transition: opacity 0.2s ease; }
.app-list-item:hover .app-list-item__action { opacity: 1; }

/* Product Tag Template */
.product-card { border: 1px solid var(--border-color); border-radius: 0.75rem; overflow: hidden; background-color: var(--surface-color); text-align: center; transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.product-card__image img { width: 100%; height: 250px; object-fit: cover; }
.product-card__content { padding: 1.5rem; }
.product-card__title { font-weight: 600; margin-bottom: 1rem; flex-grow: 1; }
.product-card__title a { color: var(--content-h-color); text-decoration: none; }
.product-card__button { display: inline-block; width: 100%; padding: 0.75rem 1rem; background-color: #333; color: #fff; border-radius: 0.5rem; text-decoration: none; font-weight: 500; transition: background-color 0.2s ease; }
.product-card:hover .product-card__button { background-color: var(--primary-color); color: #111; }

/*--------------------------------------------------------------
6.0 - Style cho nội dung bài viết đơn (Single Post)
--------------------------------------------------------------*/
.post-content-area h1,
.post-content-area h2,
.post-content-area h3,
.post-content-area h4,
.post-content-area h5,
.post-content-area h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 1em;
    color: var(--content-h-color);
}
.post-content-area h1 { font-size: 2.25rem; }
.post-content-area h2 { font-size: 1.875rem; }
.post-content-area h3 { font-size: 1.5rem; }
.post-content-area h4 { font-size: 1.25rem; }
.post-content-area h5 { font-size: 1.125rem; }
.post-content-area h6 { font-size: 1rem; }

.post-content-area p { 
    margin-bottom: 2rem !important; 
    line-height: 1.75;
    color: var(--content-p-color);
}

.post-content-area img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 3px 6px rgba(0,0,0,0.15);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.post-content-area a { 
    color: var(--primary-color); 
    text-decoration: underline; 
    font-weight: 500; 
}

/* === BẮT ĐẦU: GIẢI PHÁP ĐẶT TÊN RIÊNG (PROSE STYLING) === */
.tns-prose-styling ul,
.tns-prose-styling ol {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.tns-prose-styling li {
    margin-bottom: 0.5rem;
}

.tns-prose-styling ul {
    list-style: none;
    padding-left: 0;
}

.tns-prose-styling ul > li {
    position: relative;
    padding-left: 1.75rem;
}

.tns-prose-styling ul > li::before {
    content: '■';
    position: absolute;
    left: 0.5rem;
    top: 0.2em;
    color: var(--primary-color);
    font-size: 0.8em;
}

.tns-prose-styling ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
}

.tns-prose-styling ol > li {
    padding-left: 0.5rem;
}

.tns-prose-styling ul ul,
.tns-prose-styling ol ol {
    margin-top: 0.5rem;
    margin-left: 1.25rem;
}

.tns-prose-styling ul ul > li::before {
    content: '–';
    color: var(--text-muted);
}

.tns-prose-styling ul ul ul > li::before {
    content: '•';
    color: var(--text-muted);
}
/* === KẾT THÚC: GIẢI PHÁP ĐẶT TÊN RIÊNG === */

/*--------------------------------------------------------------
7.0 - Style cho Template trang trắng (Blank Page)
--------------------------------------------------------------*/
.back-to-home-link {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    background-color: rgba(30, 30, 30, 0.8);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.back-to-home-link:hover {
    background-color: var(--surface-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.back-to-home-link .icon {
    margin-right: 6px;
}
.post-content-area .tns-game-box-container {
    display: flex;
    gap: 16px;
    margin: 2em 0;
    flex-wrap: wrap;
}

.post-content-area .tns-game-box-link {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 25px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    color: #111;
    text-decoration: none;
}

.post-content-area .tns-game-box-link span,
.post-content-area .tns-game-box-link .tns-icon {
    color: #111;
    text-decoration: none;
}

.post-content-area .tns-game-box-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-content-area .tns-game-box-link .tns-icon {
    width: 28px;
    height: 28px;
}

.post-content-area .tns-steam-box {
    background: linear-gradient(135deg, #ffc107, #ff9800); /* Đổi sang gradient vàng */
    border-color: #ffca28;
}

.post-content-area .tns-review-box {
    background: linear-gradient(135deg, #444, #222); /* Đổi sang gradient đen/xám */
    border-color: #666;
    color: #fff;
}

.post-content-area .tns-review-box span,
.post-content-area .tns-review-box .tns-icon {
    color: #fff;
}


@media (max-width: 600px) {
    .post-content-area .tns-game-box-container {
        flex-direction: column;
    }
}


/*--------------------------------------------------------------
8.0 - Style cho bài viết liên quan (Logic mới)
--------------------------------------------------------------*/
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    position: relative;
    background-color: var(--surface-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

.related-card-thumbnail {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.related-card-title {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--content-h-color);
    flex-grow: 1; 
}

.related-card-arrow {
    display: block; 
    margin: 0.5rem auto 1rem auto; 
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: #333;
    color: var(--primary-color);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 0; 
}

.related-card:hover .related-card-arrow {
    background-color: var(--primary-color);
    color: #111;
    transform: scale(1.1); 
}

.loaded-post-wrapper {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/*--------------------------------------------------------------
9.0 - Style cho các thành phần đa phương tiện (Video, etc.)
--------------------------------------------------------------*/
.tns-video-responsive-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    padding-top: 56.25%; /* Tỉ lệ 16:9 */
    margin: 2.5rem auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tns-video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*--------------------------------------------------------------
10.0 - Style cho News Popup Modal (FIXED)
--------------------------------------------------------------*/
/* The main card of the popup */
#news-popup .news-popup-card {
    background-color: var(--surface-color) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

/* Header and Footer styling */
#news-popup .news-popup-header, 
#news-popup .news-popup-footer {
    background-color: #242424 !important; /* A slightly different shade for header/footer */
    border-color: var(--border-color) !important;
}

/* Title styling */
#news-popup #popup-title {
    color: var(--content-h-color) !important;
}

#news-popup #popup-title-link:hover #popup-title {
    color: var(--primary-color) !important;
}

/* Close button */
#news-popup #popup-close {
    color: var(--text-muted) !important;
    transition: color 0.2s ease;
}
#news-popup #popup-close:hover {
    color: var(--text-color) !important;
}

/* Next post button */
#news-popup #popup-next-post {
    background-color: var(--primary-color) !important;
    color: #111 !important;
    border: none;
}
#news-popup #popup-next-post:hover {
    filter: brightness(1.1);
}

/* Prose content inside popup */
#news-popup #popup-content.prose {
    background-color: var(--surface-color) !important;
    color: var(--content-p-color) !important;
}

#news-popup #popup-content.prose * {
    color: var(--content-p-color) !important;
}

#news-popup #popup-content.prose h1,
#news-popup #popup-content.prose h2,
#news-popup #popup-content.prose h3,
#news-popup #popup-content.prose h4,
#news-popup #popup-content.prose h5,
#news-popup #popup-content.prose h6 {
    color: var(--content-h-color) !important;
}
#news-popup #popup-content.prose a {
    color: var(--primary-color) !important;
}
#news-popup #popup-content.prose strong {
    color: var(--text-color) !important;
}
#news-popup #popup-content.prose code {
    color: var(--text-color) !important;
    background-color: #2a2a2a !important;
    border-radius: 4px;
    padding: 2px 4px;
}
#news-popup #popup-content.prose blockquote {
    color: var(--text-muted) !important;
    border-left-color: var(--border-color) !important;
}