/* Стили для деления на команды */

.divide-teams-section {
    margin-top: 20px;
    text-align: center;
}

.divide-teams-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.divide-teams-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.divide-teams-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.divide-teams-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для команд */
.team-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

/* Стили для droppable команд */
.team-section[data-droppable-team="true"] {
    position: relative;
}

.team-section[data-droppable-team="true"].drag-over-team {
    background: #f0f9ff;
    border: 2px solid #667eea;
    border-width: 3px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.02);
}

.team-section h3 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: -20px -20px 15px -20px;
}

.team-section:nth-child(odd) h3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.team-section:nth-child(even) h3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.team-section:nth-child(3n) h3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.team-player {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.team-player:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-player .player-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.team-player .player-position {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Адаптивность для команд */
@media (max-width: 768px) {
    .team-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .team-section h3 {
        font-size: 18px;
        margin: -15px -15px 15px -15px;
        padding: 8px;
    }
    
    .team-player {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .team-player .player-position {
        align-self: flex-end;
    }
}

/* Стили для запасных и не смогли после деления */
.players-lists .players-section.reserve,
.players-lists .players-section.declined {
    margin-top: 20px;
}

.players-lists .players-section.reserve h3 {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
}

.players-lists .players-section.declined h3 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #8b0000;
}
