/* ═══════════════════════════════════════════════════════════
   MINORI ARTICLE — Content Styling for Posts & Pages
   Version: 1.0
   Dùng chung cho bài viết (single post) và trang tĩnh (page)
═══════════════════════════════════════════════════════════ */

/* ─── 1. HEADINGS ──────────────────────────────────────── */
/* Specificity (0,2,1) — thắng Flatsome customizer output (0,1,1) hoặc (0,0,1) */
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4 {
    color: #F75E00;
}

/* ─── 2. CALLOUT BOX — Lưu ý / Cảnh báo ─────────────────
   Dùng: <div class="art-callout">...</div>
   Màu border: đỏ | Background: hồng nhạt
──────────────────────────────────────────────────────────── */
.art-callout {
    background: #FEF0EE;
    border-left: 4px solid #D63031;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

/* Variant xanh lá — thông tin tích cực */
.art-callout--green {
    background: #EEF7F3;
    border-left-color: #27AE60;
}

/* Variant cam — tips thương hiệu */
.art-callout--orange {
    background: #FFF5F0;
    border-left-color: #F75E00;
}

/* ─── 3. TIP BOX — Thông tin / Hộp kiến thức ────────────
   Dùng:
   <div class="art-tip">
     <div class="art-tip__title">TIÊU ĐỀ HOA</div>
     <p>Nội dung...</p>
   </div>
──────────────────────────────────────────────────────────── */
.art-tip {
    background: #EEF7F3;
    border: 1px solid #B7DDD0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
}

.art-tip__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #1B5E20;
    margin: 0 0 10px;
}

.art-tip p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}

.art-tip p + p { margin-top: 8px; }

/* ─── 4. SUMMARY CARDS — Bảng tóm tắt ───────────────────
   Dùng:
   <div class="art-summary">
     <div class="art-summary__title">Tóm tắt về 3 đại dưỡng chất</div>
     <div class="art-cards">
       <div class="art-card art-card--orange">
         <span class="art-card__icon">⚡</span>
         <div class="art-card__name">Carbohydrate</div>
         <div class="art-card__sub">Nhiên liệu tốc độ cao</div>
         <div class="art-card__stat">Glycogen: kho xăng chính</div>
       </div>
       ...
     </div>
   </div>
──────────────────────────────────────────────────────────── */
.art-summary {
    margin: 24px 0;
}

.art-summary__title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #2D9C7A;
    margin: 0 0 14px;
}

.art-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.art-card {
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Top accent border by color */
.art-card--orange { border-top: 3px solid #F75E00; }
.art-card--green  { border-top: 3px solid #40B884; }
.art-card--blue   { border-top: 3px solid #4A90D9; }

.art-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    margin-bottom: 10px;
}

.art-card--orange .art-card__icon { background: #FFF0E8; }
.art-card--green  .art-card__icon { background: #E8F7EF; }
.art-card--blue   .art-card__icon { background: #E8F2FB; }

.art-card__name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.art-card--orange .art-card__name { color: #F75E00; }
.art-card--green  .art-card__name { color: #40B884; }
.art-card--blue   .art-card__name { color: #4A90D9; }

.art-card__sub {
    font-size: 12px;
    color: #888;
    padding-bottom: 10px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 8px;
}

.art-card__stat {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

/* ─── 5. NUMBERED LIST — Danh sách số ────────────────────
   Dùng:
   <ol class="art-numlist">
     <li><strong>Thịt trắng & Cá:</strong> Ức gà, cá thu...</li>
   </ol>
──────────────────────────────────────────────────────────── */
.art-numlist {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: art-num;
}

.art-numlist > li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    counter-increment: art-num;
}

.art-numlist > li::before {
    content: counter(art-num);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #F75E00;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ─── 7. QUOTE — Trích dẫn chuyên gia ────────────────────
   Dùng:
   <blockquote class="art-quote">
     <p>"Nội dung trích dẫn..."</p>
     <cite>— Tên tác giả, Chức danh
       <span class="art-quote__source">(Nguồn: ...)</span>
     </cite>
   </blockquote>
──────────────────────────────────────────────────────────── */
.art-quote {
    border-left: 4px solid #F75E00;
    background: #FAFAFA;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.art-quote p {
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 10px;
}

.art-quote cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: #444;
}

.art-quote__source {
    font-weight: 400;
    color: #888;
}

/* ─── 8. BADGES — Nhãn chữ màu inline ────────────────────
   Dùng lẻ trong bài hoặc bên trong ô bảng.
   <span class="art-badge art-badge--orange">Mono-carb</span>
   <span class="art-badge art-badge--green">Multi-carb 2:1</span>

   Variants màu:
   --orange  --green   --blue    --teal    --purple
   --gray    --olive   --navy    --red     --emerald

   Size nhỏ (dùng kèm badge thương hiệu trong bảng):
   <span class="art-badge art-badge--green art-badge--sm">Phổ biến VN</span>
──────────────────────────────────────────────────────────── */
.art-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    white-space: nowrap;
}

.art-badge--orange  { background: #FEE4D0; color: #C84900; }
.art-badge--green   { background: #D4EDDA; color: #1A7A3A; }
.art-badge--blue    { background: #D0E8FF; color: #1557A0; }
.art-badge--teal    { background: #D0EDE8; color: #1A6B5A; }
.art-badge--purple  { background: #EDE0F5; color: #6A2F8A; }
.art-badge--gray    { background: #F0F0F0; color: #555; border: 1px solid #DDD; }
.art-badge--olive   { background: #EAE4C0; color: #5A4E00; }
.art-badge--navy    { background: #D0D8F0; color: #1A2A80; }
.art-badge--red     { background: #FFE0DC; color: #C0160D; }
.art-badge--emerald { background: #D0F0E4; color: #0A6040; }

.art-badge--sm { font-size: 10px; padding: 1px 6px; }

/* ─── 9. CLASSIFICATION TABLE — Bảng phân loại ───────────
   Dùng:
   <div class="art-table">
     <div class="art-table__head">
       <span class="art-table__icon">↤</span> Tiêu đề bảng
     </div>
     <div class="art-table__wrap">
       <table>...</table>
     </div>
   </div>
──────────────────────────────────────────────────────────── */
.art-table {
    margin: 24px 0;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.art-table__head {
    background: #FFF8F5;
    border-left: 4px solid #F75E00;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.art-table__icon {
    color: #F75E00;
    font-size: 16px;
}

.art-table__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.art-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 480px;
}

.art-table thead th {
    background: #F5F5F5;
    padding: 9px 14px;
    text-align: left;
    font-weight: 700;
    color: #444;
    border-bottom: 2px solid #E0E0E0;
    font-size: 13px;
}

.art-table tbody td {
    padding: 9px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #EFEFEF;
    color: #333;
    line-height: 1.5;
    background: #fff;
}

.art-table tbody tr:last-child td { border-bottom: none; }
.art-table tbody tr:nth-child(even) td { background: #FAFAFA !important; }

/* ─── 10. COMPARE TABLE — Bảng so sánh thương hiệu ───────
   Dùng:
   <div class="art-compare">
     <div class="art-compare__head">🏆 Tiêu đề</div>
     <div class="art-compare__wrap"><table>...</table></div>
     <p class="art-compare__note">* Ghi chú...</p>
   </div>
──────────────────────────────────────────────────────────── */
.art-compare {
    margin: 24px 0;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.art-compare__head {
    background: #FFF8F5;
    border-left: 4px solid #F75E00;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}

.art-compare__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.art-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 520px;
}

.art-compare thead th {
    background: #F5F5F5;
    padding: 9px 14px;
    text-align: left;
    font-weight: 700;
    color: #444;
    border-bottom: 2px solid #E0E0E0;
    font-size: 13px;
}

.art-compare tbody td {
    padding: 9px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #EFEFEF;
    color: #333;
    line-height: 1.5;
    background: #fff;
}

.art-compare tbody tr:last-child td { border-bottom: none; }

.art-compare__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.art-price {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.art-price--mid  { background: #FEE4D0; color: #C84900; }
.art-price--high { background: #FFE0DC; color: #C0160D; }
.art-price--low  { background: #D4EDDA; color: #1A7A3A; }

.art-stars { color: #F0B429; font-size: 14px; letter-spacing: 1px; }
.art-star-e { color: #CCC; }

.art-compare__note {
    padding: 8px 14px;
    font-size: 12px;
    color: #888;
    margin: 0;
    border-top: 1px solid #EFEFEF;
    font-style: italic;
    background: #FAFAFA;
}

/* ─── 11. SIMPLE TABLE — Bảng nền header màu xanh ────────
   Dùng:
   <div class="art-table-simple">
     <div class="art-table-simple__wrap"><table>...</table></div>
   </div>
──────────────────────────────────────────────────────────── */
.art-table-simple {
    margin: 24px 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #B8CDE0;
    background: #fff;
}

.art-table-simple__wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.art-table-simple table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 400px;
}

.art-table-simple thead th {
    background: #C8DCF0;
    padding: 11px 16px;
    text-align: left;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #F75E00;
    border-bottom: 1px solid #A8C4DC;
}

.art-table-simple tbody td {
    padding: 10px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #E4EEF5;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.art-table-simple tbody tr:last-child td { border-bottom: none; }
.art-table-simple tbody td:first-child { font-weight: 600; }

/* ─── 6. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 640px) {
    .art-cards {
        grid-template-columns: 1fr;
    }

    .art-callout,
    .art-tip {
        padding: 12px 14px;
    }

    .art-quote {
        padding: 12px 14px;
    }
}
