/* =========================================================
   PREMIER PREDICTOR PRO
   STATISTICS PAGE
   RESPONSIVE CSS - FLEXBOX VERSION
   ========================================================= */


/* =========================================================
   MAIN STATISTICS CONTAINER
   ========================================================= */

.pp-statistics {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
    color: #123b70;
}


/* =========================================================
   STATISTICS SECTIONS
   ========================================================= */

.pp-stat-section {
    width: 100%;
    margin: 0 0 45px 0;
    box-sizing: border-box;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.pp-statistics h3 {
    width: 100%;
    box-sizing: border-box;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;

    margin: 0 0 25px 0;
    padding: 0 0 12px 0;

    color: #123b70;

    border-bottom: 3px solid #123b70;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}


/* =========================================================
   STAT CARD CONTAINER
   ========================================================= */

.pp-stat-grid {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-wrap: wrap;

    gap: 18px;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.pp-stat-card {
    width: calc(33.333% - 12px);

    min-width: 0;
    min-height: 140px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d9e1ea;
    border-radius: 10px;

    padding: 22px;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    overflow: hidden;
}


/* =========================================================
   CARD LABEL
   ========================================================= */

.pp-stat-card span {
    display: block;

    width: 100%;

    font-size: 15px;
    line-height: 1.35;

    color: #667085;

    margin: 0 0 8px 0;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}


/* =========================================================
   CARD VALUE
   ========================================================= */

.pp-stat-card strong {
    display: block;

    width: 100%;

    font-size: 27px;
    line-height: 1.2;

    color: #123b70;

    font-weight: 700;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}


/* =========================================================
   PERFORMANCE TRENDS
   ========================================================= */

.pp-performance-section {
    width: 100%;
    margin-top: 55px;
}


/* =========================================================
   CHART CARD
   ========================================================= */

.pp-chart-card {
    width: 100%;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d9e1ea;
    border-radius: 12px;

    padding: 25px;

    margin: 0 0 25px 0;

    box-shadow:
        0 4px 14px rgba(18, 59, 112, 0.08);

    overflow: hidden;
}


/* =========================================================
   CHART TITLE
   ========================================================= */

.pp-chart-title {
    width: 100%;

    font-size: 21px;
    line-height: 1.3;

    font-weight: 700;

    color: #123b70;

    margin: 0 0 6px 0;

    white-space: normal;
}


/* =========================================================
   CHART SUBTITLE
   ========================================================= */

.pp-chart-subtitle {
    width: 100%;

    font-size: 14px;
    line-height: 1.5;

    color: #667085;

    margin: 0 0 25px 0;
}


/* =========================================================
   AVERAGE POINTS CHART
   ========================================================= */

.pp-average-chart {
    width: 100%;
    box-sizing: border-box;

    display: flex;

    align-items: flex-end;

    gap: 16px;

    min-height: 280px;

    padding: 20px 10px 0 10px;

    border-bottom: 2px solid #d9e1ea;

    overflow-x: auto;
    overflow-y: hidden;
}


/* =========================================================
   AVERAGE CHART COLUMN
   ========================================================= */

.pp-average-column {
    flex: 1 0 55px;

    min-width: 55px;

    height: 250px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;
    align-items: center;

    box-sizing: border-box;
}


/* =========================================================
   AVERAGE VALUE
   ========================================================= */

.pp-average-value {
    font-size: 13px;

    line-height: 1.2;

    font-weight: 700;

    color: #123b70;

    margin-bottom: 7px;

    white-space: nowrap;
}


/* =========================================================
   BAR AREA
   ========================================================= */

.pp-average-bar-area {
    height: 190px;

    width: 100%;

    display: flex;

    align-items: flex-end;
    justify-content: center;
}


/* =========================================================
   BAR
   ========================================================= */

.pp-average-bar {
    width: 32px;

    max-height: 100%;
    min-height: 3px;

    background: #073b82;

    border-radius: 6px 6px 0 0;

    transition: height 0.3s ease;
}


/* =========================================================
   GAMEWEEK LABEL
   ========================================================= */

.pp-average-label {
    font-size: 13px;

    line-height: 1.2;

    font-weight: 700;

    color: #526b86;

    margin-top: 9px;

    white-space: nowrap;
}


/* =========================================================
   CUMULATIVE PLAYER CHART
   ========================================================= */

.pp-cumulative-chart {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   CUMULATIVE PLAYER
   ========================================================= */

.pp-cumulative-player {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 15px;

    box-sizing: border-box;
}


/* =========================================================
   PLAYER NAME
   ========================================================= */

.pp-cumulative-name {
    width: 130px;

    flex: 0 0 130px;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 700;

    color: #123b70;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   CUMULATIVE BARS
   ========================================================= */

.pp-cumulative-bars {
    flex: 1 1 auto;

    width: auto;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 5px;

    overflow: hidden;
}


/* =========================================================
   CUMULATIVE POINT
   ========================================================= */

.pp-cumulative-point {
    height: 28px;

    min-width: 35px;

    background: #073b82;

    border-radius: 5px;

    position: relative;

    box-sizing: border-box;

    overflow: hidden;

    transition: width 0.3s ease;
}


/* =========================================================
   CUMULATIVE POINT TEXT
   ========================================================= */

.pp-cumulative-point span {
    position: absolute;

    left: 10px;

    top: 50%;

    transform: translateY(-50%);

    color: #ffffff;

    font-size: 11px;

    line-height: 1;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .pp-statistics {
        max-width: 100%;

        margin: 30px auto;

        padding: 0 18px;
    }


    .pp-stat-card {
        width: calc(50% - 9px);

        min-height: 125px;

        padding: 18px;
    }


    .pp-stat-card span {
        font-size: 15px;
    }


    .pp-stat-card strong {
        font-size: 25px;
    }


    .pp-statistics h3 {
        font-size: 28px;
    }


    .pp-chart-card {
        padding: 20px;
    }


    .pp-cumulative-player {
        gap: 12px;
    }


    .pp-cumulative-name {
        width: 110px;

        flex: 0 0 110px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .pp-statistics {
        width: 100%;

        margin: 25px auto;

        padding: 0 14px;
    }


    .pp-stat-section {
        margin-bottom: 38px;
    }


    /* ---------------------------------------------
       SECTION HEADINGS
       --------------------------------------------- */

    .pp-statistics h3 {
        font-size: 26px;

        line-height: 1.2;

        margin-bottom: 20px;

        padding-bottom: 10px;
    }


    /* ---------------------------------------------
       TWO COLUMN MOBILE CARDS
       --------------------------------------------- */

    .pp-stat-grid {
        width: 100%;

        display: flex;

        flex-wrap: wrap;

        gap: 12px;
    }


    /* ---------------------------------------------
       MOBILE CARD
       --------------------------------------------- */

    .pp-stat-card {
        width: calc(50% - 6px);

        min-height: 125px;

        padding: 16px;

        border-radius: 10px;
    }


    .pp-stat-card span {
        font-size: 15px;

        line-height: 1.35;

        margin-bottom: 8px;

        word-break: normal;

        overflow-wrap: normal;
    }


    .pp-stat-card strong {
        font-size: 24px;

        line-height: 1.2;

        word-break: normal;

        overflow-wrap: break-word;
    }


    /* ---------------------------------------------
       PERFORMANCE
       --------------------------------------------- */

    .pp-performance-section {
        margin-top: 40px;
    }


    .pp-chart-card {
        padding: 18px;

        margin-bottom: 18px;

        border-radius: 12px;
    }


    .pp-chart-title {
        font-size: 20px;

        line-height: 1.3;
    }


    .pp-chart-subtitle {
        font-size: 14px;

        line-height: 1.5;

        margin-bottom: 20px;
    }


    /* ---------------------------------------------
       AVERAGE CHART
       --------------------------------------------- */

    .pp-average-chart {
        gap: 10px;

        min-height: 250px;

        padding: 15px 5px 0 5px;

        overflow-x: auto;
    }


    .pp-average-column {
        min-width: 48px;

        height: 225px;
    }


    .pp-average-bar-area {
        height: 165px;
    }


    .pp-average-bar {
        width: 26px;
    }


    .pp-average-value {
        font-size: 12px;
    }


    .pp-average-label {
        font-size: 12px;
    }


    /* ---------------------------------------------
       CUMULATIVE CHART
       --------------------------------------------- */

    .pp-cumulative-player {
        width: 100%;

        display: flex;

        align-items: center;

        gap: 10px;
    }


    .pp-cumulative-name {
        width: 90px;

        flex: 0 0 90px;

        font-size: 13px;
    }


    .pp-cumulative-bars {
        flex: 1 1 auto;

        min-width: 0;
    }


    .pp-cumulative-point {
        height: 27px;
    }


    .pp-cumulative-point span {
        font-size: 10px;

        left: 8px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .pp-statistics {
        padding: 0 12px;
    }


    .pp-statistics h3 {
        font-size: 24px;

        line-height: 1.2;
    }


    /* ---------------------------------------------
       KEEP TWO COLUMNS
       --------------------------------------------- */

    .pp-stat-grid {
        display: flex;

        flex-wrap: wrap;

        gap: 10px;
    }


    .pp-stat-card {
        width: calc(50% - 5px);

        min-height: 120px;

        padding: 14px;
    }


    .pp-stat-card span {
        font-size: 14px;

        line-height: 1.3;

        word-break: normal;
    }


    .pp-stat-card strong {
        font-size: 22px;

        line-height: 1.2;

        word-break: normal;
    }


    /* ---------------------------------------------
       CHART CARDS
       --------------------------------------------- */

    .pp-chart-card {
        padding: 15px;
    }


    .pp-chart-title {
        font-size: 19px;
    }


    .pp-cumulative-player {
        gap: 8px;
    }


    .pp-cumulative-name {
        width: 82px;

        flex: 0 0 82px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 340px) {

    .pp-stat-grid {
        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .pp-stat-card {
        width: 100%;

        min-height: 105px;
    }


    .pp-stat-card span {
        font-size: 14px;
    }


    .pp-stat-card strong {
        font-size: 23px;
    }


    .pp-cumulative-player {
        gap: 7px;
    }


    .pp-cumulative-name {
        width: 75px;

        flex: 0 0 75px;
    }

}