﻿/* =====================================================
   Top 10 Prediction Leaderboard
===================================================== */

.top10-section {
    width: 100%;
    max-width: 1180px;
    margin: 32px auto;
    padding: 0 18px;
    direction: rtl;
}

/* =====================================================
   Top Radar Highlight
===================================================== */

.top10-radar-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 18px;
}


.top10-radar-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
}


/* =========================
   Rotating Orbit
========================= */

.top10-radar-orbit {
    position: absolute;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.16);
    border-top-color: #2563eb;
    border-right-color: #60a5fa;
    box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.035), 0 10px 28px rgba(15, 23, 42, 0.08);
    animation: top10-radar-spin 7s linear infinite;
}


    .top10-radar-orbit::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 50%;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        transform: translateX(-50%);
    }


/* =========================
   Accuracy Card
========================= */

.top10-radar-score-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 76px;
    padding: 11px 16px;
    border: 1px solid #dbeafe;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.10);
    text-align: center;
}


.top10-radar-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}


.top10-radar-value {
    margin-top: 2px;
    color: #1d4ed8;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.3;
}


/* =========================
   Animation
========================= */

@keyframes top10-radar-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* =====================================================
   Header
===================================================== */

.top10-header {
    margin-bottom: 16px;
}


.top10-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}


.top10-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: linear-gradient( 135deg, #fff7d6, #fde68a );
    font-size: 23px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}


.top10-title {
    margin: 0;
    color: #172554;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.6;
}


.top10-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.8;
}


/* =====================================================
   Table Wrapper
===================================================== */

.top10-table-wrapper {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}


/* =====================================================
   Table
===================================================== */

.top10-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}


    .top10-table thead {
        background: linear-gradient( 135deg, #172554, #1e3a8a );
    }


    .top10-table th {
        padding: 15px 12px;
        color: #ffffff;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
    }


    .top10-table td {
        padding: 15px 12px;
        border-bottom: 1px solid #eef2f7;
        color: #334155;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        vertical-align: middle;
    }


    .top10-table tbody tr:last-child td {
        border-bottom: 0;
    }


.top10-row {
    transition: background-color 0.18s ease, transform 0.18s ease;
}


    .top10-row:hover {
        background: #f8fafc;
    }


/* =====================================================
   Columns
===================================================== */

.top10-col-rank {
    width: 80px;
}


.top10-col-user {
    width: 220px;
}


/* =====================================================
   Rank
===================================================== */

.top10-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}


/* First */

.top10-table tbody tr:nth-child(1)
.top10-rank {
    background: linear-gradient( 135deg, #fde68a, #f59e0b );
    color: #78350f;
    box-shadow: 0 5px 14px rgba(245, 158, 11, 0.25);
}


/* Second */

.top10-table tbody tr:nth-child(2)
.top10-rank {
    background: linear-gradient( 135deg, #e2e8f0, #94a3b8 );
    color: #334155;
}


/* Third */

.top10-table tbody tr:nth-child(3)
.top10-rank {
    background: linear-gradient( 135deg, #fed7aa, #c2410c );
    color: #7c2d12;
}


/* =====================================================
   User
===================================================== */

.top10-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}


.top10-user-name {
    overflow: hidden;
    color: #172554;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =====================================================
   VIP
===================================================== */

.top10-vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    padding: 3px 7px;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    background: #fff7ed;
    color: #b45309;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
}


/* =====================================================
   Rating
===================================================== */

.top10-rating {
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 900;
}


/* =====================================================
   Stats
===================================================== */

.top10-stat {
    color: #475569;
    font-weight: 800;
}


.top10-exact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}


/* =====================================================
   Accuracy
===================================================== */

.top10-accuracy {
    display: flex;
    align-items: center;
    justify-content: center;
}


.top10-accuracy-value {
    min-width: 58px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
}


/* =====================================================
   Empty
===================================================== */

.top10-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 34px 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}


.top10-empty-icon {
    font-size: 22px;
}

.top10-section .home-prediction-banner-visual {
    margin-bottom: 18px;
}

/* =====================================================
   Top 10 Radar
===================================================== */

.top10-radar-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}


/* =========================
   Radar Accuracy
========================= */

.top10-radar-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    text-align: center;
}


    .top10-radar-score span {
        color: #475569;
        font-size: 18px;
        font-weight: 900;
    }


    .top10-radar-score strong {
        color: #1d4ed8;
        direction: ltr;
        font-size: 30px;
        font-weight: 950;
        line-height: 1.2;
    }


/* =========================================
   MatchRadar - Top Radar Records
========================================= */

.top10-radar-records {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    text-align: right;
}

    .top10-radar-records th,
    .top10-radar-records td {
        padding: 12px 14px;
        border-bottom: 1px solid rgba(128,128,128,.18);
        font-size: 13px;
    }

    .top10-radar-records th {
        font-weight: 800;
    }

    .top10-radar-records td strong {
        color: #16a34a;
        font-size: 17px;
        font-weight: 900;
    }

    .top10-radar-records tbody tr:last-child td {
        border-bottom: none;
    }

/* Very Small Mobile */

@media (max-width: 420px) {
    .top10-radar-records th,
    .top10-radar-records td {
        padding: 8px 5px;
        font-size: 10px;
    }

        .top10-radar-records td strong {
            font-size: 13px;
        }
}

/* Mobile */

@media (min-width: 421px) and (max-width: 700px) {
    .top10-radar-records th,
    .top10-radar-records td {
        padding: 10px 7px;
        font-size: 11px;
    }
}

/* Tablet */

@media (min-width: 701px) and (max-width: 1024px) {
    .top10-radar-records th,
    .top10-radar-records td {
        padding: 11px;
        font-size: 12px;
    }
}

/* =====================================================
   Very Small Mobile
   max-width: 420px
===================================================== */

@media (max-width: 420px) {

    .top10-section {
        margin: 22px auto;
        padding: 0 8px;
    }


    /* Header */

    .top10-header {
        margin-bottom: 12px;
    }


    .top10-header-content {
        gap: 8px;
    }


    .top10-header-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 11px;
        font-size: 18px;
    }


    .top10-title {
        font-size: 15px;
        line-height: 1.5;
    }


    .top10-subtitle {
        margin-top: 2px;
        font-size: 10.5px;
        line-height: 1.6;
    }


    /* Wrapper */

    .top10-table-wrapper {
        width: 100%;
        overflow-x: hidden;
        border-radius: 12px;
    }


    /* Table */

    .top10-table {
        width: 100%;
        table-layout: fixed;
    }


        .top10-table thead {
            display: table-header-group;
        }


        .top10-table tbody {
            display: table-row-group;
        }


        .top10-table tr {
            display: table-row;
        }


        .top10-table th,
        .top10-table td {
            display: table-cell;
            width: auto;
            padding: 9px 3px;
            font-size: 9.5px;
            text-align: center;
            vertical-align: middle;
        }


        .top10-table th {
            font-size: 9px;
            font-weight: 800;
            white-space: nowrap;
        }


            /*
       ستون پنجم = دقیق
       فقط در موبایل مخفی می‌شود
    */

            .top10-table th:nth-child(5),
            .top10-table td:nth-child(5) {
                display: none;
            }


    /* Rank */

    .top10-col-rank {
        width: 42px;
    }


    .top10-rank {
        width: 27px;
        height: 27px;
        font-size: 9px;
    }


    /* User */

    .top10-col-user {
        width: 84px;
    }


    .top10-user {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
    }


    .top10-user-name {
        display: block;
        max-width: 68px;
        overflow: hidden;
        font-size: 9.5px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* VIP */

    .top10-vip-badge {
        min-width: 25px;
        padding: 2px 4px;
        font-size: 7px;
    }


    /* Points */

    .top10-rating {
        font-size: 10px;
    }


    /* Total */

    .top10-stat {
        font-size: 9.5px;
    }


    /* Accuracy */

    .top10-accuracy-value {
        min-width: 44px;
        padding: 4px 5px;
        font-size: 9px;
    }


    /* حذف data-label موبایل قدیمی */

    .top10-table td::before {
        display: none;
        content: none;
    }
}


/* =====================================================
   Mobile
   421px - 700px
===================================================== */

@media (min-width: 421px) and (max-width: 700px) {

    .top10-section {
        margin: 24px auto;
        padding: 0 10px;
    }


    /* Header */

    .top10-header {
        margin-bottom: 13px;
    }


    .top10-header-content {
        gap: 9px;
    }


    .top10-header-icon {
        width: 41px;
        height: 41px;
        flex: 0 0 41px;
        border-radius: 12px;
        font-size: 19px;
    }


    .top10-title {
        font-size: 16px;
    }


    .top10-subtitle {
        font-size: 11px;
    }


    /* Wrapper */

    .top10-table-wrapper {
        width: 100%;
        overflow-x: hidden;
        border-radius: 14px;
    }


    /* Table */

    .top10-table {
        width: 100%;
        table-layout: fixed;
    }


        .top10-table thead {
            display: table-header-group;
        }


        .top10-table tbody {
            display: table-row-group;
        }


        .top10-table tr {
            display: table-row;
        }


        .top10-table th,
        .top10-table td {
            display: table-cell;
            padding: 10px 5px;
            font-size: 11px;
            text-align: center;
            vertical-align: middle;
        }


        .top10-table th {
            font-size: 10px;
            white-space: nowrap;
        }


            /*
       ستون دقیق
       فقط موبایل مخفی
    */

            .top10-table th:nth-child(5),
            .top10-table td:nth-child(5) {
                display: none;
            }


    /* Rank */

    .top10-col-rank {
        width: 48px;
    }


    .top10-rank {
        width: 29px;
        height: 29px;
        font-size: 10px;
    }


    /* User */

    .top10-col-user {
        width: 110px;
    }


    .top10-user {
        flex-wrap: nowrap;
        gap: 4px;
    }


    .top10-user-name {
        max-width: 82px;
        font-size: 10.5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* VIP */

    .top10-vip-badge {
        min-width: 27px;
        padding: 2px 5px;
        font-size: 7.5px;
    }


    /* Points */

    .top10-rating {
        font-size: 11px;
    }


    /* Total */

    .top10-stat {
        font-size: 10.5px;
    }


    /* Accuracy */

    .top10-accuracy-value {
        min-width: 48px;
        padding: 4px 6px;
        font-size: 10px;
    }


    /* حذف رفتار Card قبلی */

    .top10-table td::before {
        display: none;
        content: none;
    }
}
@media (max-width: 420px) {

    .top10-radar-highlight {
        margin: 2px 0 13px;
    }


    .top10-radar-visual {
        width: 112px;
        height: 112px;
    }


    .top10-radar-orbit {
        width: 96px;
        height: 96px;
    }


    .top10-radar-score-card {
        min-width: 75px;
        min-height: 59px;
        padding: 7px 10px;
        border-radius: 13px;
    }


    .top10-radar-label {
        font-size: 9px;
    }


    .top10-radar-value {
        font-size: 18px;
    }
}
@media (min-width: 421px) and (max-width: 700px) {

    .top10-radar-highlight {
        margin: 3px 0 14px;
    }


    .top10-radar-visual {
        width: 125px;
        height: 125px;
    }


    .top10-radar-orbit {
        width: 106px;
        height: 106px;
    }


    .top10-radar-score-card {
        min-width: 82px;
        min-height: 64px;
        padding: 8px 11px;
    }


    .top10-radar-label {
        font-size: 10px;
    }


    .top10-radar-value {
        font-size: 20px;
    }
}
@media (min-width: 701px) and (max-width: 1024px) {

    .top10-radar-visual {
        width: 138px;
        height: 138px;
    }


    .top10-radar-orbit {
        width: 116px;
        height: 116px;
    }


    .top10-radar-value {
        font-size: 22px;
    }
}
@media (max-width: 420px) {

    .top10-radar-score {
        gap: 7px;
    }

        .top10-radar-score span {
            font-size: 14px;
        }

        .top10-radar-score strong {
            font-size: 23px;
        }
}


@media (min-width: 421px) and (max-width: 700px) {

    .top10-radar-score span {
        font-size: 15px;
    }

    .top10-radar-score strong {
        font-size: 25px;
    }
}
@media (max-width: 420px) {
    .home-prediction-radar-image {
        width: 86px;
        height: 86px;
    }
}

@media (min-width: 421px) and (max-width: 700px) {
    .home-prediction-radar-image {
        width: 96px;
        height: 96px;
    }
}