/*
 * prediction-page.css
 * Betopick — Match Prediction Page
 * -----------------------------------------------------------
 * Uses the CSS variable system defined in style.css.
 * All class names are prefixed `.bp-` to avoid collisions.
 * Zero inline styles in PHP templates; everything lives here.
 */

/* ── 0. UTILITY ─────────────────────────────────────────── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── 1. BREADCRUMB ──────────────────────────────────────── */
.bp-breadcrumb {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    color: var(--switch-fade_txt_White);
}
.bp-breadcrumb ol {
    display: inline-flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.bp-breadcrumb a {
    color: var(--switch-bleColor);
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.bp-breadcrumb a:hover { opacity: 0.75; text-decoration: underline; }
.bp-bc-sep { color: var(--switch-fade_txt_White); }

/* ── 2. PAGE WRAPPER ────────────────────────────────────── */
.bp-prediction-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0 2rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ── 3. HERO CARD ───────────────────────────────────────── */
.bp-hero-card {
    background: var(--switch-darkBGShaded);
    border: 1px solid var(--switch-darkBorderlight);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.bp-hero-card:hover {
    /*box-shadow: 0 4px 24px rgba(0,0,0,0.1);*/
}

/* League + date bar */
.bp-hero-meta {
    background: var(--switch-darkBGFade);
    border-bottom: 1px solid var(--switch-borderlight);
    padding: 0.6rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}
.bp-league-name {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--switch-bleColor);
    margin: 0;
}
.bp-match-date {
    font-size: 0.78rem;
    color: var(--switch-fade_txt_White);
}
.bp-match-time { font-weight: 500; }

/* Teams row */
.bp-teams-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
}

.bp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.bp-team--home { text-align: center; }
.bp-team--away { text-align: center; }

.bp-team-badge {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--switch-darkBGFade);
    border: 1px solid var(--switch-borderlight);
    border-radius: 50%;
    padding: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.bp-team-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bp-team-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--switch-textWhite);
    text-align: center;
    max-width: 120px;
    line-height: 1.2;
}

/* Score block */
.bp-score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 72px;
}
.bp-score {
    /*font-family: 'Syne', sans-serif;*/
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--switch-textWhite);
    letter-spacing: -0.03em;
    line-height: 1;
}
/*.bp-score--live { color: #e03434; }*/
.bp-score-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--switch-fade_txt_White);
}

/* Odds row */
.bp-odds-row {
    display: flex;
    border-top: 1px solid var(--switch-borderlight);
}
.bp-odd-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 0.5rem;
    gap: 0.15rem;
    border-right: 1px solid var(--switch-borderlight);
    background: var(--switch-darkBGFade);
    transition: background 0.15s ease;
}
.bp-odd-pill:last-child { border-right: none; }
.bp-odd-pill:hover { background: var(--switch-gradientyblue); }
.bp-odd-label {
    font-size: 0.68rem;
    color: var(--switch-fade_txt_White);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bp-odd-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--switch-textWhite);
}

/* ── 4. AD SLOT ─────────────────────────────────────────── */
.bp-ad-slot {
    width: 100%;
    min-height: 60px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

/* ── 5. PREDICTION PANEL ────────────────────────────────── */
.bp-prediction-panel {
    background: var(--switch-darkBGShaded);
    border: 1px solid var(--switch-darkBorderlight);
    border-radius: 14px;
    overflow: hidden;
}
.bp-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--switch-borderlight);
    background: var(--switch-darkBGFade);
}
.bp-panel-title {
    /*font-family: 'Syne', sans-serif;*/
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--switch-textWhite);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.bp-prediction-value {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── 6. BUTTONS ─────────────────────────────────────────── */
.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.bp-btn--primary {
    background: var(--switch-primary-button);
    color: var(--switch-primary-button-text-color);
}
.bp-btn--primary:hover {
    filter: brightness(1.12);
    color: var(--switch-primary-button-text-color);
}
.bp-btn--accent {
    background: var(--switch-betopick);
    color: var(--switch-textWhite);
}
.bp-btn--accent:hover { filter: brightness(1.12); }
.bp-btn--outline {
    background: transparent;
    border-color: var(--switch-bleColor);
    color: var(--switch-bleColor);
}
.bp-btn--outline:hover { background: var(--switch-bleColor); color: var(--switch-textWhite); }
.bp-btn--ghost {
    background: transparent;
    border-color: var(--switch-borderlight);
    color: var(--switch-textWhite);
}
.bp-btn--ghost:hover { background: var(--switch-darkBGFade); }

/* Badges */
.bp-pick-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--switch-greenBG);
    color: var(--switch-textWhite);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.bp-confidence-tag {
    font-size: 0.8rem;
    color: var(--switch-fade_txt_White);
    background: var(--switch-darkBGFade);
    border: 1px solid var(--switch-borderlight);
    border-radius: 20px;
    padding: 0.25rem 0.7rem;
}

/* ── 7. POSTER ──────────────────────────────────────────── */
.bp-poster-figure {
    margin: 0;
    display: flex;
    justify-content: center;
}
.bp-poster-img {
    max-width: 340px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid var(--switch-borderlight);
}

/* ── 8. SECTION TITLE ───────────────────────────────────── */
.bp-section-title {
    /*font-family: 'Syne', sans-serif;*/
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--switch-textWhite);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--switch-bleColor);
    display: inline-block;
}

/* ── 9. EXPERT TIPS ─────────────────────────────────────── */
.bp-tips-section { }
.bp-tips-section--empty { text-align: center; padding: 1rem 0; }
.bp-no-tips { color: var(--switch-fade_txt_White); font-size: 0.9rem; }
.bp-no-tips a { color: var(--switch-bleColor); }

.bp-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem;
}

.bp-tip-card {
    background: var(--switch-darkBGShaded);
    border: 1px solid var(--switch-darkBorderlight);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bp-tip-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.bp-tip-card--won  { border-left: 4px solid #3d9f54; }
.bp-tip-card--lost { border-left: 4px solid #e03434; }

/* Card header */
.bp-tip-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--switch-darkBGFade);
    border-bottom: 1px solid var(--switch-borderlight);
}
.bp-expert-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--switch-betopick);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bp-expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-expert-initial {
    color: var(--switch-textWhite);
    font-weight: 700;
    font-size: 1rem;
}
.bp-expert-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}
.bp-expert-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--switch-textWhite);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-tip-date {
    font-size: 0.72rem;
    color: var(--switch-fade_txt_White);
}
.bp-vip-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    background: var(--switch-hot);
    color: var(--switch-textWhite);
    border-radius: 6px;
    white-space: nowrap;
}

/* Card body */
.bp-tip-card-body {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}
.bp-tip-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
}
.bp-lock-icon { font-size: 1.5rem; }
.bp-tip-pick, .bp-tip-odds {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.bp-pick-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--switch-fade_txt_White);
}
.bp-pick-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--switch-textWhite);
}
.bp-odd-chip {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: var(--switch-darkBGFade);
    border: 1px solid var(--switch-borderlight);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--switch-bleColor);
}

/* Card footer (votes) */
.bp-tip-card-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--switch-borderlight);
    background: var(--switch-darkBGFade);
}
.bp-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--switch-borderlight);
    border-radius: 20px;
    background: transparent;
    color: var(--switch-textWhite);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bp-vote-btn:hover { background: var(--switch-darkBGShaded); }
.bp-vote-btn--used {
    opacity: 0.5;
    cursor: not-allowed;
}
.bp-vote-count { font-weight: 600; color: var(--switch-bleColor); }

/* ── 10. ANALYSIS SECTION ───────────────────────────────── */
.bp-analysis {
    background: var(--switch-darkBGShaded);
    border: 1px solid var(--switch-darkBorderlight);
    border-radius: 14px;
    padding: 1.25rem;
}
.bp-analysis-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.bp-analysis-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--switch-textWhite);
    line-height: 1.7;
}
.bp-inline-link {
    color: var(--switch-bleColor);
    text-decoration: underline;
}

/* ── 11. PREDICTION CATEGORIES ──────────────────────────── */
.bp-categories { }
.bp-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.bp-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1.5px solid var(--switch-darkBorderlight);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--switch-textWhite);
    background: var(--switch-darkBGShaded);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.bp-pill:hover, .bp-pill--active {
    background: var(--switch-bleColor);
    border-color: var(--switch-bleColor);
    color: var(--switch-textWhite);
}

/* ── 12. ERROR STATE ────────────────────────────────────── */
.bp-error {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--switch-fade_txt_White);
    font-size: 0.9rem;
}
.bp-error a { color: var(--switch-bleColor); }

/* ── 13. RESPONSIVE OVERRIDES ───────────────────────────── */
@media (max-width: 640px) {
    .bp-prediction-wrap { padding: 0 0.5rem 2rem; }
    .bp-teams-row { gap: 0.5rem; padding: 1rem 0.5rem; }
    .bp-team-badge { width: 56px; height: 56px; }
    .bp-score { font-size: 1.4rem; }
    .bp-team-name { font-size: 0.78rem; max-width: 90px; }
    .bp-tips-grid { grid-template-columns: 1fr; }
    
    .bp-breadcrumb {
     padding-top: 6rem;
    }
}

@media (max-width: 400px) {
    .bp-team-badge { width: 44px; height: 44px; }
    .bp-score { font-size: 1.2rem; }
    .bp-breadcrumb {
     padding-top: 6rem;
    }
}

/* ── 14. DARK MODE TWEAKS ───────────────────────────────── */
.theme-switch:checked ~ #page .bp-hero-card,
.theme-switch:checked ~ #page .bp-tip-card,
.theme-switch:checked ~ #page .bp-prediction-panel,
.theme-switch:checked ~ #page .bp-analysis {
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.theme-switch:checked ~ #page .bp-odd-pill:hover {
    background: rgba(103, 152, 208, 0.12);
}
