/**
 * SKIN_CONTENT.CSS - PHIÊN BẢN NÂNG CẤP & TỐI ƯU HÓA
 * Tác giả: angless (nâng cấp bởi Gemini)
 * Ngày: 12/07/2025
 *
 * --- CÁC CẢI TIẾN CHÍNH ---
 * - Sử dụng biến CSS để đồng bộ với file stylesheet chính.
 * - Thay thế class '.cke_show_borders' cũ của CKEditor bằng class chung.
 * - Hiện đại hóa cách hiển thị icon cho tiêu đề bằng pseudo-element ::before.
 * - Thiết kế lại bảng (table) để dễ đọc và chuyên nghiệp hơn.
 * - Loại bỏ các quy tắc CSS không hợp lệ hoặc thừa.
 */

/* --- CÀI ĐẶT BIẾN VÀ FONT CHỮ --- */
:root {
    --font-main: Tahoma, sans-serif;
    --color-text-body: #4f4a45;      /* Màu chữ xám-nâu, dịu mắt */
    --color-text-heading: #5a3e2b;   /* Màu tiêu đề nâu đậm */
    --color-links: #a1662f;          /* Màu link (đồng) */
    --color-border: #e0d9d1;         /* Màu viền nhạt */
    --background-content: #FBF9FA;
}

/* --- KHUNG NỘI DUNG BÀI VIẾT CHUNG --- */
.article-content {
    box-sizing: border-box;
    max-width: 640px; /* << SỬA LẠI THÀNH DÒNG NÀY */
    margin: 30px 0; /* << SỬA LẠI THÀNH DÒNG NÀY */
    border: 1px solid var(--color-border);
    padding: 25px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: var(--color-text-body);
    background: url(../images/background_content.png) center top no-repeat var(--background-content);
    font-family: var(--font-main);
    font-size: 15px; /* Tăng nhẹ cỡ chữ mặc định */
    line-height: 1.7; /* Giãn dòng để dễ đọc hơn */
}

/* --- ĐỊNH DẠNG ĐOẠN VĂN BẢN (THẺ <p>) --- */
.article-content p {
    margin: 0 0 1em 0; /* Tạo khoảng cách 1 dòng giữa các đoạn văn */
    text-align: justify; /* Căn đều 2 bên cho đẹp mắt */
}

/* --- ĐỊNH DẠNG CÁC CẤP TIÊU ĐỀ (h2, h4) --- */
.article-content h2,
.article-content h4 {
    position: relative;
    padding-left: 28px; /* Thụt vào để có chỗ cho icon */
    font-weight: bold;
    line-height: 1.5;
    margin: 25px 0 15px 0;
    color: var(--color-text-heading);
}

.article-content h2::before,
.article-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-position: center;
    background-repeat: no-repeat;
}

/* Tiêu đề chính của mục (VD: "Nội Dung Thám Hiểm") */
.article-content h2 {
    font-size: 18px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}
.article-content h2::before {
    width: 20px;
    height: 20px;
    background-image: url(../images/content_main_icon_1.png);
}

/* Tiêu đề phụ hoặc dòng nhấn mạnh (VD: "Săn Boss Hoàng Kim") */
.article-content h4 {
    font-size: 16px;
}
.article-content h4::before {
    width: 16px;
    height: 16px;
    background-image: url(../images/content_main_icon_b.png);
}

/* --- ĐỊNH DẠNG DANH SÁCH (THẺ <ul>, <li>) --- */
.article-content ul {
    list-style: none; /* Bỏ dấu chấm tròn mặc định */
    padding-left: 28px;
    margin: 20px 0;
}

.article-content li {
    position: relative;
    margin-bottom: 10px;
}

.article-content li::before {
    content: '►'; /* Thay dấu chấm bằng ký tự mũi tên */
    position: absolute;
    left: -28px;
    top: 0;
    color: var(--color-links);
    font-size: 14px;
}

/* --- ĐỊNH DẠNG CÁC THÀNH PHẦN KHÁC --- */
.article-content a {
    color: var(--color-links);
    text-decoration: none;
    font-weight: bold;
}
.article-content a:hover {
    text-decoration: underline;
}

.article-content strong {
    color: var(--color-text-heading);
}

/* Thiết kế lại bảng (table) */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}
.article-content th,
.article-content td {
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    text-align: center;
}
.article-content th {
    background-color: #f2eee9;
    font-weight: bold;
}
.article-content tbody tr:nth-child(odd) {
    background-color: #fbf9f7;
}