/**
 * TechHub Code Syntax, TOC & Single Reading Experience Stylesheet
 * 
 * Quản lý giao diện:
 * 1. Code Blocks (Mac window dots, Copy button)
 * 2. Thanh tiến trình đọc bài (Reading Progress)
 * 3. Bố cục Header 2 cột bài viết (Tiêu đề + Meta bên trái | Ảnh 16:9 bên phải)
 * 4. Mục lục tự động (Floating Table of Contents) cao cấp & Scrollspy
 * 5. Điều hướng bài viết 2 cột (Previous / Next Post Card Deck)
 * 6. Kiểu dáng chi tiết nội dung (Heading trang trí, Bảng dữ liệu Table, Trích dẫn Quote, v.v.)
 */

/* ==========================================================================
   1. THANH TIẾN TRÌNH ĐỌC BÀI (TOP READING PROGRESS BAR)
   ========================================================================== */
#th-reading-progress,
.th-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    z-index: 99999;
    transition: width 0.1s ease;
}

/* ==========================================================================
   2. KHUNG CODE BLOCK DEV PRO (MAC WINDOW DOTS & COPY BUTTON)
   ========================================================================== */
.wp-block-code,
pre.wp-block-code {
    position: relative;
    background: #0f172a !important;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 2.75rem 1.25rem 1.25rem 1.25rem !important;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 1.75rem 0;
}

.wp-block-code::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #10b981;
}

.th-code-copy-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--wp--preset--font-family--sans);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.th-code-copy-btn:hover {
    background: #334155;
    color: #f8fafc;
    border-color: #475569;
}

.th-code-copy-btn.is-copied {
    background: #065f46;
    color: #6ee7b7;
    border-color: #059669;
}

.wp-block-code code {
    font-family: var(--wp--preset--font-family--mono) !important;
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    color: #f8fafc !important;
    background: transparent !important;
    padding: 0 !important;
}

/* ==========================================================================
   3. BREADCRUMBS NAVIGATION (ĐIỀU HƯỚNG VỤN BÁNH MÌ)
   ========================================================================== */
.th-breadcrumbs {
    font-size: 0.825rem;
    margin-bottom: 0.75rem;
}

.th-breadcrumb-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--wp--preset--color--text-muted);
}

.th-breadcrumb-item a {
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.th-breadcrumb-item a:hover {
    color: var(--wp--preset--color--blue-electric);
}

.th-breadcrumb-sep {
    color: var(--wp--preset--color--border-light);
    font-size: 0.75rem;
    user-select: none;
}

.th-breadcrumb-item.current {
    color: var(--wp--preset--color--navy-primary);
    font-weight: 600;
}

/* ==========================================================================
   4. POST HEADER 2 CỘT (TIÊU ĐỀ + META BÊN TRÁI | ẢNH 16:9 BÊN PHẢI)
   ========================================================================== */
.th-single-hero-header {
    margin-bottom: 2.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--wp--preset--color--border-light);
}

.th-single-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 900px) {
    .th-single-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.th-single-hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.th-single-h1-title,
.th-single-hero-left h1 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--wp--preset--color--navy-primary) !important;
    margin: 0.25rem 0 0.5rem 0 !important;
    letter-spacing: -0.02em;
}

.th-single-meta-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--wp--preset--color--text-muted);
    margin-top: 0.5rem;
}

.th-single-author-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--wp--preset--color--navy-primary);
}

.th-single-author-item img {
    border-radius: 50%;
}

.th-single-meta-sep {
    color: var(--wp--preset--color--border-light);
}

.th-single-date-item,
.th-single-read-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.th-single-hero-right {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(11, 19, 43, 0.08);
    border: 1px solid var(--wp--preset--color--border-light);
}

.th-single-hero-right figure,
.th-single-hero-right .wp-block-post-featured-image {
    margin: 0 !important;
    line-height: 0;
}

.th-single-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}

/* ==========================================================================
   5. BỐ CỤC 2 CỘT NỘI DUNG (ARTICLE BODY + STICKY SIDEBAR TOC)
   ========================================================================== */
.th-single-main {
    overflow: visible !important;
}

.th-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: stretch !important;
    position: relative;
    overflow: visible !important;
}

@media (max-width: 1080px) {
    .th-single-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (max-width: 960px) {
    .th-single-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. MỤC LỤC HƯỚNG DẪN CAO CẤP (REDESIGNED TOC & SCROLLSPY)
   ========================================================================== */
.th-tutorial-sidebar {
    height: 100%;
    position: relative;
    overflow: visible !important;
}

@media (max-width: 960px) {
    .th-tutorial-sidebar {
        height: auto;
        order: 2;
        margin-top: 2rem;
    }
}

.th-sidebar-sticky-inner {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

@media (max-width: 960px) {
    .th-sidebar-sticky-inner {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

.th-toc-container {
    background: #ffffff;
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 4px 20px -2px rgba(11, 19, 43, 0.04);
}

.th-toc-container::-webkit-scrollbar {
    width: 4px;
}

.th-toc-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.th-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
}

.th-toc-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-toc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--wp--preset--color--blue-electric);
    border-radius: 6px;
    font-size: 0.85rem;
}

.th-toc-title {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--navy-primary);
}

.th-toc-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--wp--preset--color--blue-electric);
    background: rgba(37, 99, 235, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

/* Thanh Tiến Độ Đọc Nhỏ Dưới Header TOC */
.th-toc-progress-track {
    height: 2px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.th-toc-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.15s ease;
}

/* Danh Sách Mục Lục */
.th-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 2px solid #e2e8f0;
    padding-left: 0.65rem !important;
}

.th-toc-item {
    font-size: 0.825rem;
    line-height: 1.45;
    position: relative;
}

.th-toc-item.level-h3 {
    padding-left: 0.75rem;
    font-size: 0.785rem;
}

.th-toc-item.level-h3::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-size: 0.75rem;
}

.th-toc-link {
    color: var(--wp--preset--color--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    transition: all 0.18s ease;
    word-break: break-word;
}

.th-toc-link:hover {
    color: var(--wp--preset--color--blue-electric);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(3px);
}

.th-toc-link.is-active {
    color: var(--wp--preset--color--blue-electric) !important;
    font-weight: 700 !important;
    background: rgba(37, 99, 235, 0.08) !important;
    transform: translateX(3px);
}

/* Sidebar CTA Card */
.th-sidebar-cta-card {
    background: var(--wp--preset--color--surface-light);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.th-sidebar-cta-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.th-sidebar-cta-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wp--preset--color--navy-primary);
    margin: 0 0 0.4rem 0;
}

.th-sidebar-cta-desc {
    font-size: 0.8rem;
    color: var(--wp--preset--color--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.th-sidebar-cta-btn {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    background: var(--wp--preset--color--blue-electric);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.th-sidebar-cta-btn:hover {
    background: var(--wp--preset--color--blue-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   7. ĐIỀU HƯỚNG BÀI VIẾT 2 CỘT (PREVIOUS / NEXT POST NAVIGATION)
   ========================================================================== */
.th-post-nav-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 680px) {
    .th-post-nav-2col {
        grid-template-columns: 1fr;
    }
}

.th-post-nav-card {
    background: var(--wp--preset--color--surface-light);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: 85px;
}

.th-post-nav-card:hover:not(.is-disabled) {
    transform: translateY(-3px);
    border-color: var(--wp--preset--color--blue-electric);
    box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.08);
    background: #ffffff;
}

.th-post-nav-card.is-disabled {
    opacity: 0.6;
    background: transparent;
    border-style: dashed;
}

.th-post-nav-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.th-post-nav-sub {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--blue-electric);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.th-post-nav-next .th-post-nav-sub {
    justify-content: flex-end;
}

.th-post-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wp--preset--color--navy-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.th-post-nav-next .th-post-nav-title {
    text-align: right;
}

.th-post-nav-blank {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--wp--preset--color--text-muted);
}

/* ==========================================================================
   8. STYLE NỘI DUNG BÀI VIẾT CAO CẤP (HEADINGS, TABLES, QUOTES, LISTS)
   ========================================================================== */
.th-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--wp--preset--color--text-main);
}

/* Headings với vạch trang trí điểm nhấn */
.th-article-body h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
    font-weight: 800 !important;
    color: var(--wp--preset--color--navy-primary) !important;
    margin-top: 2.75rem !important;
    margin-bottom: 1.15rem !important;
    line-height: 1.3 !important;
    position: relative;
    padding-left: 1.15rem;
    letter-spacing: -0.01em;
}

.th-article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: linear-gradient(180deg, var(--wp--preset--color--blue-electric), var(--wp--preset--color--purple-ai));
    border-radius: 4px;
}

.th-article-body h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--navy-primary) !important;
    margin-top: 2rem !important;
    margin-bottom: 0.85rem !important;
    line-height: 1.35 !important;
}

.th-article-body h4 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--blue-electric) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Table Bảng Dữ Liệu Hiện Đại (Chống tràn ngang trên di động) */
.th-article-body .wp-block-table {
    overflow-x: auto !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--wp--preset--color--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.th-article-body .wp-block-table table,
.th-article-body table {
    width: 100% !important;
    min-width: 500px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: none;
}

.th-article-body table thead,
.th-article-body table tr:first-child th {
    background: var(--wp--preset--color--surface-light);
    color: var(--wp--preset--color--navy-primary);
    font-weight: 700;
    font-size: 0.825rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--wp--preset--color--border-light);
}

.th-article-body table th,
.th-article-body table td {
    padding: 0.95rem 1.25rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--wp--preset--color--border-light);
    font-size: 0.925rem;
    line-height: 1.5;
}

.th-article-body table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.6);
}

.th-article-body table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.th-article-body table tr:last-child td {
    border-bottom: none;
}

/* Blockquote & Trích Dẫn */
.th-article-body blockquote,
.th-article-body .wp-block-quote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    background: var(--wp--preset--color--surface-light);
    border-left: 4px solid var(--wp--preset--color--blue-electric);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--wp--preset--color--navy-primary);
}

.th-article-body blockquote p {
    margin: 0;
    font-size: 1.025rem;
    line-height: 1.7;
}

/* Lists */
.th-article-body ul,
.th-article-body ol {
    padding-left: 1.5rem;
    margin: 1.25rem 0;
    line-height: 1.8;
}

.th-article-body li {
    margin-bottom: 0.4rem;
}

/* Images & Figures */
.th-article-body figure img,
.th-article-body img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin: 1.5rem 0;
}

.th-article-body figcaption {
    text-align: center;
    font-size: 0.825rem;
    color: var(--wp--preset--color--text-muted);
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ==========================================================================
   9. DARK MODE OVERRIDES
   ========================================================================== */
html.dark-mode .th-toc-container {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

html.dark-mode .th-toc-title {
    color: #f8fafc;
}

html.dark-mode .th-toc-progress-track {
    background: #1e293b;
}

html.dark-mode .th-toc-list {
    border-left-color: #1e293b;
}

html.dark-mode .th-toc-link {
    color: #94a3b8;
}

html.dark-mode .th-toc-link:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

html.dark-mode .th-toc-link.is-active {
    color: #60a5fa !important;
    background: #1e293b !important;
}

html.dark-mode .th-sidebar-cta-card {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark-mode .th-sidebar-cta-title {
    color: #f8fafc;
}

html.dark-mode .th-post-nav-card {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark-mode .th-post-nav-card:hover:not(.is-disabled) {
    background: #1e293b;
    border-color: #3b82f6;
}

html.dark-mode .th-post-nav-title {
    color: #f8fafc;
}

html.dark-mode .th-single-hero-header {
    border-bottom-color: #1e293b;
}

html.dark-mode .th-single-h1-title {
    color: #f8fafc !important;
}

html.dark-mode .th-single-hero-right {
    border-color: #1e293b;
}

html.dark-mode .th-article-body {
    color: #cbd5e1;
}

html.dark-mode .th-article-body h2,
html.dark-mode .th-article-body h3 {
    color: #f8fafc !important;
}

html.dark-mode .th-article-body table {
    border-color: #1e293b;
}

html.dark-mode .th-article-body table thead,
html.dark-mode .th-article-body table tr:first-child th {
    background: #1e293b;
    color: #f8fafc;
    border-bottom-color: #334155;
}

html.dark-mode .th-article-body table td,
html.dark-mode .th-article-body table th {
    border-bottom-color: #1e293b;
    color: #cbd5e1;
}

html.dark-mode .th-article-body table tbody tr:nth-child(even) {
    background: #0f172a;
}

html.dark-mode .th-article-body table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

html.dark-mode .th-article-body blockquote,
html.dark-mode .th-article-body .wp-block-quote {
    background: #0f172a;
    border-left-color: #3b82f6;
    color: #e2e8f0;
}

/* ==========================================================================
   10. MỤC LỤC DI ĐỘNG ĐẦU BÀI VIẾT (MOBILE IN-CONTENT TOC ACCORDION)
   ========================================================================== */
.th-mobile-toc-accordion {
    display: none;
    background: var(--wp--preset--color--surface-light, #f8fafc);
    border: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    border-radius: 14px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 960px) {
    .th-mobile-toc-accordion {
        display: block;
    }
}

.th-mobile-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--wp--preset--color--navy-primary, #0b132b);
    background: #ffffff;
    transition: background 0.2s ease;
    list-style: none;
}

.th-mobile-toc-summary::-webkit-details-marker {
    display: none;
}

.th-mobile-toc-summary:hover {
    background: var(--wp--preset--color--blue-light, #eff6ff);
}

.th-mobile-toc-summary-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.th-mobile-toc-toggle-icon {
    font-size: 0.75rem;
    color: var(--wp--preset--color--blue-electric, #2563eb);
    transition: transform 0.25s ease;
}

.th-mobile-toc-accordion[open] .th-mobile-toc-toggle-icon {
    transform: rotate(180deg);
}

.th-mobile-toc-content {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--wp--preset--color--border-light, #e2e8f0);
    max-height: 380px;
    overflow-y: auto;
}

.th-mobile-toc-content .th-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.th-mobile-toc-content .th-toc-item.level-h3 {
    padding-left: 1.25rem;
    font-size: 0.85rem;
}

.th-mobile-toc-content .th-toc-link {
    text-decoration: none;
    color: var(--wp--preset--color--text-main, #334155);
    display: block;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.th-mobile-toc-content .th-toc-link:hover {
    color: var(--wp--preset--color--blue-electric, #2563eb);
    background: rgba(37, 99, 235, 0.08);
}

html.dark-mode .th-mobile-toc-accordion {
    background: #0f172a;
    border-color: #1e293b;
}

html.dark-mode .th-mobile-toc-summary {
    background: #1e293b;
    color: #f8fafc;
}

html.dark-mode .th-mobile-toc-content {
    border-top-color: #334155;
}

html.dark-mode .th-mobile-toc-content .th-toc-link {
    color: #cbd5e1;
}

/* ==========================================================================
   11. RESPONSIVE CHO TRANG CÔNG CỤ (TOOL), DANH BẠ VÀ GAME
   ========================================================================== */
.th-tool-pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .th-tool-pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.th-tool-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .th-tool-archive-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.th-game-details-layout {
    margin-top: var(--wp--preset--spacing--xl, 2.5rem);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .th-game-details-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   12. THANH CHIA SẺ MẠNG XÃ HỘI (SOCIAL SHARE BAR)
   ========================================================================== */
.th-social-share-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.25rem 0;
    margin: 2rem 0;
    border-top: 1px solid var(--wp--preset--color--border-light);
    border-bottom: 1px solid var(--wp--preset--color--border-light);
}

.th-social-share-label {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wp--preset--color--text-muted);
}

.th-social-share-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.th-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--wp--preset--color--border-light);
    background: var(--wp--preset--color--surface-light);
    color: var(--wp--preset--color--navy-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.th-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    border-color: var(--wp--preset--color--blue-electric);
    color: var(--wp--preset--color--blue-electric);
}

.th-social-btn.facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
    background: #eff6ff;
}

.th-social-btn.linkedin:hover {
    color: #0a66c2;
    border-color: #0a66c2;
    background: #eff6ff;
}

.th-social-btn.twitter:hover {
    color: #0f1419;
    border-color: #0f1419;
    background: #f1f5f9;
}

html.dark-mode .th-social-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

