/* ==========================================
   TEAM PAGE
========================================== */

.team-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ==========================================
   HEADER
========================================== */

.team-page__eyebrow {
    display: block;
    color: #16A34A;
    font-size: 10px;
    font-weight: 700;
}

.team-page__header h1 {
    margin: 2px 0 0;
    color: #0F172A;
    font-size: 21px;
    font-weight: 800;
}

.team-page__header p {
    margin: 3px 0 0;
    color: #64748B;
    font-size: 10px;
}


/* ==========================================
   TEAM PROFILE
========================================== */

.team-profile {
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(15,23,42,.05);
}

.team-profile__top {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 16px 14px 12px;
}


/* ==========================================
   LOGO
========================================== */

.team-profile__logo {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: visible;
    border: 1px solid #E2E8F0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15,23,42,.08);
    cursor: pointer;
}

    .team-profile__logo > img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 12px;
        object-fit: cover;
    }

    .team-profile__logo > span:first-child {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: #F0FDF4;
        color: #15803D;
        font-size: 13px;
        font-weight: 800;
    }

.team-profile__logo-edit {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #15803D;
    color: #fff;
    box-shadow: 0 3px 7px rgba(15,23,42,.15);
}

    .team-profile__logo-edit svg {
        width: 11px;
        height: 11px;
    }


/* ==========================================
   IDENTITY
========================================== */

.team-profile__identity {
    min-width: 0;
}

    .team-profile__identity h2 {
        margin: 0;
        overflow: hidden;
        color: #0F172A;
        font-size: 16px;
        font-weight: 800;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.team-profile__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
    color: #94A3B8;
    font-size: 8px;
}

.team-profile__short-name {
    color: #15803D;
    font-weight: 700;
}

.team-profile__stadium {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    overflow: hidden;
    color: #64748B;
    font-size: 8px;
}

    .team-profile__stadium svg {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }

    .team-profile__stadium span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


/* ==========================================
   EDIT
========================================== */

.team-profile__edit {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
    color: #64748B;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

    .team-profile__edit svg {
        width: 15px;
        height: 15px;
    }

    .team-profile__edit:hover {
        background: #F0FDF4;
        color: #15803D;
    }

    .team-profile__edit:active {
        transform: scale(.95);
    }


/* ==========================================
   DESCRIPTION
========================================== */

.team-profile__description {
    padding: 0 14px 13px;
}

    .team-profile__description p {
        margin: 0;
        color: #475569;
        font-size: 9px;
        line-height: 1.55;
    }

        .team-profile__description p.is-empty {
            color: #94A3B8;
        }


/* ==========================================
   PROFILE STATS
========================================== */

.team-profile__stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    border-top: 1px solid #EEF2F7;
    background: #FAFCFD;
}

.team-profile-stat {
    min-width: 0;
    padding: 11px 5px;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: background .15s ease;
}

    .team-profile-stat +
    .team-profile-stat {
        border-left: 1px solid #EEF2F7;
    }

    .team-profile-stat:hover {
        background: #F8FAFC;
    }

    .team-profile-stat strong {
        display: block;
        overflow: hidden;
        color: #0F172A;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .team-profile-stat span {
        display: block;
        margin-top: 3px;
        color: #94A3B8;
        font-size: 7.5px;
        font-weight: 600;
    }


/* ==========================================
   SECTION
========================================== */

.team-section {
    overflow: hidden;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #fff;
}

.team-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
}

    .team-section__heading h2 {
        margin: 0;
        color: #334155;
        font-size: 11px;
        font-weight: 700;
    }

    .team-section__heading p {
        margin: 3px 0 0;
        color: #94A3B8;
        font-size: 8px;
    }

.team-section__edit {
    flex-shrink: 0;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: #F0FDF4;
    color: #15803D;
    font-family: inherit;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================
   INFORMATION
========================================== */

.team-info-list {
    border-top: 1px solid #EEF2F7;
}

.team-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
}

    .team-info-item +
    .team-info-item {
        border-top: 1px solid #F1F5F9;
    }

    .team-info-item > span {
        flex-shrink: 0;
        color: #64748B;
        font-size: 9px;
    }

    .team-info-item > strong {
        max-width: 65%;
        overflow: hidden;
        color: #334155;
        font-size: 9px;
        font-weight: 700;
        text-align: right;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


/* ==========================================
   MANAGEMENT
========================================== */

.team-manage-list {
    border-top: 1px solid #EEF2F7;
}

.team-manage-item {
    width: 100%;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 0;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

    .team-manage-item +
    .team-manage-item {
        border-top: 1px solid #F1F5F9;
    }

    .team-manage-item:hover {
        background: #FAFAFA;
    }

    .team-manage-item:active {
        background: #F8FAFC;
    }

.team-manage-item__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #F0FDF4;
    color: #15803D;
}

    .team-manage-item__icon svg {
        width: 17px;
        height: 17px;
    }

.team-manage-item__content {
    min-width: 0;
}

    .team-manage-item__content strong {
        display: block;
        color: #334155;
        font-size: 9px;
        font-weight: 700;
    }

    .team-manage-item__content small {
        display: block;
        margin-top: 3px;
        overflow: hidden;
        color: #94A3B8;
        font-size: 8px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.team-manage-item__arrow {
    color: #CBD5E1;
    font-size: 18px;
}


/* ==========================================
   SMALL SCREEN
========================================== */

@media(max-width:360px) {

    .team-profile__top {
        grid-template-columns: 58px minmax(0,1fr) 32px;
        gap: 9px;
        padding-left: 11px;
        padding-right: 11px;
    }

    .team-profile__logo {
        width: 58px;
        height: 58px;
    }

    .team-profile__identity h2 {
        font-size: 14px;
    }

    .team-profile__description {
        padding-left: 11px;
        padding-right: 11px;
    }
}
