/*
Theme Name: ChemPro Engine
Version: 1.0.0
*/

/* 1. Tối ưu Typo và Breadcrumb */
body {
    font-family: 'Be Vietnam Pro', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

table, .font-serif, .prose {
    font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, .font-bold {
    font-weight: 700 !important;
}

/* Ẩn Breadcrumb (Tùy chọn) */
.breadcrumb, .entry-breadcrumb, .nav-breadcrumb {
    display: none !important;
}

/* 2. Thiết lập chuẩn hiển thị chỉ số dưới (Đã gộp) */
sub {
    font-size: 0.75em;
    vertical-align: baseline;
    position: relative;
    bottom: -0.25em;
    font-weight: 700;
}

/* 3. Kỹ thuật ép layout 1280px (Giải pháp cho vấn đề của bạn) */
/* Áp dụng cho các container của theme nếu nó bị bóp méo */
.site-main-wrapper, 
.container, 
.entry-content {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* 4. Kỹ thuật Tooltip thuần CSS */
.chem-tooltip {
    position: relative;
    border-bottom: 2px dashed #2563eb;
    cursor: help;
    color: #2563eb;
    font-weight: 600;
    display: inline-block;
}

.chem-tooltip .tooltip-content {
    visibility: hidden;
    width: 280px;
    background-color: #0f172a;
    color: #ffffff;
    text-align: left;
    border-radius: 0.75rem;
    padding: 1rem;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.chem-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.chem-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* 5. Style cho phân trang */
.pagination-chempro {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.pagination-chempro .nav-links { display: flex; gap: 0.5rem; align-items: center; }
.pagination-chempro .page-numbers {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
    background: white;
}
.pagination-chempro .page-numbers:hover { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.pagination-chempro .page-numbers.current { background: #2563eb; border-color: #2563eb; color: white; }
