/* market-trends.css — Betting Market Trends Charts */

/* ========================================
   GLOBAL OVERRIDES
   Reset front.css globals that break this page
   ======================================== */
.market-trends-page button {
    background-color: transparent !important;
    margin-bottom: 0 !important;
}
.market-trends-page button:hover {
    background-color: transparent !important;
}

/* ========================================
   PAGE LAYOUT
   ======================================== */
.market-trends-page {
    padding: 15px 20px;
}

/* ========================================
   CONTROLS ROW (Sport tabs)
   ======================================== */
.mt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.mt-controls .btn-group .btn {
    min-width: 70px;
    font-weight: 600;
    font-size: 14px;
    height: 38px;
}

/* ========================================
   FILTER CONTROLS
   ======================================== */
.mt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
}

.mt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mt-filter-group label {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-filter-group select {
    font-size: 13px;
    padding: 5px 10px;
    min-width: 140px;
    height: 34px;
}

/* Range slider styling */
.mt-filter-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    margin-top: 4px;
}

.mt-filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #07250e;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.mt-filter-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #07250e;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Slider value highlights */
.mt-filter-group label span {
    font-weight: 900;
    color: #07250e;
}

/* ========================================
   CHARTS
   ======================================== */
.mt-charts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mt-chart-wrap {
    position: relative;
    width: 100%;
    height: 350px;
}

.mt-chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.mt-chart-wrap canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Loading overlay */
.mt-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

/* No data message */
.mt-no-data {
    color: #888;
    padding: 20px;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .market-trends-page {
        padding: 10px 8px;
    }

    .mt-filters {
        flex-direction: column;
        gap: 12px;
    }

    .mt-filter-group {
        width: 100%;
    }

    .mt-filter-group input[type="range"] {
        width: 100%;
    }

    .mt-filter-group select {
        width: 100%;
    }

    .mt-chart-wrap {
        height: 280px;
    }

    .mt-chart-wrap canvas {
        height: 240px !important;
    }

    .mt-chart-title {
        font-size: 13px;
    }

    .mt-controls .btn-group .btn {
        min-width: 55px;
        font-size: 12px;
        padding: 6px 10px;
    }
}
