/* Rink Draft Phase 3.3.1
   Import-player UI polish
   Visual only: no database or PHP changes.
*/

/* Core import badge ------------------------------------------------------- */
.import-tag{
    display:inline-flex!important;
    align-items:center;
    gap:5px;
    width:max-content;
    max-width:100%;
    min-height:20px;
    margin:0;
    padding:3px 7px 3px 6px;
    border:1px solid #173b57;
    border-left:3px solid var(--orange);
    border-radius:2px;
    background:#eef6fb;
    color:#0c2033;
    box-shadow:none;
    font-size:9px;
    line-height:1;
    font-weight:950;
    letter-spacing:.85px;
    text-transform:uppercase;
    vertical-align:middle;
    white-space:nowrap;
}

/* Small brand marker inside every Import badge */
.import-tag::before{
    content:"";
    display:block;
    width:5px;
    height:5px;
    flex:0 0 5px;
    background:var(--orange);
    transform:rotate(45deg);
    margin:0 1px 0 0;
}

/* Optional dark variation used on darker surfaces */
.import-tag.dark{
    background:#0c2033;
    color:#fff;
    border-color:#0c2033;
    border-left-color:var(--orange);
}

.import-tag.muted{
    background:#f4f7f9;
    color:#667986;
    border-color:#c8d4dc;
    border-left-color:#9aabb6;
}

/* Player Pool ------------------------------------------------------------- */
.pool-meta-row .import-tag{
    margin-left:auto;
    flex:0 0 auto;
}

/* Stop the normal meta-row bullet from appearing before this badge. */
.pool-meta-row .import-tag::before{
    content:"";
    display:block;
    width:5px;
    height:5px;
    margin:0 1px 0 0;
    background:var(--orange);
    transform:rotate(45deg);
}

/* Squad cards ------------------------------------------------------------- */
.slot-name .import-tag{
    display:inline-flex!important;
    margin-top:6px;
    color:#0c2033;
    overflow:visible;
    text-overflow:clip;
}

.squad-summary > div:nth-child(4){
    position:relative;
    background:#f2f8fc;
}

.squad-summary > div:nth-child(4)::before{
    content:"";
    position:absolute;
    top:-1px;
    left:-1px;
    right:-1px;
    height:3px;
    background:var(--orange);
}

.squad-summary > div:nth-child(4) strong{
    color:#0c2033;
}

/* Picker ------------------------------------------------------------------ */
.player-select-name .import-tag{
    display:inline-flex!important;
    margin-left:6px;
    transform:translateY(-1px);
}

.player-select-card.disabled-card .import-tag{
    background:#e9eef2;
    border-color:#bac7cf;
    border-left-color:#8ea0ac;
    color:#657784;
}

.import-limit-reached{
    display:inline-block;
    margin-top:5px!important;
    padding-left:8px;
    border-left:3px solid var(--orange);
    color:#7a430d!important;
    font-weight:900!important;
}

/* Admin player table ------------------------------------------------------ */
.admin-player-cell + td .import-tag,
.table-wrap .import-tag{
    vertical-align:middle;
}

/* Import count / audit panels -------------------------------------------- */
.import-counter{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:58px;
    margin:0 0 14px;
    padding:12px 14px;
    border:1px solid #c6d8e3;
    border-left:4px solid var(--orange);
    background:#eef6fb;
}

.import-counter strong{
    color:#0c2033;
    font-size:20px;
    line-height:1;
}

.import-audit{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
}

.import-audit-row{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    min-height:46px;
    padding:10px 12px;
    border:1px solid var(--line);
    background:#fff;
}

.import-audit-row strong{
    font-size:13px;
}

.import-audit-row span{
    font-size:12px;
    color:var(--muted);
    font-weight:800;
}

.import-audit-row.at-limit{
    border-color:#e7c49a;
    border-left:4px solid var(--orange);
    background:#fffaf4;
}

.import-audit-row.over{
    border-color:#deb0ad;
    border-left:4px solid var(--danger);
    background:#fff7f6;
}

/* Bulk import marking ----------------------------------------------------- */
.import-bulk-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
}

.import-bulk-player{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:50px;
    padding:10px 12px;
    border:1px solid var(--line);
    background:#fff;
    cursor:pointer;
    transition:border-color .15s ease, background .15s ease;
}

.import-bulk-player:hover{
    border-color:var(--blue);
    background:#f7fbfd;
}

.import-bulk-player input{
    width:18px;
    height:18px;
    flex:0 0 auto;
    accent-color:var(--navy);
}

.import-bulk-player .meta{
    min-width:0;
}

.import-bulk-player .meta strong{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.import-bulk-player .meta span{
    display:block;
    margin-top:2px;
    color:var(--muted);
    font-size:11px;
}

/* Help/status blocks ------------------------------------------------------ */
.import-help{
    margin:0 0 16px;
    padding:13px 14px;
    border:1px solid #cbdbe5;
    border-left:4px solid var(--blue);
    background:#f4f9fc;
}

.import-help code{
    color:#0c2033;
    font-weight:900;
}

.admin-import-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.import-club-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}

.import-club-head .count{
    color:#0c2033;
    font-size:28px;
    font-weight:950;
}

.import-club-head .count.over{
    color:var(--danger);
}

/* Responsive ------------------------------------------------------------- */
@media(max-width:900px){
    .import-audit{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .import-bulk-list{
        grid-template-columns:1fr;
    }
}

@media(max-width:760px){
    .squad-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .import-audit{
        grid-template-columns:1fr;
    }

    .import-club-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .admin-import-actions .btn{
        width:100%;
    }

    .import-tag{
        min-height:19px;
        padding:3px 6px 3px 5px;
        font-size:8px;
        letter-spacing:.7px;
    }

    .import-counter{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }
}
