
/* MT - Dinamik ekip profilleri */

.team-card.team-profile-card{
    position:relative;
    overflow:hidden;
}

.team-profile-card .team-photo{
    position:relative;
}

.team-profile-card .team-photo::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        transparent 45%,
        rgba(0,0,0,.58)
    );
    opacity:0;
    transition:opacity .22s ease;
    pointer-events:none;
}

.team-profile-card:hover .team-photo::after{
    opacity:1;
}

.team-specialties{
    display:block;
    min-height:17px;
    margin-top:4px;
    color:#8a8a8a;
    font-size:9px;
    line-height:1.35;
}

.team-card-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin-top:10px;
}

.team-profile-button,
.team-book-button{
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:7px 8px;
    border-radius:7px;
    text-decoration:none;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
}

.team-profile-button{
    border:1px solid #dedede;
    background:#fff;
    color:#242424;
}

.team-book-button{
    border:1px solid #e01020;
    background:#e01020;
    color:#111;
}

.team-profile-modal[hidden]{
    display:none !important;
}

.team-profile-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    padding:18px;
}

.team-profile-backdrop{
    position:absolute;
    inset:0;
    background:rgba(4,5,6,.78);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

.team-profile-dialog{
    position:relative;
    z-index:1;
    width:min(760px,100%);
    max-height:88vh;
    overflow:auto;
    display:grid;
    grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    background:#111;
    color:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.45);
    animation:teamModalIn .25s cubic-bezier(.22,1,.36,1) both;
}

.team-profile-dialog-photo{
    min-height:430px;
    background:#111;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.team-profile-dialog-photo img{
    width:100%;
    height:100%;
    min-height:430px;
    display:block;
    object-fit:cover;
    object-position:center top;
}

.team-profile-dialog-content{
    padding:28px;
}

.team-profile-dialog-content small{
    color:#e01020;
    font-size:10px;
    font-weight:800;
    letter-spacing:.6px;
    text-transform:uppercase;
}

.team-profile-dialog-content h3{
    margin:6px 0 6px;
    color:#fff;
    font-size:28px;
}

.team-profile-dialog-specialties{
    margin:0 0 17px;
    color:#ff3546;
    font-size:11px;
}

.team-profile-dialog-bio{
    margin:0;
    color:#c3c3c3;
    font-size:11px;
    line-height:1.75;
    white-space:pre-line;
}

.team-profile-dialog-actions{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:22px;
}

.team-profile-dialog-actions a{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 13px;
    border-radius:8px;
    text-decoration:none;
    font-size:9px;
    font-weight:900;
}

.team-profile-dialog-actions .book{
    background:#e01020;
    color:#111;
}

.team-profile-dialog-actions .instagram{
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
}

.team-profile-close{
    position:absolute;
    z-index:2;
    top:10px;
    right:10px;
    width:40px;
    height:40px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:10px;
    background:rgba(0,0,0,.58);
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

body.team-profile-open{
    overflow:hidden;
}

@keyframes teamModalIn{
    from{
        opacity:0;
        transform:translateY(10px) scale(.98)
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1)
    }
}

@media(max-width:700px){
    .team-profile-modal{
        align-items:end;
        padding:0;
    }

    .team-profile-dialog{
        grid-template-columns:1fr;
        width:100%;
        max-height:90dvh;
        border-radius:18px 18px 0 0;
    }

    .team-profile-dialog-photo{
        min-height:250px;
        max-height:310px;
        display:flex;
        align-items:center;
        justify-content:center;
        overflow:hidden;
        background:#111;
    }

    .team-profile-dialog-photo img{
        width:100%;
        min-height:250px;
        max-height:310px;
        object-fit:cover;
        object-position:center top;
    }

    .team-profile-dialog-content{
        padding:18px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .team-profile-dialog-content h3{
        font-size:23px;
    }
}

@media(prefers-reduced-motion:reduce){
    .team-profile-dialog,
    .team-profile-card .team-photo::after{
        animation:none !important;
        transition:none !important;
    }
}
