/* =========================================================
   manager-squad.css — عرض تشكيلة المدير
========================================================= */

#squadModal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.88);
    z-index:99999;
    align-items:center;
    justify-content:center;
    padding:12px;
    backdrop-filter:blur(6px);
    opacity:0;
    transition:opacity .25s ease;
}
#squadModal.show{ display:flex; opacity:1; }

.squad-modal-box{
    background:linear-gradient(135deg, #22154a 0%, #180e36 100%);
    border:3px solid #00e5ff;
    border-radius:20px;
    width:100%;
    max-width:480px;
    max-height:90vh;
    overflow-y:auto;
    padding:20px 16px;
    position:relative;
    animation:squadIn .3s cubic-bezier(.4,0,.2,1);
    box-shadow:0 20px 60px rgba(0,229,255,.25);
}

@keyframes squadIn{
    from{opacity:0;transform:translateY(20px) scale(.95);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

.squad-modal-close{
    position:absolute;
    top:10px;
    right:10px;
    width:32px;
    height:32px;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    border:none;
    color:#fff;
    font-size:16px;
    font-weight:900;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .2s ease;
    z-index:5;
}
.squad-modal-close:hover{
    background:#ff5252;
    transform:scale(1.1) rotate(90deg);
}

.squad-modal-title{
    text-align:center;
    margin-bottom:6px;
    padding:0 30px;
}
.squad-modal-manager{
    font-size:18px;
    font-weight:900;
    color:#fff;
    letter-spacing:.5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.squad-modal-subtitle{
    font-size:11px;
    color:#00e5ff;
    letter-spacing:2px;
    text-transform:uppercase;
    font-weight:800;
    margin-top:4px;
}

.squad-modal-stats{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:8px;
    margin:14px 0 18px;
}

.squad-stat-box{
    background:rgba(0,0,0,.3);
    border:1px solid rgba(0,229,255,.2);
    border-radius:12px;
    padding:10px 6px;
    text-align:center;
}
.squad-stat-label{
    font-size:9px;
    font-weight:800;
    color:#a89cc8;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:4px;
}
.squad-stat-value{
    font-size:20px;
    font-weight:900;
    color:#00e5ff;
    line-height:1;
}
.squad-stat-value.gold{ color:#ffd700; }
.squad-stat-value.green{ color:#00e676; }

.squad-section{
    margin-bottom:14px;
}
.squad-section-title{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:10px;
    font-weight:900;
    letter-spacing:2px;
    color:#00e5ff;
    text-transform:uppercase;
    padding-bottom:6px;
    margin-bottom:6px;
    border-bottom:1px solid rgba(0,229,255,.2);
}
.squad-section-title::before{
    content:'';
    width:4px;
    height:14px;
    background:#00e5ff;
    border-radius:2px;
    box-shadow:0 0 8px #00e5ff;
}

.squad-player{
    display:grid;
    grid-template-columns:32px 1fr 44px;
    gap:8px;
    align-items:center;
    padding:8px 10px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(124,77,255,.15);
    border-radius:10px;
    margin-bottom:5px;
    transition:all .2s ease;
}
.squad-player:hover{
    background:rgba(0,229,255,.08);
    border-color:rgba(0,229,255,.3);
}

.squad-player.bench{
    opacity:.55;
}
.squad-player.bench:hover{ opacity:1; }

.squad-player-badge{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}
.squad-player-badge img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    filter:drop-shadow(0 2px 3px rgba(0,0,0,.5));
}

.squad-player-names{
    min-width:0;
    overflow:hidden;
    text-align:right;
}
.squad-player-name{
    font-size:13px;
    font-weight:900;
    color:#fff;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    line-height:1.2;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
}
.squad-player-team{
    font-size:10px;
    color:#a89cc8;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    line-height:1.2;
    margin-top:2px;
}

.squad-cap-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    border-radius:50%;
    font-size:9px;
    font-weight:900;
    flex-shrink:0;
    padding:0 3px;
}
.squad-cap-C{
    background:linear-gradient(135deg, #ffd700 0%, #ff9500 100%);
    color:#4a2a00;
    box-shadow:0 0 8px rgba(255,215,0,.5);
}
.squad-cap-V{
    background:linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 100%);
    color:#333;
}
.squad-cap-3x{
    background:linear-gradient(135deg, #7c4dff 0%, #00e5ff 100%);
    color:#fff;
    box-shadow:0 0 8px rgba(124,77,255,.5);
}

.squad-player-points{
    text-align:center;
    font-size:15px;
    font-weight:900;
    color:#fff;
    letter-spacing:.5px;
}
.squad-player-points.captain{
    color:#ffd700;
    text-shadow:0 0 10px rgba(255,215,0,.4);
}

.squad-loading, .squad-error{
    text-align:center;
    padding:40px 20px;
    color:#00e5ff;
    font-size:13px;
    font-weight:800;
    letter-spacing:1px;
}
.squad-error{ color:#ff5252; }

.squad-loading .spinner{
    display:inline-block;
    width:36px;
    height:36px;
    border:4px solid rgba(0,229,255,.15);
    border-top-color:#00e5ff;
    border-radius:50%;
    animation:spin .8s linear infinite;
    margin-bottom:12px;
}

/* زر "View FPL Squad" */
.btn-view-squad{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    padding:12px;
    margin-top:14px;
    background:linear-gradient(135deg, #00e5ff 0%, #7c4dff 100%);
    border:none;
    border-radius:12px;
    color:#fff;
    font-size:13px;
    font-weight:900;
    letter-spacing:1px;
    cursor:pointer;
    font-family:inherit;
    transition:transform .2s ease, box-shadow .2s ease;
    box-shadow:0 4px 15px rgba(0,229,255,.3);
}
.btn-view-squad:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 22px rgba(0,229,255,.5);
}
.btn-view-squad:active{
    transform:translateY(0);
}
.btn-view-squad:disabled{
    opacity:.6;
    cursor:not-allowed;
    transform:none;
}

@media(max-width:480px){
    .squad-modal-box{ padding:16px 12px; max-height:92vh; }
    .squad-modal-manager{ font-size:16px; }
    .squad-stat-value{ font-size:17px; }
    .squad-player-name{ font-size:12px; }
    .squad-player-points{ font-size:14px; }
}
