﻿
/* =====================================
   BINARYPRO MY TEAM PAGE
   ===================================== */

.team-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.team-summary-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 15px;
    transition: 0.25s ease;
}

    .team-summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(30, 35, 80, 0.06);
    }

.summary-label {
    display: block;
    color: #858ba3;
    font-size: 13px;
    margin-bottom: 18px;
}

.team-summary-card h2 {
    color: #20243a;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.team-summary-card p {
    color: #858ba3;
    font-size: 12px;
}

/* TABLE SECTION */
.team-table-section {
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 16px;
    overflow: hidden;
}

.team-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid #e9eaf2;
}

    .team-table-header h2 {
        color: #20243a;
        font-size: 20px;
        margin-bottom: 7px;
    }

    .team-table-header p {
        color: #858ba3;
        font-size: 13px;
    }

.team-search input {
    width: 240px;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e3ee;
    border-radius: 10px;
    outline: none;
    color: #20243a;
    font-size: 13px;
    transition: 0.2s ease;
}

    .team-search input:focus {
        border-color: #5b4bdb;
        box-shadow: 0 0 0 3px rgba(91, 75, 219, 0.08);
    }

/* TABLE */
.team-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

    .team-table thead {
        background: #f8f8fc;
    }

    .team-table th {
        padding: 16px 20px;
        color: #858ba3;
        font-size: 11px;
        font-weight: 700;
        text-align: left;
        letter-spacing: 0.5px;
    }

    .team-table td {
        padding: 18px 20px;
        color: #444a62;
        font-size: 13px;
        border-top: 1px solid #f0f1f6;
    }

    .team-table tbody tr {
        transition: background 0.2s ease;
    }

        .team-table tbody tr:hover {
            background: #fafaff;
        }

.empty-team {
    padding: 55px 20px !important;
    color: #858ba3 !important;
    text-align: center;
    font-size: 14px !important;
}

/* PLACEMENT BADGE */
.placement-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
}

    .placement-badge.left {
        background: #e8f4ff;
        color: #3288d8;
    }

    .placement-badge.right {
        background: #f2eaff;
        color: #8958d6;
    }

/* MEMBER STATUS */
.member-status {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 7px;
    background: #e8f8f0;
    color: #159b68;
    font-size: 11px;
    font-weight: 700;
}

/* TABLE FOOTER */
.team-table-footer {
    padding: 17px 25px;
    border-top: 1px solid #e9eaf2;
    color: #858ba3;
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .team-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-summary-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .team-summary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .team-summary-card:last-child {
        grid-column: auto;
    }

    .team-table-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .team-search,
    .team-search input {
        width: 100%;
    }

    .team-table th,
    .team-table td {
        padding: 14px 16px;
    }
}

/* =========================================
   LEVEL-WISE TEAM (added)
   ========================================= */

.level-summary-section {
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
}

.level-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    padding: 22px 25px 25px;
}

.level-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    background: #f7f7fd;
    border: 1px solid #e9eaf2;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s ease;
}

    .level-chip:hover {
        border-color: #5b4bdb;
    }

    .level-chip.active {
        background: #f0eefe;
        border-color: #5b4bdb;
        box-shadow: 0 0 0 3px rgba(91, 75, 219, 0.08);
    }

.level-chip-title {
    color: #5b4bdb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-chip strong {
    color: #20243a;
    font-size: 24px;
}

.level-chip small {
    color: #858ba3;
    font-size: 11px;
}

.level-empty {
    color: #858ba3;
    font-size: 13px;
}

.team-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .team-search select {
        padding: 12px 15px;
        border: 1px solid #e1e3ee;
        border-radius: 10px;
        color: #20243a;
        font-size: 13px;
        background: #fff;
        outline: none;
    }

.level-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0eefe;
    color: #5b4bdb;
    font-size: 12px;
    font-weight: 700;
}
