﻿/* =========================================
   Public League Table
========================================= */

.public-league-table-page {
    width: 100%;
    padding: 40px 0 60px;
    box-sizing: border-box;
}


/* =========================================
   Header
========================================= */

.public-league-table-header {
    margin-bottom: 24px;
}

    .public-league-table-header h1 {
        margin: 8px 0;
        font-size: 28px;
        font-weight: 900;
        line-height: 1.5;
    }

    .public-league-table-header p {
        margin: 0;
        font-size: 14px;
        opacity: 0.7;
    }


/* =========================================
   Card
========================================= */

.public-standings-card {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}


/* =========================================
   Table Wrapper
========================================= */

.public-standings-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}


/* =========================================
   Table
========================================= */

.public-standings-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    border-spacing: 0;
}

    .public-standings-table th,
    .public-standings-table td {
        padding: 15px 12px;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }


    /* =========================================
   Table Header
========================================= */

    .public-standings-table thead th {
        background: #f7f8fa;
        font-size: 13px;
        font-weight: 800;
        color: #555;
        border-bottom: 1px solid #eceff3;
    }


    /* =========================================
   Table Rows
========================================= */

    .public-standings-table tbody tr {
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

        .public-standings-table tbody tr:not(:last-child) {
            border-bottom: 1px solid #f0f1f3;
        }

        .public-standings-table tbody tr:hover {
            background: #fafbfc;
        }


/* =========================================
   Position
========================================= */

.public-standing-position {
    width: 55px;
    font-size: 15px;
    font-weight: 900;
}


/* =========================================
   Team Column
========================================= */

.public-standings-table td.public-standing-team {
    min-width: 220px;
    width: 220px;
    text-align: right;
    vertical-align: middle;
}


/* محتوای داخلی سلول تیم */

.public-standing-team-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
}


/* لوگوی تیم */

.public-standings-table
.public-standing-team
img.public-standing-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    display: block !important;
    flex: 0 0 48px;
}


/* نام تیم */

.public-standing-team-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}
/* =========================================
   Team Logo
========================================= */

.public-standing-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    object-fit: contain;
    display: block;
}


/* =========================================
   Points
========================================= */

.public-standing-points {
    font-size: 16px;
    font-weight: 900;
}


/* =========================================
   Message
========================================= */

.public-standings-card > span,
.public-standings-card > .aspNetDisabled {
    display: block;
    padding: 20px;
    text-align: center;
}

#lblMessage {
    display: block;
    padding: 20px;
    text-align: center;
    font-weight: 700;
}
.public-standings-table tbody tr:hover {
    background-color: #e3ffad;
}

/* =========================================
   Table Rows
========================================= */

.public-standings-table tbody tr {
    transition: background-color 0.2s ease;
}

    .public-standings-table tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .public-standings-table tbody tr:nth-child(even) {
        background-color: #f1ffd6;
    }

    .public-standings-table tbody tr:not(:last-child) {
        border-bottom: 1px solid #ececec;
    }

    .public-standings-table tbody tr:hover {
        background-color: #e3ffad;
    }
/* =========================================
   Zebra Rows
========================================= */

.public-standings-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.public-standings-table tbody tr:nth-child(even) {
    background-color: #f1ffd6;
}
/* =========================================
   Header Alignment
========================================= */

.public-league-table-header {
    margin-bottom: 24px;
    text-align: center;
}

    .public-league-table-header .home-section-eyebrow {
        display: inline-block;
    }

    .public-league-table-header h1 {
        margin: 8px 0;
        text-align: center;
    }

    .public-league-table-header p {
        margin: 0;
        text-align: center;
    }
/* =========================================
   Scrollbar
========================================= */

.public-standings-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.public-standings-table-wrapper::-webkit-scrollbar-track {
    background: #f2f2f2;
}

.public-standings-table-wrapper::-webkit-scrollbar-thumb {
    background: #c7cbd1;
    border-radius: 20px;
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 992px) {

    .public-league-table-page {
        padding: 30px 0 45px;
    }

    .public-league-table-header h1 {
        font-size: 24px;
    }

    .public-standings-card {
        border-radius: 15px;
    }

    .public-standings-table th,
    .public-standings-table td {
        padding: 13px 10px;
    }

    .public-standing-logo {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 768px) {

    .public-league-table-page {
        padding: 22px 0 35px;
    }

    .public-league-table-header {
        margin-bottom: 18px;
    }

        .public-league-table-header h1 {
            font-size: 21px;
            margin: 6px 0;
        }

        .public-league-table-header p {
            font-size: 13px;
        }

    .public-standings-card {
        border-radius: 12px;
    }

    .public-standings-table {
        min-width: 820px;
    }

        .public-standings-table th,
        .public-standings-table td {
            padding: 12px 9px;
            font-size: 13px;
        }

    .public-standing-team {
        min-width: 185px;
        gap: 9px;
    }

    .public-standing-logo {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .public-standing-position {
        width: 45px;
    }

    .public-standing-points {
        font-size: 15px;
    }
}


/* =========================================
   Small Mobile
========================================= */

@media (max-width: 480px) {

    .public-league-table-page {
        padding: 18px 0 30px;
    }

    .public-league-table-header h1 {
        font-size: 19px;
    }

    .public-league-table-header p {
        font-size: 12px;
    }

    .public-standings-table {
        min-width: 780px;
    }

        .public-standings-table th,
        .public-standings-table td {
            padding: 10px 8px;
            font-size: 12px;
        }

    .public-standing-team {
        min-width: 170px;
        gap: 8px;
    }

    .public-standing-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .public-standing-points {
        font-size: 14px;
    }
    @media (max-width: 992px) {

        .public-standings-table
        .public-standing-team
        img.public-standing-logo {
            width: 44px !important;
            height: 44px !important;
            min-width: 44px !important;
            min-height: 44px !important;
            max-width: 44px !important;
            max-height: 44px !important;
            flex-basis: 44px;
        }
    }
    @media (max-width: 768px) {

        .public-standing-team {
            min-width: 180px !important;
            width: 180px;
        }

        .public-standing-team-content {
            gap: 8px;
        }

        .public-standings-table
        .public-standing-team
        img.public-standing-logo {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            min-height: 38px !important;
            max-width: 38px !important;
            max-height: 38px !important;
            flex-basis: 38px;
        }

        .public-standing-team-name {
            font-size: 13px;
        }
    }
}
