/* Team Page - KripMine */

.team-page {
    background: url(/styles/img/background.png) center center / cover fixed;
    color: #ffffff;
    overflow-x: hidden;
}

.team-main {
    min-height: calc(100vh - 160px);
    padding-bottom: 60px;
}

.team-hero {
    padding: 48px 0 36px;
    text-align: center;
}

.team-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.team-hero__badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(152, 120, 235, 0.16);
    border: 1px solid rgba(152, 120, 235, 0.32);
    color: #b79cff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.team-hero h1 {
    margin: 0 0 12px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.04;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.team-hero__description {
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
    color: rgba(236, 240, 255, 0.92);
}

.team-loading {
    text-align: center;
    padding: 80px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.team-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(152, 120, 235, 0.26);
    border-top-color: #9878eb;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: team-spin 0.8s linear infinite;
}

@keyframes team-spin {
    to {
        transform: rotate(360deg);
    }
}

.team-error {
    text-align: center;
    padding: 60px 20px;
    color: #ff7f7f;
    font-size: 18px;
}

.team-error i {
    font-size: 38px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.72;
}

.TeamPage__info-card {
    margin-bottom: 32px;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(130deg, rgba(10, 12, 25, 0.92), rgba(16, 20, 42, 0.88));
    border: 1px solid rgba(187, 198, 255, 0.22);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(6px);
}

.TeamPage__info-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.TeamPage__info-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6666;
    background: rgba(225, 49, 49, 0.2);
    flex-shrink: 0;
}

.TeamPage__info-content {
    flex: 1;
}

.TeamPage__info-title {
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.TeamPage__info-text {
    font-size: 17px;
    line-height: 1.44;
    color: rgba(226, 232, 255, 0.9);
}

.TeamPage__info-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    margin: 14px 0;
}

.TeamPage__info-bottom {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(226, 232, 255, 0.92);
}

.TeamPage__info-metrics {
    display: grid;
    gap: 4px;
}

.TeamPage__info-cta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.TeamPage__info-link {
    color: #ff4747;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.TeamPage__info-link:hover {
    color: #ff5f5f;
}

.TeamPage__header {
    display: none;
}

.TeamPage__block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.TeamPage__block + .TeamPage__block {
    margin-top: 24px;
}

.TeamPage__position-header {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.TeamPage__position-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(152, 120, 235, 0.24);
    color: #b79cff;
    font-size: 14px;
}

.TeamPage__position-count {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 600;
}

.TeamPage__cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.TeamPage__card {
    background: linear-gradient(145deg, rgba(8, 12, 26, 0.92), rgba(11, 18, 40, 0.88));
    border: 1px solid rgba(183, 197, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
    padding: 16px 18px;
}

.TeamPage__card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    align-items: center;
    gap: 20px;
}

.TeamPage__info {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.TeamPage__avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #141313;
    background-image: url(/styles/img/steve.png);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-size: cover;
    background-position: center;
    image-rendering: auto;
}

.TeamPage__avatar.steve-bg {
    background-image: url(/styles/img/steve.png);
}

.TeamPage__text-info {
    min-width: 0;
}

.TeamPage__nickname {
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.TeamPage__position {
    color: rgba(223, 230, 255, 0.8);
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.TeamPage__minor {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
    color: rgba(206, 216, 255, 0.65);
}

.TeamPage__stats {
    display: grid;
    width: 100%;
    max-width: 520px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.TeamPage__stat {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(173, 192, 255, 0.16);
    background: rgba(8, 14, 34, 0.52);
}

.TeamPage__stat-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    font-style: italic;
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.TeamPage__stat-value--activity {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.TeamPage__stat-label {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.2;
    color: rgba(220, 228, 255, 0.72);
    text-align: right;
}

.TeamPage__stat-sub {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(212, 224, 255, 0.62);
    text-align: right;
    word-break: break-word;
}

.TeamPage__activity-value {
    position: relative;
    z-index: 1;
}

.TeamPage__activity-value.green {
    color: #3db960;
}

.TeamPage__activity-value.yellow {
    color: #ffbc3b;
}

.TeamPage__activity-value.red {
    color: #ff6666;
}

.TeamPage__activity-value.blue {
    color: #47deff;
}

.TeamPage__activity-value.purple {
    color: #b79cff;
}

.TeamPage__activity-icon {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    overflow: visible;
}

.TeamPage__activity-icon-wrap {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.TeamPage__activity-icon-wrap .TeamPage__activity-icon {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    flex: 0 0 100%;
}

.TeamPage__stat-value--activity .TeamPage__activity-value {
    min-width: 0;
}

.TeamPage__rebuke-current {
    color: rgba(255, 255, 255, 0.94);
}

.TeamPage__rebuke-current.active {
    color: #ffffff;
}

.TeamPage__rebuke-separator,
.TeamPage__rebuke-max {
    color: rgba(214, 222, 255, 0.58);
}

.TeamPage__rebuke,
.TeamPage__activity {
    display: none;
}

.team-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.team-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.team-footer__link {
    color: #b79cff;
    text-decoration: none;
    font-weight: 500;
}

.team-footer__link:hover {
    color: #d1c0ff;
}

@media (max-width: 1399px) {
    .team-hero h1 {
        font-size: 42px;
    }

    .team-hero__description {
        font-size: 18px;
    }

    .TeamPage__info-title {
        font-size: 21px;
    }

    .TeamPage__info-text,
    .TeamPage__info-bottom {
        font-size: 16px;
    }

    .TeamPage__position-header {
        font-size: 28px;
    }

    .TeamPage__position-count {
        font-size: 17px;
    }

    .TeamPage__nickname {
        font-size: 22px;
    }

    .TeamPage__position {
        font-size: 16px;
    }

    .TeamPage__stat-value {
        font-size: 38px;
    }

    .TeamPage__stat-label {
        font-size: 14px;
    }
}

@media (max-width: 1199px) {
    .team-hero {
        padding: 36px 0 30px;
    }

    .team-hero h1 {
        font-size: 36px;
    }

    .team-hero__description {
        font-size: 17px;
    }

    .TeamPage__info-card {
        margin-bottom: 24px;
    }

    .TeamPage__card-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .TeamPage__stats {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .TeamPage__stat {
        padding: 10px;
    }

    .TeamPage__stat-value {
        justify-content: flex-start;
        font-size: 34px;
    }

    .TeamPage__stat-value--activity {
        justify-content: flex-start;
    }

    .TeamPage__stat-label {
        text-align: left;
        font-size: 14px;
    }

    .TeamPage__stat-sub {
        text-align: left;
    }

    .TeamPage__activity-icon-wrap {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        flex-basis: 48px;
    }
}

@media (max-width: 768px) {
    .team-main {
        padding-bottom: 42px;
    }

    .team-hero {
        padding: 28px 0 22px;
    }

    .team-hero__badge {
        margin-bottom: 10px;
    }

    .team-hero h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .team-hero__description {
        font-size: 14px;
        line-height: 1.55;
        color: rgba(232, 235, 250, 0.76);
    }

    .TeamPage__info-card {
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .TeamPage__info-top {
        gap: 10px;
    }

    .TeamPage__info-icon {
        display: none;
    }

    .TeamPage__info-title {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .TeamPage__info-text,
    .TeamPage__info-bottom {
        font-size: 13px;
        line-height: 1.42;
        color: rgba(230, 234, 248, 0.82);
    }

    .TeamPage__position-header {
        font-size: 32px;
        gap: 8px;
    }

    .TeamPage__position-header-icon {
        width: 30px;
        height: 30px;
    }

    .TeamPage__position-count {
        font-size: 16px;
    }

    .TeamPage__cards {
        gap: 10px;
    }

    .TeamPage__card {
        border-radius: 12px;
        padding: 14px;
    }

    .TeamPage__info {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .TeamPage__avatar {
        width: 42px;
        height: 42px;
        border-radius: 6px;
        flex: 0 0 42px;
    }

    .TeamPage__text-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .TeamPage__nickname {
        font-size: 16px;
        margin-bottom: 2px;
        white-space: normal;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    .TeamPage__position {
        font-size: 14px;
    }

    .TeamPage__minor {
        font-size: 12px;
    }

    .TeamPage__stats {
        gap: 14px;
        padding-top: 10px;
        grid-template-columns: 1fr;
    }

    .TeamPage__stat-value {
        font-size: 26px;
        gap: 6px;
    }

    .TeamPage__stat-value--activity {
        justify-content: flex-start;
    }

    .TeamPage__stat-label {
        font-size: 13px;
        margin-top: 4px;
        text-align: left;
    }

    .TeamPage__stat-sub {
        margin-top: 3px;
        font-size: 12px;
        text-align: left;
    }

    .TeamPage__activity-icon,
    .TeamPage__activity-icon-wrap {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        flex-basis: 28px;
        max-width: 28px;
        max-height: 28px;
    }

    .TeamPage__activity-icon-wrap .TeamPage__activity-icon {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        flex: 0 0 100%;
    }

    .team-loading,
    .team-error {
        font-size: 15px;
    }
}

@media (max-width: 430px) {
    .TeamPage__position-header {
        font-size: 28px;
    }

    .TeamPage__position-count {
        font-size: 15px;
    }

    .TeamPage__stat-value {
        font-size: 24px;
    }
}
