/**
 * Bara Al-Salfa - Dense Players List (Static, No Animations)
 * Compact Row Layout for 50+ Players
 */

/* ============================================
   REFEREE CONTROL PANEL - Static Style
   ============================================ */
#bas-game-root > .bas-container:first-child {
    /* Remove all animations - static only */
    animation: none !important;
    transition: none !important;
}

#bas-game-root > .bas-container:first-child::before {
    display: none !important;
}

/* Remove status badge animations in referee panel */
#bas-game-root > .bas-container:first-child .bas-status {
    animation: none !important;
}

#bas-game-root > .bas-container:first-child .bas-status::before {
    display: none !important;
}

/* ============================================
   PLAYERS CONTAINER - Dense List Layout
   ============================================ */
.bas-players-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    direction: rtl;
}

/* Remove table styles completely */
.bas-players-table {
    display: none !important;
}

/* ============================================
   PLAYER ROW - Compact Single Row Layout
   ============================================ */
.bas-player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    min-height: 48px;
    border-bottom: 1px solid rgba(156, 39, 176, 0.1);
    direction: rtl;
    text-align: right;
    gap: 8px;
}

.bas-player-row:last-child {
    border-bottom: none;
}

/* Player Name - Right Side */
.bas-player-row-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #7B1FA2;
    text-align: right;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bas-player-row-name:hover {
    opacity: 0.8;
}

/* Score Controls - Middle (Compact) */
.bas-player-row-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    max-width: 75px;
    margin-left: 8px;
}

.bas-score-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.bas-score-controls button {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D9FF 0%, #9C27B0 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.bas-score-controls button:active {
    opacity: 0.7;
}

.bas-score-controls .bas-score {
    min-width: 24px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    background: linear-gradient(135deg, #00D9FF 0%, #9C27B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #7B1FA2;
    padding: 0 2px;
}

/* Action Buttons - Left Side (Circular Icons) */
.bas-player-row-actions {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.bas-button-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    font-size: 14px;
    line-height: 1;
}

.bas-button-icon:active {
    opacity: 0.7;
    transform: scale(0.95);
}

.bas-button-icon-warning {
    background: linear-gradient(135deg, #FF6F00 0%, #E65100 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.4);
}

.bas-button-icon-danger {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4);
}

.bas-icon-crown,
.bas-icon-kick {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2) contrast(1.2);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 767px) {
    .bas-player-row {
        padding: 10px 8px;
        min-height: 52px;
        gap: 6px;
    }
    
    .bas-player-row-name {
        font-size: 13px;
        padding-right: 6px;
    }
    
    .bas-player-row-score {
        max-width: 75px;
        gap: 3px;
    }
    
    .bas-score-controls {
        gap: 3px;
    }
    
    .bas-score-controls button {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        font-size: 15px;
    }
    
    .bas-score-controls .bas-score {
        font-size: 14px;
        min-width: 26px;
        padding: 0 2px;
    }
    
    .bas-player-row-actions {
        gap: 3px;
    }
    
    .bas-button-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        font-size: 15px;
    }
    
    .bas-icon-crown,
    .bas-icon-kick {
        font-size: 15px;
    }
}

/* ============================================
   DESKTOP OPTIMIZATIONS
   ============================================ */
@media (min-width: 768px) {
    .bas-player-row {
        padding: 10px 14px;
        min-height: 56px;
        gap: 10px;
    }
    
    .bas-player-row-name {
        font-size: 15px;
        padding-right: 10px;
    }
    
    .bas-player-row-score {
        max-width: 85px;
        gap: 4px;
    }
    
    .bas-score-controls {
        gap: 4px;
    }
    
    .bas-score-controls button {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        font-size: 15px;
    }
    
    .bas-score-controls .bas-score {
        font-size: 15px;
        min-width: 30px;
        padding: 0 3px;
    }
    
    .bas-player-row-actions {
        gap: 4px;
    }
    
    .bas-button-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
        min-height: 26px;
        font-size: 15px;
    }
    
    .bas-icon-crown,
    .bas-icon-kick {
        font-size: 15px;
    }
    
    .bas-player-row-actions .bas-button {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
        min-width: 55px;
    }
}

/* ============================================
   REMOVE ALL ANIMATIONS
   ============================================ */
.bas-player-row,
.bas-player-row *,
.bas-players-container,
.bas-players-container *,
#bas-game-root > .bas-container:first-child,
#bas-game-root > .bas-container:first-child * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

.bas-player-row:hover,
.bas-player-row *:hover {
    transform: none !important;
    animation: none !important;
}

.bas-score-controls button:hover {
    transform: none !important;
    animation: none !important;
}

.bas-player-row-actions .bas-button:hover {
    transform: none !important;
    animation: none !important;
}
