/* =========================================================
   champions-special.css — FINALISSIMA LEAGUE (v=1)
   🎯 Special Moves — 5 خواص + Floating Button
========================================================= */

/* ═══════════════════════════════════════════════════════
   1) WRAPPER
   ═══════════════════════════════════════════════════════ */

.champ-special-wrap {
    width: 100%;
    padding: 8px 4px 24px;
    direction: ltr;
    font-family: 'Inter', 'Cairo', sans-serif;
    color: #F5E6D3;
}

.champ-special-intro {
    background: linear-gradient(135deg,
        rgba(139, 26, 47, 0.25) 0%,
        rgba(58, 10, 21, 0.4) 100%);
    border: 1.5px solid rgba(212, 183, 122, 0.4);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.champ-special-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #D4B77A 50%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(212, 183, 122, 0.6);
}

.champ-special-intro h2 {
    font-size: 22px;
    font-weight: 900;
    color: #D4B77A;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(212, 183, 122, 0.5);
}

.champ-special-intro h2 i {
    margin-right: 8px;
}

.champ-special-intro p {
    font-size: 12px;
    color: #A8A8AA;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════
   2) MOVES GRID
   ═══════════════════════════════════════════════════════ */

.champ-special-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   3) MOVE CARD
   ═══════════════════════════════════════════════════════ */

.cs-move-card {
    position: relative;
    background: linear-gradient(135deg,
        #2C2C2E 0%,
        #1E1E20 100%);
    border: 1.5px solid #3A3A3C;
    border-radius: 16px;
    padding: 18px 16px 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cs-move-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #D4B77A 50%,
        transparent 100%);
    transition: width 0.3s ease;
}

.cs-move-card:hover::before {
    width: 100px;
}

/* ⭐ Header */
.cs-move-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cs-move-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    position: relative;
    transition: all 0.3s ease;
}

.cs-move-icon i {
    font-size: 24px;
    color: #F5E6D3;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

/* ⭐ ألوان مخصصة لكل خاصية */
.cs-move-card[data-move="revival"] .cs-move-icon {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(16, 185, 129, 0.6),
        0 0 20px rgba(16, 185, 129, 0.3);
}

.cs-move-card[data-move="assassination"] .cs-move-icon {
    background: linear-gradient(135deg, #B8253F 0%, #6B0F1F 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(184, 37, 63, 0.6),
        0 0 20px rgba(184, 37, 63, 0.3);
}

.cs-move-card[data-move="h2h"] .cs-move-icon {
    background: linear-gradient(135deg, #D4B77A 0%, #8B7340 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(212, 183, 122, 0.6),
        0 0 20px rgba(212, 183, 122, 0.3);
}

.cs-move-card[data-move="sniper"] .cs-move-icon {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(168, 85, 247, 0.6),
        0 0 20px rgba(168, 85, 247, 0.3);
}

.cs-move-card[data-move="clean_sheet"] .cs-move-icon {
    background: linear-gradient(135deg, #5CBFEB 0%, #0891B2 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(92, 191, 235, 0.6),
        0 0 20px rgba(92, 191, 235, 0.3);
}

/* ⭐ العنوان */
.cs-move-title-wrap {
    flex: 1;
    min-width: 0;
    direction: ltr;
    text-align: left;
}

.cs-move-title {
    font-size: 15px;
    font-weight: 900;
    color: #F5E6D3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-move-subtitle {
    font-size: 10px;
    font-weight: 800;
    color: #A8A8AA;
    margin-top: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ⭐ الوصف */
.cs-move-desc {
    font-size: 11.5px;
    color: #A8A8AA;
    line-height: 1.7;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
    min-height: 40px;
}

/* ⭐ Status Badge */
.cs-move-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cs-move-status.pending {
    background: rgba(212, 183, 122, 0.12);
    border: 1px solid rgba(212, 183, 122, 0.4);
    color: #D4B77A;
}

.cs-move-status.active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10B981;
}

.cs-move-status.used {
    background: rgba(106, 106, 109, 0.15);
    border: 1px solid rgba(106, 106, 109, 0.4);
    color: #6A6A6D;
}

.cs-move-status i {
    font-size: 11px;
}

/* ⭐ زر التفعيل */
.cs-move-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8B1A2F 0%, #6B0F1F 100%);
    color: #F5E6D3;
    border: 1.5px solid #C8A95F;
    border-radius: 50px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow:
        0 4px 14px rgba(139, 26, 47, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.cs-move-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 8px 22px rgba(139, 26, 47, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cs-move-action-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

.cs-move-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cs-move-action-btn i {
    font-size: 16px;
    color: #D4B77A;
}

/* ⭐ حالة الاستخدام */
.cs-move-card.used {
    opacity: 0.65;
}

.cs-move-card.used:hover::before {
    width: 60px;
}

.cs-move-card.used .cs-move-icon {
    filter: grayscale(0.6);
}

/* ⭐ حالة نشط */
.cs-move-card.active {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow:
        inset 0 0 0 1px rgba(16, 185, 129, 0.15),
        0 4px 16px rgba(16, 185, 129, 0.15);
}

.cs-move-card.active::before {
    background: linear-gradient(90deg,
        transparent 0%,
        #10B981 50%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* ═══════════════════════════════════════════════════════
   4) MODAL
   ═══════════════════════════════════════════════════════ */

.cs-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    direction: ltr;
}

.cs-modal.show {
    display: flex;
}

.cs-modal-box {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: #2C2C2E;
    border: 2px solid #C8A95F;
    border-radius: 20px;
    padding: 26px 22px;
    position: relative;
    animation: csModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(212, 183, 122, 0.2);
}

@keyframes csModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cs-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid #C8A95F;
    border-radius: 50%;
    color: #D4B77A;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cs-modal-close:hover {
    background: #C8A95F;
    color: #1E1E20;
    transform: rotate(90deg);
}

.cs-modal-title {
    font-size: 17px;
    font-weight: 900;
    color: #D4B77A;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cs-modal-title i {
    margin-right: 6px;
}

.cs-modal-sub {
    font-size: 11px;
    color: #A8A8AA;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   5) TEAM PICKER (داخل Modal)
   ═══════════════════════════════════════════════════════ */

.cs-picker-section {
    margin-bottom: 18px;
}

.cs-picker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    color: #D4B77A;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cs-picker-label i {
    font-size: 14px;
}

.cs-team-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.cs-team-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #1E1E20;
    border: 1.5px solid #3A3A3C;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: ltr;
    text-align: left;
}

.cs-team-option:hover {
    border-color: #D4B77A;
    background: #3A3A3C;
}

.cs-team-option.selected {
    border-color: #10B981;
    background: linear-gradient(90deg,
        rgba(16, 185, 129, 0.15) 0%,
        #1E1E20 70%);
}

.cs-team-option img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.cs-team-option-name {
    font-size: 11px;
    font-weight: 900;
    color: #F5E6D3;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════
   6) MANAGER PICKER (داخل Modal)
   ═══════════════════════════════════════════════════════ */

.cs-manager-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}

.cs-manager-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #1E1E20;
    border: 1.5px solid #3A3A3C;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: ltr;
    text-align: left;
}

.cs-manager-option:hover {
    border-color: #D4B77A;
    background: #3A3A3C;
}

.cs-manager-option.selected {
    border-color: #10B981;
    background: linear-gradient(90deg,
        rgba(16, 185, 129, 0.15) 0%,
        #1E1E20 70%);
}

.cs-manager-option img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.cs-manager-option-info {
    flex: 1;
    min-width: 0;
}

.cs-manager-option-name {
    font-size: 12px;
    font-weight: 900;
    color: #F5E6D3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-manager-option-points {
    font-size: 10px;
    font-weight: 800;
    color: #D4B77A;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   7) CONFIRM BUTTON
   ═══════════════════════════════════════════════════════ */

.cs-modal-confirm-btn {
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, #D4B77A 0%, #8B7340 100%);
    color: #1E1E20;
    border: 2px solid #FAF6F0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    box-shadow:
        0 6px 20px rgba(212, 183, 122, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cs-modal-confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 10px 28px rgba(212, 183, 122, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cs-modal-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════
   8) LOADING / EMPTY
   ═══════════════════════════════════════════════════════ */

.cs-loading,
.cs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 50px 20px;
    text-align: center;
    color: #A8A8AA;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.cs-loading i,
.cs-empty i {
    font-size: 40px;
    color: #D4B77A;
    opacity: 0.7;
}

.cs-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 183, 122, 0.2);
    border-top-color: #D4B77A;
    border-radius: 50%;
    animation: csSpin 0.8s linear infinite;
}

@keyframes csSpin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   9) FLOATING BUTTON
   ═══════════════════════════════════════════════════════ */

.cs-floating-btn {
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B1A2F 0%, #6B0F1F 100%);
    border: 2px solid #C8A95F;
    color: #D4B77A;
    font-size: 26px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow:
        0 6px 20px rgba(139, 26, 47, 0.5),
        0 0 30px rgba(212, 183, 122, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    -webkit-tap-highlight-color: transparent;
    animation: csFloatPulse 2.4s ease-in-out infinite;
}

@keyframes csFloatPulse {
    0%, 100% {
        box-shadow:
            0 6px 20px rgba(139, 26, 47, 0.5),
            0 0 30px rgba(212, 183, 122, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 8px 26px rgba(139, 26, 47, 0.7),
            0 0 45px rgba(212, 183, 122, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
}

.cs-floating-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #B8253F 0%, #8B1A2F 100%);
}

.cs-floating-btn:active {
    transform: scale(0.95);
}

.cs-floating-btn i {
    font-size: 26px;
    filter: drop-shadow(0 0 6px rgba(212, 183, 122, 0.6));
}

/* ═══════════════════════════════════════════════════════
   10) MOBILE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .champ-special-grid {
        grid-template-columns: 1fr;
    }

    .cs-move-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .cs-move-icon i {
        font-size: 20px;
    }

    .cs-move-title {
        font-size: 13px;
    }

    .cs-move-desc {
        font-size: 11px;
    }

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

    .cs-floating-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
        bottom: calc(90px + env(safe-area-inset-bottom, 0px));
        right: 14px;
    }

    .cs-floating-btn i {
        font-size: 22px;
    }
}

/* ═══════════════════════════════════════════════════════
   11) REDUCED MOTION
   ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .cs-modal-box {
        animation: none;
    }

    .cs-spinner {
        animation-duration: 2s;
    }

    .cs-floating-btn {
        animation: none;
    }
}
