/* ===== Mobile responsive CSS for betting dashboard ===== */

/* --- Desktop: hide mobile-only elements --- */
.mobile-only {
    display: none;
}

/* --- Tablet (<=768px) --- */
@media (max-width: 768px) {
    /* Show mobile-only elements */
    .mobile-only {
        display: block;
    }

    /* Top nav: horizontal scroll for league chips */
    .nav-bar-wrap {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    .nav-bar-wrap::-webkit-scrollbar {
        height: 3px;
    }
    .nav-bar-wrap::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 3px;
    }

    /* Detail panel: stat boxes stack vertically */
    .stat-box {
        padding: 10px !important;
    }

    /* Trend chart: vertical stack instead of flex row */
    .trend-flex {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Scroll anchor offset so panel isn't hidden under top of viewport */
    #detail-anchor {
        scroll-margin-top: 8px;
    }
    #list-anchor {
        scroll-margin-top: 8px;
    }
}

/* --- Phone (<=576px) --- */
@media (max-width: 576px) {
    /* Tighter page padding */
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Smaller title */
    .dash-title {
        font-size: 1.2rem !important;
        margin-top: 8px !important;
    }
    .dash-subtitle {
        font-size: .72rem !important;
        margin-bottom: 8px !important;
    }

    /* Match cards: compact */
    .match-card {
        padding: 8px 10px !important;
        margin-bottom: 4px !important;
    }
    .match-card .team-line {
        font-size: .9rem !important;
    }

    /* Left list: no max-height on mobile, scrolls naturally */
    .match-list-scroll {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* Detail panel */
    .detail-panel {
        padding: 12px !important;
        min-height: auto !important;
        margin-top: 12px;
    }

    /* Prob bars: slightly narrower labels */
    .prob-bar {
        height: 14px !important;
    }

    /* Stat box inner text */
    .stat-box {
        padding: 8px !important;
        font-size: .82rem;
    }

    /* ELO bar container */
    .elo-bar-wrap {
        width: 70% !important;
    }

    /* Footer compact */
    .footer-wrap {
        padding: 10px !important;
        font-size: .72rem;
    }
    .footer-wrap .footer-chips {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Tab buttons */
    .tab-btn {
        padding: 6px 12px !important;
        font-size: .8rem !important;
    }
    .lg-chip {
        padding: 2px 8px !important;
        font-size: .68rem !important;
        margin-right: 3px !important;
    }

    /* Trend chart dots smaller on mobile */
    .trend-flex {
        flex-direction: column !important;
        gap: 6px !important;
    }
}
