/* BeyondThePrem - shared preview/review post utility classes
 * Goal: remove repeated inline style="" attributes from post HTML.
 * Every class here is additive - nothing overrides JNews core layout.
 * Inline styles in existing posts still win because they're applied per element.
 */

/* -------- White content box used across preview/review posts -------- */
.btp-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.btp-card--no-padding { padding: 0; }
.btp-card--blue   { border-left: 4px solid #1a73e8; }
.btp-card--pink   { border-left: 4px solid #e84393; }
.btp-card--purple { border-left: 4px solid #667eea; }
.btp-card--yellow { border-left: 4px solid #ffc107; }
.btp-card--red    { border-left: 4px solid #dc2626; }

/* -------- Gradient card headers inside .btp-card -------- */
.btp-card-header {
    color: #fff;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}
/* Variant that sits flush at the top of a no-padding card */
.btp-card-header--flush {
    margin: 0;
    border-radius: 10px 10px 0 0;
}
.btp-card-header--blue   { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); }
.btp-card-header--pink   { background: linear-gradient(135deg, #e84393 0%, #c0185e 100%); }
.btp-card-header--wsl    { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); }
.btp-card-header--yellow { background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%); }
.btp-card-header--purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.btp-card-header--dark   { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%); }

/* -------- Info "banner" box (the blue/pink wide hero for fixture details) -------- */
.btp-banner {
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btp-banner--blue   { background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%); }
.btp-banner--pink   { background: linear-gradient(135deg, #e84393 0%, #c0185e 100%); }
.btp-banner--wsl    { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); }
.btp-banner--purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

/* Force coloured-banner text to stay readable - overrides JNews td/strong rules */
.btp-banner--blue td,
.btp-banner--blue th,
.btp-banner--blue strong,
.btp-banner--blue a,
.btp-banner--purple td,
.btp-banner--purple th,
.btp-banner--purple strong,
.btp-banner--purple a {
    color: #fff !important;
}
.btp-banner code {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Keep hover legible inside coloured banners - JNews's default row-hover is too light */
.btp-banner--blue tr:hover,
.btp-banner--blue tbody tr:hover,
.btp-banner--blue td:hover,
.btp-banner--purple tr:hover,
.btp-banner--purple tbody tr:hover,
.btp-banner--purple td:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
}

/* -------- Callouts (alerts, tips, info notes) -------- */
.btp-callout {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 13px;
    color: #444;
}
.btp-callout--amber  { background: #fff7ed; border: 1px dashed #f59e0b; }
.btp-callout--red    { background: #fef2f2; border: 1px dashed #dc2626; }
.btp-callout--green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.btp-callout--purple { background: rgba(124, 58, 237, 0.08); border-left: 4px solid #7c3aed; border-radius: 0 8px 8px 0; }

.btp-callout-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0 0 6px;
}
.btp-callout-label--amber  { color: #b45309; }
.btp-callout-label--red    { color: #dc2626; }
.btp-callout-label--purple { color: #7c3aed; }

/* -------- 3-column stat grid used under banners -------- */
.btp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.btp-stat-card {
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}
.btp-stat-card p { margin: 0; }
.btp-stat-card .btp-stat-label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 4px;
    color: #4338ca;
}
.btp-stat-card .btp-stat-value {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #4338ca;
}
.btp-stat-card .btp-stat-hint {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}
.btp-stat-card--green .btp-stat-value { color: #16a34a; }
.btp-stat-card--red   .btp-stat-value { color: #dc2626; }
.btp-stat-card--amber .btp-stat-value { color: #b45309; }

/* -------- Tabs (used in preview templates) -------- */
.btp-review-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 8px;
}
.btp-review-tabs button {
    background: #f1f5f9;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.btp-review-tabs button.active {
    background: #1a1a2e;
    color: #fff;
}
.btp-review-tab { display: none; }
.btp-review-tab.active { display: block; }

/* -------- Mobile -------- */
@media (max-width: 768px) {
    .btp-review-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .btp-review-tabs button {
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    .btp-stat-grid {
        grid-template-columns: 1fr;
    }
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}
