/* HABLUXE COMMUNITY STAFF CARD V2 */

.staff-member-card {
    min-width: 0;
    min-height: 204px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    border: 1px solid #355165;
    border-radius: 11px;
    background:
        linear-gradient(
            145deg,
            rgba(25, 44, 60, .99),
            rgba(9, 23, 37, .99)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 8px 22px rgba(0, 0, 0, .17);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.staff-member-card:hover {
    transform: translateY(-2px);
    border-color: #4c8baa;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 12px 28px rgba(0, 0, 0, .23);
}

.staff-member-card__avatar-panel {
    position: relative;
    min-height: 204px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.staff-member-card__avatar-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(4, 17, 29, .18),
            rgba(4, 17, 29, .7)
        ),
        linear-gradient(
            90deg,
            rgba(4, 17, 29, .05),
            rgba(4, 17, 29, .42)
        );
}

.staff-member-card__status {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(240, 104, 104, .34);
    border-radius: 999px;
    background: rgba(62, 23, 30, .9);
    color: #f4a0a0;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.staff-member-card__status > span {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #ea6969;
    box-shadow: 0 0 8px rgba(234, 105, 105, .65);
}

.staff-member-card--online .staff-member-card__status {
    border-color: rgba(94, 211, 113, .38);
    background: rgba(20, 63, 36, .9);
    color: #91e7a0;
}

.staff-member-card--online .staff-member-card__status > span {
    background: #64dc7b;
    box-shadow: 0 0 9px rgba(100, 220, 123, .72);
}

.staff-member-card__avatar {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 172px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.staff-member-card__avatar img {
    height: 165px;
    max-width: none;
    image-rendering: pixelated;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5));
    transition: transform .18s ease, filter .18s ease;
}

.staff-member-card:hover .staff-member-card__avatar img {
    transform: translateY(-2px) scale(1.025);
    filter:
        drop-shadow(0 9px 12px rgba(0, 0, 0, .54))
        drop-shadow(0 0 8px rgba(70, 169, 218, .18));
}

.staff-member-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.staff-member-card__identity {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.staff-member-card__identity > div:first-child {
    min-width: 0;
}

.staff-member-card__identity > div:first-child > span {
    display: block;
    color: #70c2e7;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.staff-member-card__identity h3 {
    overflow: hidden;
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-member-card__identity h3 a {
    color: #fff;
    text-decoration: none;
}

.staff-member-card__identity h3 a:hover {
    color: #7ad0f4;
}

.staff-member-card__identity h3 a:focus-visible,
.staff-member-card__avatar:focus-visible,
.staff-member-card__button:focus-visible {
    outline: 2px solid rgba(255, 220, 115, .92);
    outline-offset: 3px;
}

.staff-member-card__country {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border: 1px solid #3e5e73;
    border-radius: 6px;
    background: rgba(5, 21, 34, .52);
}

.staff-member-card__country img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}

.staff-member-card__country span {
    color: #a1b1bb;
    font-size: 7px;
    font-weight: 900;
}

.staff-member-card__motto {
    min-height: 36px;
    margin: 10px 0 0;
    color: #879ba9;
    font-size: 9px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.5;
}

.staff-member-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
}

.staff-member-card__stats > div {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #304b5e;
    border-radius: 8px;
    background: rgba(5, 21, 34, .42);
}

.staff-member-card__stats dt {
    overflow: hidden;
    color: #6f8595;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.staff-member-card__stats dd {
    margin: 4px 0 0;
    color: #ebf2f6;
    font-size: 13px;
    font-weight: 900;
}

.staff-member-card__button {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 0 11px;
    border: 1px solid #397b9e;
    border-radius: 7px;
    background: linear-gradient(#3b96c3, #28749b);
    color: #fff !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .03em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
    transition: filter .16s ease, transform .16s ease;
}

.staff-member-card__button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

@media (max-width: 540px) {
    .staff-member-card {
        grid-template-columns: 122px minmax(0, 1fr);
    }

    .staff-member-card__avatar-panel {
        min-height: 216px;
    }

    .staff-member-card__avatar {
        height: 177px;
    }

    .staff-member-card__avatar img {
        height: 166px;
    }

    .staff-member-card__content {
        padding: 12px;
    }

    .staff-member-card__country span {
        display: none;
    }
}

@media (max-width: 390px) {
    .staff-member-card {
        grid-template-columns: 1fr;
    }

    .staff-member-card__avatar-panel {
        min-height: 205px;
    }

    .staff-member-card__avatar {
        height: 176px;
    }

    .staff-member-card__content {
        min-height: 205px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .staff-member-card,
    .staff-member-card__avatar img,
    .staff-member-card__button {
        transition: none;
    }

    .staff-member-card:hover,
    .staff-member-card:hover .staff-member-card__avatar img,
    .staff-member-card__button:hover {
        transform: none;
    }
}