/* =========================================================
   MCSTONE.LT — KOMANDA
   BLACK / PURPLE / COMPACT
========================================================= */

.staff-body {
    margin: 0;
    min-height: 100vh;
    background: #07080d;
    color: #fff;
}

/* Taškuotas fonas */
.staff-body::before {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.28) 1px,
            transparent 1.2px
        );

    background-size: 32px 32px;
}


/* =========================================================
   PUSLAPIS
========================================================= */

.team-page {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 45px 0 80px;
}


/* =========================================================
   HERO
========================================================= */

.team-hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    min-height: 0;

    padding: 35px 40px;

    border: 1px solid rgba(164, 57, 255, .55);
    border-radius: 10px;

    background:
        linear-gradient(
            110deg,
            #0d0912 0%,
            #160b21 50%,
            #39105b 100%
        );

    box-shadow:
        0 15px 40px rgba(0,0,0,.28);
}

.team-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size: 28px 28px;

    pointer-events: none;
}

.hero-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    right: -100px;
    top: -150px;

    border-radius: 50%;

    background: rgba(154, 44, 255, .22);

    filter: blur(100px);

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 750px;
}

.hero-label {
    display: block;

    margin-bottom: 15px;

    color: #bd55ff;

    font-family: "Press Start 2P", monospace;
    font-size: 8px;

    letter-spacing: 1px;
}

.team-hero h1 {
    margin: 0 0 18px;

    color: #fff;

    font-family: "Press Start 2P", monospace;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.25;
}

.team-hero h1 span {
    color: #a83dff;
}

.team-hero p {
    max-width: 700px;

    margin: 0;

    color: #aaa5b1;

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   SEKCIJA
========================================================= */

.team-section {
    width: 100%;

    margin-top: 45px;
}

.section-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    margin-bottom: 16px;
    padding-bottom: 12px;

    border-bottom: 1px solid #25232a;
}

.section-number {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #7635a3;
    border-radius: 5px;

    background: #1b0d25;

    color: #c14cff;

    font-family: "Press Start 2P", monospace;
    font-size: 7px;
}

.section-heading span {
    display: block;

    margin-bottom: 4px;

    color: #77717e;

    font-family: "Press Start 2P", monospace;
    font-size: 6px;
}

.section-heading h2 {
    margin: 0;

    color: #fff;

    font-family: "Press Start 2P", monospace;

    font-size: 17px;
    line-height: 1.3;
}


/* =========================================================
   STAFF GRID

   SVARBIAUSIA:
   3 normalios mažos kortelės vienoje eilėje.
========================================================= */

.team-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}


/* Jeigu sekcijoje tik 2 žmonės, jie NEIŠSITEMPIA */
.team-grid > article {
    width: 100%;
}


/* =========================================================
   STAFF KORTELĖ
========================================================= */

.team-card {
    position: relative;

    width: 100%;
    height: 205px;
    min-height: 0;

    padding: 17px;

    overflow: hidden;

    border: 1px solid #29252e;
    border-radius: 6px;

    background:
        linear-gradient(
            145deg,
            #100d13,
            #09090c
        );

    box-shadow:
        4px 5px 0 rgba(0,0,0,.20);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.team-card:hover {
    transform: translateY(-2px);

    border-color: #8135b8;

    box-shadow:
        4px 7px 0 rgba(0,0,0,.22),
        0 0 18px rgba(157,50,255,.08);
}


/* Savininkas */

.team-card.owner {
    border-color: rgba(158, 54, 220, .65);

    background:
        linear-gradient(
            145deg,
            #180d20,
            #0a090c
        );
}


/* =========================================================
   AVATARAS — TIK MAŽAS KUBELIS
========================================================= */

.staff-avatar {
    position: relative;

    width: 62px;
    height: 62px;

    min-width: 62px;
    min-height: 62px;

    max-width: 62px;
    max-height: 62px;

    margin: 0 0 11px;

    padding: 0;

    overflow: hidden;

    border: 2px solid #a442e4;
    border-radius: 5px;

    background: #0b0b0f;

    box-shadow:
        0 0 12px rgba(162, 61, 225, .12);
}

.staff-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center top;

    transform: none;

    filter: none;
}


/* Apsauga nuo seno style.css */
.team-card img {
    max-width: none;
}


/* =========================================================
   ROLĖ
========================================================= */

.role {
    display: block;

    width: max-content;

    margin: 0 0 6px;
    padding: 0;

    border: 0;

    background: transparent;

    color: #b64cff;

    font-family: "Press Start 2P", monospace;

    font-size: 7px;
    line-height: 1.3;

    letter-spacing: .2px;
}

.role-owner {
    color: #d78cff;
}


/* =========================================================
   VARDAS
========================================================= */

.team-card h3 {
    margin: 0 0 7px;

    color: #fff;

    font-family: "Press Start 2P", monospace;

    font-size: 13px;
    line-height: 1.3;
}


/* =========================================================
   APRAŠYMAS
========================================================= */

.team-card p {
    margin: 0;

    color: #8d8793;

    font-family: Inter, Arial, sans-serif;

    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   APAČIA
========================================================= */

.staff-bottom {
    position: absolute;

    left: 17px;
    bottom: 14px;

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0;
    padding: 0;

    border: 0;

    color: #77717d;

    font-family: Inter, Arial, sans-serif;

    font-size: 9px;
}

.status-dot {
    display: block;

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: #a43cff;

    box-shadow:
        0 0 7px #a43cff;
}


/* =========================================================
   LAISVA VIETA
========================================================= */

.team-card.vacancy {
    height: 205px;
    min-height: 0;

    opacity: .55;

    border-style: dashed;
}

.team-card.vacancy:hover {
    opacity: .8;
}

.vacancy-avatar {
    width: 62px;
    height: 62px;

    min-width: 62px;
    min-height: 62px;

    max-width: 62px;
    max-height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 0 11px;

    border: 1px dashed #6f348e;
    border-radius: 5px;

    background: rgba(129, 42, 175, .07);

    color: #7c3c9e;

    font-family: "Press Start 2P", monospace;

    font-size: 15px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .team-page {
        width: 92%;
    }

    .team-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .team-hero {
        padding: 30px;
    }
}


@media (max-width: 580px) {

    .team-page {
        width: calc(100% - 28px);

        padding-top: 25px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-hero {
        padding: 25px 20px;
    }

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

    .team-section {
        margin-top: 35px;
    }

    .section-heading h2 {
        font-size: 13px;
    }

    .team-card,
    .team-card.vacancy {
        height: 205px;
    }
}
