/* =============================================
   BDHQ Article Styles v2.0
   File: bdhq-article.css
   Đặt cùng thư mục với bdhq-auto-draft.php
   ============================================= */

/* ===== Bài viết tổng thể ===== */
.bdhq-article-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: #1a1a2e;
    max-width: 800px;
}

.bdhq-article-body p {
    margin: 0 0 20px;
    color: #2d2d3a;
}

.bdhq-article-body h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 4px solid #d90012;
    line-height: 1.3;
}

.bdhq-article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 24px 0 10px;
}

.bdhq-article-body ul,
.bdhq-article-body ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.bdhq-article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.bdhq-article-body a {
    color: #d90012;
    text-decoration: none;
    font-weight: 600;
}

.bdhq-article-body a:hover {
    text-decoration: underline;
}

.bdhq-article-body strong {
    color: #111827;
    font-weight: 700;
}

/* ===== Lead paragraph ===== */
.bdhq-lead {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.75 !important;
    border-left: 3px solid #d90012;
    padding-left: 16px;
    margin-bottom: 28px !important;
}

/* ===== Match Banner (hero card) ===== */
.bdhq-match-banner {
    background: linear-gradient(135deg, #c90012 0%, #d90012 60%, #b8000f 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px 20px;
    margin: 24px 0 28px;
    box-shadow: 0 6px 24px rgba(217, 0, 18, 0.2);
}

.bdhq-match-banner-league {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdhq-league-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 2px;
}

.bdhq-match-banner-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.bdhq-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.bdhq-match-team:last-child {
    align-items: center;
}

.bdhq-match-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bdhq-match-team span {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bdhq-match-vs {
    font-size: 20px;
    font-weight: 900;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.bdhq-match-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    opacity: 0.85;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 14px;
}

.bdhq-match-banner-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== Prediction Data / Percent Bars ===== */
.bdhq-prediction-data {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin: 24px 0;
}

.bdhq-prediction-data h3 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdhq-percent-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bdhq-percent-row {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 12px;
}

.bdhq-percent-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bdhq-percent-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.bdhq-percent-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.bdhq-percent-fill.home { background: #d90012; }
.bdhq-percent-fill.draw { background: #6b7280; }
.bdhq-percent-fill.away { background: #2b4ea1; }

.bdhq-percent-val {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    text-align: right;
}

/* ===== Tip Highlight Box ===== */
.bdhq-tip-highlight {
    background: linear-gradient(135deg, #fff8f8, #fff);
    border: 2px solid #fecaca;
    border-left: 5px solid #d90012;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 24px 0;
}

.bdhq-tip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

.bdhq-tip-row:last-of-type {
    margin-bottom: 12px;
}

.bdhq-tip-row strong {
    color: #6b7280;
    font-weight: 600;
    min-width: 140px;
}

.bdhq-tip-advice {
    font-weight: 800;
    color: #d90012;
    font-size: 17px;
}

.bdhq-tip-note {
    font-size: 12px !important;
    color: #9ca3af !important;
    margin: 0 !important;
    font-style: italic;
}

/* ===== Internal Links Box ===== */
.bdhq-internal-links {
    background: #f3f5f9;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 28px 0 20px;
}

.bdhq-internal-links > p {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    margin: 0 0 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdhq-internal-links ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bdhq-internal-links li {
    margin: 0 !important;
}

.bdhq-internal-links a {
    display: block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.bdhq-internal-links a:hover {
    background: #d90012;
    color: #fff !important;
    border-color: #d90012;
}

/* ===== Match Info Box (ul list) ===== */
.match-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    list-style: none !important;
    padding-left: 20px !important;
}

.match-info-box li {
    font-size: 15px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.match-info-box li:last-child {
    border-bottom: none;
}

.match-info-box strong {
    color: #111827;
    min-width: 100px;
    display: inline-block;
}

/* ===== Prediction Box (old class compatibility) ===== */
.prediction-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.prediction-box h2 {
    font-size: 18px;
    margin: 0 0 12px;
    border-left: none;
    padding-left: 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .bdhq-article-body {
        font-size: 16px;
        line-height: 1.75;
    }

    .bdhq-article-body h2 {
        font-size: 19px;
        margin: 28px 0 12px;
    }

    .bdhq-lead {
        font-size: 16px !important;
    }

    .bdhq-match-banner {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .bdhq-match-banner-teams {
        gap: 10px;
    }

    .bdhq-match-team img {
        width: 48px;
        height: 48px;
    }

    .bdhq-match-team span {
        font-size: 13px;
    }

    .bdhq-match-vs {
        font-size: 16px;
    }

    .bdhq-percent-row {
        grid-template-columns: 100px 1fr 44px;
        gap: 8px;
    }

    .bdhq-percent-label {
        font-size: 13px;
    }

    .bdhq-internal-links ul {
        grid-template-columns: 1fr;
    }

    .bdhq-tip-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bdhq-tip-row strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .bdhq-article-body {
        font-size: 15px;
    }

    .bdhq-article-body h2 {
        font-size: 17px;
    }

    .bdhq-match-banner-teams {
        grid-template-columns: 1fr auto 1fr;
    }

    .bdhq-match-team img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .bdhq-match-team span {
        font-size: 12px;
    }
}