/*
 * ============================================================
 * BLOODMOON GRID
 * Team page
 * ============================================================
 *
 * Version : 2026-09-09 08:38
 */


.team-page {
    min-height: 70vh;
    background:
        linear-gradient(
            180deg,
            #f7f8fa 0%,
            #ffffff 34%,
            #f8f8f6 100%
        );
}


.team-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   HERO
============================================================ */

.team-hero {
    padding: 58px 0 52px;
    border-bottom: 1px solid #eadedb;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(158, 29, 55, 0.08),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fff1ee 58%,
            #f8f8f7 100%
        );
}


.team-kicker,
.team-contact-kicker {
    display: inline-block;
    margin-bottom: 9px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9e1d37;
}


.team-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.03;
    color: #202632;
}


.team-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.04rem;
    line-height: 1.7;
    color: #697181;
}


/* ============================================================
   TEAM GRID
============================================================ */

.team-section {
    padding: 38px 0 64px;
}


.team-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );
    gap: 18px;
}


.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eadfdd;
    border-radius: 20px;
    background: #fbfaf8;
    box-shadow:
        0 14px 34px
        rgba(
            29,
            35,
            47,
            0.055
        );
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}


.team-card:hover {
    transform: translateY(-2px);
    border-color: #dec9c5;
    box-shadow:
        0 18px 42px
        rgba(
            29,
            35,
            47,
            0.08
        );
}


.team-avatar-wrap {
    padding: 24px 24px 0;
}


.team-avatar {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto;
    border: 5px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 8px 24px
        rgba(
            31,
            36,
            48,
            0.12
        );
}


.team-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1ee;
    font-size: 2rem;
    font-weight: 900;
    color: #9e1d37;
}


.team-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 22px 23px;
    text-align: center;
}


.team-card h2 {
    margin: 0;
    font-size: 1.08rem;
    color: #272d39;
}


.team-role {
    min-height: 44px;
    margin: 8px 0 17px;
    font-size: 0.84rem;
    line-height: 1.5;
    font-weight: 700;
    color: #9e1d37;
}


.team-info-row {
    padding-top: 14px;
    border-top: 1px solid #e8e4e1;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6f7786;
}


.team-info-label {
    display: block;
    margin-bottom: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9298a3;
}


.team-english-level {
    margin-top: 11px;
}


.team-english-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9298a3;
}


.team-english-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


.team-english-block {
    display: block;
    width: 22px;
    height: 7px;
    border-radius: 3px;
    background: #dfe6ee;
    box-shadow:
        inset 0 0 0 1px
        rgba(
            55,
            72,
            92,
            0.06
        );
}


.team-english-block.is-active {
    background: #2f80ed;
    box-shadow:
        0 3px 8px
        rgba(
            47,
            128,
            237,
            0.18
        );
}


.team-profile-link {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 7px;
    margin-top: 17px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    color: #343a48;
}


.team-profile-link:hover {
    color: #9e1d37;
}


/* ============================================================
   IN-WORLD IM
============================================================ */

.team-im-panel {
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
}


.team-im-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #9e1d37;
    border-radius: 11px;
    background: #9e1d37;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 0.8rem;
    font-weight: 850;
    color: #ffffff;
    box-shadow:
        0 7px 16px
        rgba(
            158,
            29,
            55,
            0.16
        );
    transition:
        background 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        transform 150ms ease,
        box-shadow 150ms ease;
}


.team-im-button::-webkit-details-marker {
    display: none;
}


.team-im-button::marker {
    display: none;
    content: '';
}


.team-im-button:hover {
    border-color: #86182e;
    background: #86182e;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 9px 20px
        rgba(
            158,
            29,
            55,
            0.22
        );
}


.team-im-panel[open] .team-im-button {
    border-color: #741326;
    background: #741326;
    color: #ffffff;
    transform: none;
    box-shadow:
        0 6px 14px
        rgba(
            116,
            19,
            38,
            0.18
        );
}


.team-im-content {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #eadfdd;
    border-radius: 12px;
    background: #ffffff;
    text-align: left;
}


.team-im-locked,
.team-im-sender {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #6f7786;
}


.team-im-sender strong {
    color: #343a48;
}


.team-im-status {
    margin-bottom: 11px;
    padding: 10px 11px;
    border-radius: 9px;
    font-size: 0.73rem;
    line-height: 1.5;
}


.team-im-status.is-success {
    border: 1px solid #9fd5ad;
    background: #eaf8ee;
    color: #246b3a;
}


.team-im-success-summary {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0 0;
    padding: 11px 12px;
    text-align: left;
    font-weight: 800;
}


.team-im-success-summary::before {
    flex: 0 0 auto;
    content: "✓";
    font-size: 0.9rem;
    line-height: 1.25;
    font-weight: 900;
    color: #23713b;
}


.team-im-status.is-error {
    border: 1px solid #e9c0c4;
    background: #fff2f2;
    color: #963343;
}


.team-im-form {
    margin-top: 12px;
}


.team-im-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #444b58;
}


.team-im-form textarea {
    display: block;
    width: 100%;
    min-height: 105px;
    resize: vertical;
    padding: 10px 11px;
    border: 1px solid #d9dde3;
    border-radius: 9px;
    background: #fbfbfa;
    font: inherit;
    font-size: 0.77rem;
    line-height: 1.5;
    color: #303642;
    outline: none;
    box-sizing: border-box;
}


.team-im-form textarea:focus {
    border-color: #c68c98;
    background: #ffffff;
    box-shadow:
        0 0 0 3px
        rgba(
            158,
            29,
            55,
            0.07
        );
}


.team-im-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}


.team-im-form-footer span {
    font-size: 0.64rem;
    line-height: 1.3;
    color: #979da6;
}


.team-im-send {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: #9e1d37;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;
    color: #ffffff;
}


.team-im-send:hover {
    background: #86182e;
}


/* ============================================================
   CONTACT CARD
============================================================ */

.team-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 30px;
    padding: 27px 30px;
    border: 1px solid #f0dad5;
    border-radius: 20px;
    background: #fff1ee;
}


.team-contact-card h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #272d39;
}


.team-contact-card p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #747b88;
}


.team-contact-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 10px 17px;
    border-radius: 11px;
    background: #9e1d37;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
}


.team-contact-button:hover {
    background: #86182e;
    color: #ffffff;
}


.team-empty {
    padding: 36px;
    border: 1px solid #e4e6eb;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1050px) {

    .team-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


@media (max-width: 780px) {

    .team-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .team-contact-card {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 520px) {

    .team-container {
        width: min(
            100% - 28px,
            1220px
        );
    }


    .team-hero {
        padding: 42px 0 38px;
    }


    .team-section {
        padding: 26px 0 46px;
    }


    .team-grid {
        grid-template-columns: 1fr;
    }


    .team-im-form-footer {
        align-items: stretch;
        flex-direction: column;
    }


    .team-im-send {
        width: 100%;
    }

}
