/* Team page layout */

.fh-team-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Team tabs */

.fh-team-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.fh-team-tab-button {
    padding: 9px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.fh-team-tab-button:hover,
.fh-team-tab-button.active {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.fh-team-tab-panel {
    width: 100%;
}

/* Main info */

.fh-team-main-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.fh-team-main-logo {
    width: 230px;
    min-width: 230px;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.fh-team-main-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.fh-team-main-info {
    flex: 1;
}

.fh-team-main-info h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.25;
}

.fh-team-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.fh-team-info-grid div {
    padding: 12px;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    background: #fafafa;
}

.fh-team-info-grid span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #777777;
}

.fh-team-info-grid strong {
    display: block;
    font-size: 15px;
    color: #111111;
}

.fh-team-main-text {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    background: #ffffff;
}

/* Competitions inside team */

.fh-team-competitions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.fh-team-competition-card {
    display: block;
    width: calc(50% - 8px);
    padding: 18px;
    border: 1px solid #e4e4e4;
    border-radius: 18px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.fh-team-competition-card:hover {
    border-color: #111111;
    text-decoration: none;
}

.fh-team-competition-type {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 13px;
    font-weight: 800;
}

.fh-team-competition-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.fh-team-competition-card p {
    margin: 6px 0;
    font-size: 14px;
}

.fh-team-competition-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 800;
}

/* Team match filters */

.fh-team-match-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.fh-team-match-year-label,
.fh-team-match-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.fh-team-match-year-filter,
.fh-team-match-type-filter {
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
}

/* Team players */

.fh-team-player-position-section {
    margin-bottom: 24px;
}

.fh-team-player-position-section h4 {
    margin: 0 0 12px;
    font-size: 18px;
}

.fh-team-players-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.fh-team-player-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 12px;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.fh-team-player-card:hover {
    border-color: #111111;
    text-decoration: none;
}

.fh-team-player-photo {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 50%;
    overflow: hidden;
    background: #eeeeee;
}

.fh-team-player-photo img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    display: block;
}

.fh-team-player-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

/* Mobile */

@media (max-width: 700px) {
    .fh-team-page {
        max-width: calc(100vw - 24px);
    }

    .fh-team-tabs {
        gap: 6px;
    }

    .fh-team-tab-button {
        padding: 7px 10px;
        font-size: 12px;
    }

    .fh-team-main-card {
        flex-direction: column;
        padding: 16px;
    }

    .fh-team-main-logo {
        width: 100%;
        min-width: 0;
        max-width: 260px;
        margin: 0 auto;
    }

    .fh-team-main-info h2 {
        font-size: 22px;
    }

    .fh-team-info-grid {
        grid-template-columns: 1fr;
    }

    .fh-team-competition-card {
        width: 100%;
    }

    .fh-team-match-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .fh-team-match-year-label,
    .fh-team-match-type-label {
        justify-content: space-between;
    }

    .fh-team-players-grid {
        grid-template-columns: 1fr;
    }
}
